Patissier is a set of tool to ease the provisioning of a Raspberry. Why patissier? Because chef will cook the Raspberry!
Here is written the goal of this repo, it is now in dev mode.
- choose a set of recipes to apply to your RasPi (based on a text file 1st and then thou a web interface)
- you want to recook your RasPi
- update your recipe
- cook from scratch
- Create a base RaspChef SD card
- A boot partition that contain the
bios
feature - We call this partitionboot
- A base partition with a
chef
installed - We call this partitionRaspChef
- An
other
partition that we will cook - We call this partitionCookedPartition
Based on a bash
script, we have the possibility to switch from one partition to another one.
With a simple Berksfile placed in the boot
, the 2 partitions can communicate together.
- Bash script
boot_partition
- Take 1 argument : the partition to boot for the next reboot
- Do the tests with Bats : https://github.com/sstephenson/bats
- script :
prepare_partition
(with a chef recipe?) - This script will prepare the partiion
- Debootstrap
- Install chef and the basics
- script :
cook_partition
- 1 argument : Berksfile
- Aplly all the recipe from this Berksfile to the new partition in chroot
- [ ]script :
pastry-chef
- The script that will start at boot of the
RaspChef
- Chek if it has to cook (thou a comment in the Berksfile?)
- If yes, launch
cook_partition
, thenboot_partition
and reboot inCookedPartition
- If not, launch
boot_partition
and reboot inCookedPartition