Name Last Update
apelsin.josefsson.org Loading commit data...
apt Loading commit data...
chat.josefsson.org Loading commit data...
creds Loading commit data...
duva.sjd.se Loading commit data...
git.josefsson.org Loading commit data...
global Loading commit data...
guix.sjd.se Loading commit data...
hamster.josefsson.org Loading commit data...
icinga.sjd.se Loading commit data...
iller.josefsson.org Loading commit data...
jow13gw.josefsson.org Loading commit data...
kanin.sjd.se Loading commit data...
kask.josefsson.org Loading commit data...
kil.sjd.se Loading commit data...
kniv.josefsson.org Loading commit data...
ko.sjd.se Loading commit data...
latte.josefsson.org Loading commit data...
leo.sjd.se Loading commit data...
moln.sjd.se Loading commit data...
munin.sjd.se Loading commit data...
openwrt.caramel Loading commit data...
openwrt.forza Loading commit data...
openwrt.kladdkaka Loading commit data...
openwrt.pralin Loading commit data...
openwrt.skata Loading commit data...
openwrt.tefat Loading commit data...
openwrt.tryffel Loading commit data...
openwrt.ufo Loading commit data...
pippi.sjd.se Loading commit data...
pisky.josefsson.org Loading commit data...
replicantbuilder.sjd.se Loading commit data...
sockerbit.josefsson.org Loading commit data...
spin.sjd.se Loading commit data...
yxa-vi.extundo.com Loading commit data...
README Loading commit data...
bootstrap-cosmos.sh Loading commit data...
bump-tag Loading commit data...
SJD Cosmos models
=================

This repository holds the Cosmos models for SJD's machines.

Setting up a machine
--------------------

1. Create/install the machine somehow so that you can reach it over
   SSH, typically with a password initially.

2. Make sure the machine is fully upgraded before starting.
   apt-get update && apt-get dist-upgrade -uy && apt-get autoremove --purge &&
   reboot

3. Transfer bootstrapping tools for Cosmos to the remote machine.
   scp bootstrap-cosmos.sh apt/cosmos_1.5-1_all.deb root@1.2.3.4:

4. Invoke the script on the machine:
   nohup sh ./bootstrap-cosmos.sh foobar.josefsson.org &
   tail -F nohup.out /var/log/cosmos.log &

5. If the machine needs credentials, deploy them from the creds/ directory.
   cd creds
   make host HOST=1.2.3.4

6. Reboot the machine to make sure everything is working
   reboot

Post-setup routine:

A. Setup backups of the machine.

B. Setup munin to graph the machine.

C. Setup icinga to monitor the machine.