Skip to content

Instantly share code, notes, and snippets.

@whytewolf
Last active August 29, 2015 14:24
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 whytewolf/67ec9b4175cfb6570d2b to your computer and use it in GitHub Desktop.
Save whytewolf/67ec9b4175cfb6570d2b to your computer and use it in GitHub Desktop.
orchestration require.
ntp-servers:
salt.state:
- tgt: 'roles:ntp-server'
- tgt_type: grain
- sls: ntp
ntp-clients:
salt.state:
- tgt: 'roles:ntp-client'
- tgt_type: grain
- sls: ntp
- require:
- salt: ntp-servers
Ubuntu 14.04:
salt.function:
- name: glance.image_create
- tgt: 'roles:glance'
- tgt_type: grain
- arg:
- name=Ubuntu 14.04
- is_public=true
- disk_format=raw
- container_format=bare
- copy_from=http://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment