Skip to content

Instantly share code, notes, and snippets.

Created September 18, 2014 00:12
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 anonymous/bb96c6cf1bd0dacbca3e to your computer and use it in GitHub Desktop.
Save anonymous/bb96c6cf1bd0dacbca3e to your computer and use it in GitHub Desktop.
{% for usr in salt['pillar.get']('users:zsh_users', {}) %}
{% set home = salt['cmd.run']("bash -c 'echo ~{0}'".format(usr)) %}
{{ home }}/.zshrc:
file.symlink:
- target: /usr/share/zsh/zshrc
- force: True
- require:
- sls: global.zsh
- user: {{ usr }}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment