Skip to content

Instantly share code, notes, and snippets.

@charlesjohnson
Created November 14, 2014 02:02
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 charlesjohnson/d1a9f107efb22f636d21 to your computer and use it in GitHub Desktop.
Save charlesjohnson/d1a9f107efb22f636d21 to your computer and use it in GitHub Desktop.
Chef Provisioning
with_driver 'docker'
machine 'web' do
from_image 'mygroup/apache_php'
end
machine 'db' do
from_image 'mygroup/mysql'
end
with_driver 'docker'
machine_image 'mygroup/apache_php' do
recipe 'apache2'
recipe 'php'
end
machine_image 'mygroup/mysql' do
recipe 'mysql'
end
with_driver 'aws'
machine 'bob' do
ami 'xxxxxxx'
size 'm1.small'
security_groups 'a', 'b'
recipe 'container'
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment