Skip to content

Instantly share code, notes, and snippets.

View tonnenpinguin's full-sized avatar
🐧

Berni Hackl tonnenpinguin

🐧
View GitHub Profile
@tonnenpinguin
tonnenpinguin / prepare_node.sh
Last active March 15, 2017 14:40
Initial setup to get chef-client running on raspbian
#!/bin/bash
: <<'END' # Block comment
Use this script to prepare a clean raspbian image to run chef-client
Do not forget to add an empty file named "ssh" on the "boot" partition of your raspbian image to enable the ssh daemon.
If you did not run ssh-keygen before on your host machine, please do so before running this script.
This script sets up the debian testing packages as ruby 2.3 is currently not available in jessy. It also adds a pinning entry so packages available in jessy are preferred.
Afterwards it installs the chef gem and we are ready to bootstrap our new node :)
END