Skip to content

Instantly share code, notes, and snippets.

@ryan-lane
Created June 10, 2014 16:49
Show Gist options
  • Save ryan-lane/085ec4fd14f337a6b09f to your computer and use it in GitHub Desktop.
Save ryan-lane/085ec4fd14f337a6b09f to your computer and use it in GitHub Desktop.
Only run apt-get update if a ppa has changed
Run apt-get update on ppa additions:
module.wait:
- name: pkg.refresh_db
Ensure openstack ppa:
pkgrepo.managed:
- ppa: openstack-ubuntu-testing/juno
- refresh_db: False
- watch_in:
- module: pkg.refresh_db
Ensure salt ppa:
pkgrepo.managed:
- ppa: saltstack/salt
- refresh_db: False
- watch_in:
- module: pkg.refresh_db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment