Skip to content

Instantly share code, notes, and snippets.

@inthecloud247
Created February 5, 2013 10:15
Show Gist options
  • Save inthecloud247/4713522 to your computer and use it in GitHub Desktop.
Save inthecloud247/4713522 to your computer and use it in GitHub Desktop.
apt-update:
cmd:
- run
- name: /usr/bin/apt-get update
- onlyif: /bin/false
{% 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