Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rework remote-setup.rb to use ansible #18

Closed
amcewen opened this issue Jan 23, 2017 · 2 comments
Closed

Rework remote-setup.rb to use ansible #18

amcewen opened this issue Jan 23, 2017 · 2 comments

Comments

@amcewen
Copy link
Member

amcewen commented Jan 23, 2017

Given that DoESLiverpool/somebody-should#426 shows up problems with the SD card size, it'd be good to move to Raspbian-lite rather than the full-fat Raspbian (given that that's a thing now :-)

If we're doing that, and working out what's needed to get X on doorbot1 (or working out if we don't need it as KWeb3 can possibly run direct to framebuffer) I'm considering switching over to ansible for the development (as I've already got bits of that lying around, e.g. https://github.com/mcqn/etherpad-in-a-box and https://github.com/museuminabox/brain/blob/master/INSTALL.md)

Raising this issue so I can create a branch referring to it, to make a start on it...

@amcewen
Copy link
Member Author

amcewen commented Jan 23, 2017

Have set up the Ansible scaffolding to make a start on this over on the branch https://github.com/DoESLiverpool/doorbot-setup/tree/feature/18-move-to-ansible

At present all it'll do is set the Pi's name to doorbot and install git and ruby. There's a "base-doorbot" role which is where most of the setup steps will live, then the "install web browser, etc. for doorbot1" and "set up Kindle integration on doorbot3" can be layered on top (either as new roles, or just steps for the relevant doorbot in doorbot.yml)

I'm not 100% sure how to set it up, but it should be possible to set up groups of computers in the hosts file (I think) to allow us to then specify which doorbot we're building.
Need to move the rest of the things-that-need-installing into

@amcewen
Copy link
Member Author

amcewen commented Feb 2, 2017

The doorbot1 script is finished and pushed to the branch. At present the "wait_for" step near the end has the Pi's IP address hard-coded, as I hadn't managed to get it working with the ansible variables (it should be something like "{{ ansible_host }}"

However, apart from that, doorbot1 is back up and running.

We need to add the config for doorbots 2 and 3 still.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant