Skip to content

Instantly share code, notes, and snippets.

@jimklo
Created May 2, 2014 22:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jimklo/11487623 to your computer and use it in GitHub Desktop.
Save jimklo/11487623 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo START ENVIRONMENT
set
echo END ENVIRONMENT
run-script-works:
cmd.script:
- source: salt://junk/echoenv.sh
- env: {
'JUNK1': 'myjunk1',
'JUNK2': 'myjunk2'
}
run-script-broken:
cmd.script:
- source: salt://junk/echoenv.sh
- env:
- 'JUNK5': 'myjunk5'
- 'JUNK6': 'myjunk6'
run-cmd:
cmd.run:
- name: set
- env:
- JUNK3: 'myjunk3'
- JUNK4: 'myjunk4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment