Created
April 4, 2016 11:55
-
-
Save FransUrbo/38b3093c0517f38c67cc0e258ca45792 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=> top.sls | |
base: | |
'*': | |
- common | |
'roles:my_role': | |
- my_role | |
=> common/init.sls | |
Install parse script: | |
file.managed: | |
- source: salt://common/templates/my_script | |
- name: /usr/local/bin/my_script | |
- mode: 755 | |
- user: root | |
- group: root | |
=> my_role/init.sls | |
{% set my_variable=salt['cmd.shell']('my_script') %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment