Personal Smart Home Setup as a Code
Base OS: Solaris 11.4
Standard Installer installs large-server, to get it down to minimal server:
$ pkg list -Hv entire
pkg://solaris/entire@11.4-11.4.0.0.1.10.0:20180702T173343Z
$ pkg exact-install --be-name 11.4.0min entire@11.4-11.4.0 solaris-minimal-server
Base OS: Raspbian
Base OS: Raspbian
To use following code, this should have been installed
brew install pv jq
hypriot_flash_latest=$(curl -s https://api.github.com/repos/hypriot/flash/releases/latest | jq -r ".assets[0].browser_download_url")
curl -LO $hypriot_flash_latest
chmod +x flash
./flash https://downloads.raspberrypi.org/raspbian_lite_latest
rm flash
remount SD card and activate SSH
touch /Volumes/boot/ssh
ansible-playbook -i inventory/inventory playbooks/site.yml -t update
ansible-playbook -i inventory/inventory playbooks/site.yml -t renew_cert
ansible-playbook -i inventory/inventory playbooks/site.yml -t remount