Skip to content

Instantly share code, notes, and snippets.

@thatch45
Created March 20, 2012 22:47
Show Gist options
  • Save thatch45/2142129 to your computer and use it in GitHub Desktop.
Save thatch45/2142129 to your computer and use it in GitHub Desktop.
apt-update:
cmd:
- wait
- name: /usr/bin/apt-get update
{% for key in 'fatbox','debian-david' %}
/etc/apt/{{ key }}.key:
file:
- managed
- source: salt://apt/{{ key }}.key
- owner: root
- group: root
- mode: 644
apt-add-{{ key }}-key:
cmd:
- wait
- name: apt-key add /etc/apt/{{ key }}.key
- watch:
- file: /etc/apt/{{ key }}.key
- watch_in:
- cmd: apt-update
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment