tkurki / marinepi-provisioning

Ansible provisioning scripts to set up a Raspberry Pi for marine use
Apache License 2.0
45 stars 21 forks source link

100% unattended installation #11

Open emilecantin opened 8 years ago

emilecantin commented 8 years ago

Starting from this image: https://github.com/debian-pi/raspbian-ua-netinst, it would be pretty easy to provide some configuration files for that image to also install Ansible and git, and install from this repo. That would give a 100% unattended installation: just dump a few files on your SD card, plug it into the Pi, power on and a few minutes later you're up & running!

Thoughts?

tkurki commented 8 years ago

I actually used ua-netinst a few times before starting with this Ansible stuff.

Jessie Lite seemed like a better option, as it works better for me (less stuff to install manually, netinst is really bare bones), is a more common starting point and it is still a reasonable size (1.3 G).

Bootstrapping from that you would need something like a "netinst-bootstrap" role to get it about level with Jessie Lite.

After that you would also need some way to bootstrap your own playbook and get secrets (your SSID and like) deployed

You feel like tackling this? Would be cool and probably useful as well, since it removes the Ansible installation part, which is not super useful if all you want is a "standard" SK Pi SD card.

I'm going to continue in the other direction: extend this so that provisioning will produce an SK server embedded integration for my I2C sensors, udev rules for my usb devices and SK server config for my devices.

emilecantin commented 8 years ago

I think that it would go a long way towards simplifying the installation for potential users. I agree that the 'secrets' part needs to be solved, but that's doable.

I'm willing to tackle this, I was mostly opening the issue to gauge interest in this. I don't know Ansible though (I use Puppet), but this will be the perfect occasion to learn!