Skip to content

jayllon/raspbian_bootstrap

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

raspbian_bootstrap

install chef-client on raspberry pi (raspbian).

Chef doesn't offer a omnibus chef-client for raspberry pi yet. This bootstrap script helps get around that by building ruby2.2 and gem installing chef-client onto the node.

Before you start check the following:

  • your chef workstation environment is setup and ready with knife
  • your pi is on the network and you can login as root
  • have some patience - this will take a while

This script has been tested against raspbian-wheezy but should likely work gracefully for other linux systems.

installation

knife bootstrap -t raspbian-wheezy-gems.erb -x root address_of_your_pi

Or to sudo in via pi user if you don't have root access (I set up my ssh keys first)

knife bootstrap -t raspbian-wheezy-gems.erb --ssh-user pi --sudo address_of_your_pi

A full on example of one that applies What I personally will be doing later for new Pi's is applying my d-base cookbook as part of default run list.

knife bootstrap -t raspbian-wheezy-gems.erb --ssh-user pi --ssh-password '{{password}}' --sudo --node-name NODE_NAME_YOU_WANT --run-list 'recipe[d-base::default]'

Ramifications of using this script

  • ruby-build installed in /usr/local/bin
  • /opt/chef with a ruby 2.2 compiled from ruby-build.
  • pi's clock will be synchronized and pi running ntpd (network time protocol daemon).
  • /usr/local/bin/chef-client to run chef-client with right path for chef & ruby.

Pre-compiled /opt/chef

Note: I have a short attention span and waiting for ruby to compile on a pi is boring. You have option of using my prebuilt /opt/chef if you want. Just open up the script and twiddle the false to true. Just look for the comment around line 19.

Credits and Contributors

About

chef bootstrap for raspberry pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HTML 100.0%