Page 1 of 1

Downloading Settings on Startup

Posted: Tue Aug 04, 2015 2:21 pm
by BSD_
Hey Guys,

So currently I am a little stumped and I am not sure what to do so here's my question. So basically I work for a company and they are all for raspberry pi's and I think that's awesome and I am currently programming there new system with raspberry pi's and python. But here's the catch when we send a raspberry pi to a customer we just want them to boot up and it will automatically connect to our web server and download the settings that it will be using without us having to touch anything other then booting it up.

1. Is this possible?

2. If yes, how can it be done?

regards, BSD_

Re: Downloading Settings on Startup

Posted: Sun Aug 09, 2015 9:45 pm
by Toxus
You may want to look into puppet, I've done something similar in a QEMU Pi VM where I have a bootstrap puppet manifest that changes the hostname, then configures puppet agent (turning it from standalone to a node), reboots and then runs the agent so that it grabs the provisioning manifest from my EC2 server. It works pretty well and may actually be what you're looking for.

A small piece of advice, if you're going to script this, put a script in rc.local and just remove the script after the first boot (to keep it from doing the firstboot configuration each time.