GithubHelp home page GithubHelp logo

ajongbloets / raspberry-chef Goto Github PK

View Code? Open in Web Editor NEW

This project forked from palfrey/raspberry-chef

0.0 2.0 0.0 24 KB

Chef bootstrap for Raspberry Pi

Home Page: http://www.lshift.net/blog/2015/12/22/raspberry-chef/

License: GNU Affero General Public License v3.0

Shell 30.87% Ruby 21.26% Python 47.86%

raspberry-chef's Introduction

Chef bootstrap for Raspberry Pi

This project creates an auto-updating chef-zero based Raspberry Pi node.

  1. Write a Debian-based image to the SD card for your Pi (I advise the Jessie Lite image as a good small base)
  2. SSH into the node (possibly just ssh pi@raspberrypi with password "raspberry" if you're using the defaults)
  3. wget https://raw.githubusercontent.com/palfrey/raspberry-chef/master/bootstrap.sh
  4. cat bootstrap.sh
  • Read the contents of bootstrap.sh and make sure you understand it before just randomly running something I told you to.
  1. sudo sh bootstrap.sh
  2. sudo poweroff

You've now got an auto-updating SD card, which you can backup and re-use for other nodes. To configure it, there's a series of files in /boot which is a FAT32 partition, which means it'll get mounted on Linux, OS X or Windows which means you can configure it without having a working Pi.

The following files in /boot are of particular use:

  • wifi.conf - a wpa_supplicant configuration file. For simple configs, the changes should be obvious, but for more complicated settings see the example config
  • chef-url - a git URL to clone that contains Chef cookbooks
  • chef-cookbook - Chef cookbook from the chef-url path to run with chef-client

The update_chef daemon will automatically check chef-url/chef-cookbook and run chef-client in chef-zero configuration if it finds a valid set of configuration.

raspberry-chef's People

Contributors

palfrey avatar

Watchers

James Cloos avatar Anne Jongbloets avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.