Guest User

Untitled

a guest
Oct 14th, 2014
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1. Douglass-MacBook-Pro:chef-metal doug$ cat base.rb
  2. require 'chef_metal_fog'
  3. require 'chef/config'
  4.  
  5. with_machine_options :bootstrap_options => {
  6. :flavor_id => 't1.micro',
  7. :key_name => 'test-ec2-default-v2',
  8. :groups => ['slice-default'],
  9. :image_id => 'ami-8a2796e2'
  10. },
  11. :ssh_username => 'ec2-user',
  12. :use_private_ip_for_ssh => true
  13.  
  14. with_chef_server "https://chef01.prod.slicetest.com:443", {
  15. :client_name => Chef::Config[:node_name],
  16. :signing_key_filename => Chef::Config[:client_key]
  17. }
  18. Douglass-MacBook-Pro:chef-metal doug$
  19. Douglass-MacBook-Pro:chef-metal doug$
  20. Douglass-MacBook-Pro:chef-metal doug$
  21. Douglass-MacBook-Pro:chef-metal doug$
  22. Douglass-MacBook-Pro:chef-metal doug$ cat simple.rb
  23. $LOAD_PATH << File.join(File.dirname(__FILE__))
  24. require 'base'
  25.  
  26. machine 'test14' do
  27. role 'role-base'
  28. tag 'itsa_me'
  29. converge true
  30. end
Advertisement
Add Comment
Please, Sign In to add comment