Skip to content

Instantly share code, notes, and snippets.

@FransUrbo
Created April 4, 2016 11:55
Show Gist options
  • Save FransUrbo/38b3093c0517f38c67cc0e258ca45792 to your computer and use it in GitHub Desktop.
Save FransUrbo/38b3093c0517f38c67cc0e258ca45792 to your computer and use it in GitHub Desktop.
=> 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