Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Douglass-MacBook-Pro:chef-metal doug$ cat base.rb
- require 'chef_metal_fog'
- require 'chef/config'
- with_machine_options :bootstrap_options => {
- :flavor_id => 't1.micro',
- :key_name => 'test-ec2-default-v2',
- :groups => ['slice-default'],
- :image_id => 'ami-8a2796e2'
- },
- :ssh_username => 'ec2-user',
- :use_private_ip_for_ssh => true
- with_chef_server "https://chef01.prod.slicetest.com:443", {
- :client_name => Chef::Config[:node_name],
- :signing_key_filename => Chef::Config[:client_key]
- }
- Douglass-MacBook-Pro:chef-metal doug$
- Douglass-MacBook-Pro:chef-metal doug$
- Douglass-MacBook-Pro:chef-metal doug$
- Douglass-MacBook-Pro:chef-metal doug$
- Douglass-MacBook-Pro:chef-metal doug$ cat simple.rb
- $LOAD_PATH << File.join(File.dirname(__FILE__))
- require 'base'
- machine 'test14' do
- role 'role-base'
- tag 'itsa_me'
- converge true
- end
Advertisement
Add Comment
Please, Sign In to add comment