Skip to content

Commit

Permalink
test kitchen WSL workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
rsutton1 committed Jul 26, 2022
1 parent 26971f9 commit 120d60a
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions salt/files/kitchen.sls
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
{% set user = salt.environ.get("SUDO_USER") %}
{% set user_home = "/home/" + user %}
include:
- docker
- rbenv

path_wsl:
file.blockreplace:
- name: {{ user_home }}/.bashrc
- marker_start: "# start salt managed kitchen.sls"
- marker_end: "# end salt managed kitchen.sls"
- content: |
export PATH=`echo $PATH | tr ':' '\n' | awk '($0!~/mnt\/c/) {print} ' | tr '\n' ':' && echo`
- append_if_not_found: True

0 comments on commit 120d60a

Please sign in to comment.