Chef bootstrapping a debian 7 wheezy system
Bootstrapping a wheezy system currently fails because there's no omnibus package for it. CHEF-4125 addresses this, however it's still a hack to get it working.
The hack:
- Download the template gist
- Make sure your
~/.chef/knife.rb
has an entry forencrypted_data_bag_secret
otherwise the bootstrap will exit withERROR: TypeError: can't convert nil into String
$ grep -q '^encrypted_data_bag_secret' ~/.chef/knife.rb || echo 'encrypted_data_bag_secret "#{Dir.home}/.chef/encrypted_data_bag_secret"' >> ~/.chef/knife.rb
- Bootstrap your node
knife bootstrap -E $ENV -r 'role[base-server]','role[lsb]' -N $NODE_NAME --bootstrap-version 10.26.0 --template-file /path/to/downloaded/gist/for/debian7-wheezy.erb --ssh-user root $NODE_NAME
Written by Jinn Koriech
Related protips
1 Response
Omnibus package now exists and installs fine.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Bootstrap
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#