Skip to content

vacri/pendulous-puppet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pendulous-puppet

NOTE Currently this is in a heavily broken state, because I was tired of debugging Puppet and wanted to get on with things. It will be returned to.

The Cloudatcost servers aren't very backupabble - no snapshotting and no access to the image. If you bork the install and/or lock yourself out, there is no recourse. So config management is critical.

This repo is a masterless puppet to make my pendulous.equipment in the cloud work. It assumes starting from the Debian 7 base.

NOTE A cloudatcost 'reimage' assigns you a new static IP address and initial password. The IP address is not obtainable through DHCP - so if you've reimaged, you will have to change the existing network intefaces listed in this archive.

Provisioning process

  1. Reimage to the Debian 7 image using the cloudatcost console
  2. Consider reinstalling using the 'netboot' image - see below list
  3. Change /etc/apt/sources.list to something other than the clouadatcost defaults (the 'non-us' one doesn't even resolve).
  4. aptitude update
  5. aptitude install git puppet
  6. git clone https://github.com/vacri/pendulous-puppet.git
  7. edit network interface in puppet to match new IP address from reimaging
  8. cd pendulous-puppet && ./test && ./apply
  9. grab a choccy milk

Reimaging with debian netboot image

Note that's 'netboot' (13MB) not netinstall (~200MB), as the latter requires a CD or other mountable media

The netboot image is the amd64 'tiny cd' from https://www.debian.org/distrib/netinst

  • Confirm that you could be arsed in the first place - it will take a while
  • Take note of the IP address in the cloudatcost panel (panel.cloudatcost.com)
  • Log into the machine su - wget http://ftp.nl.debian.org/debian/dists/wheezy/main/installer-amd64/current/images/netboot/netboot.tar.gz tar zxf netboot.tar.gz gunzip debian-installer/amd64/initrd.gz cp debian-installer/amd/initrd /boot/initrd.img-4-netboot cp debian-installer/amd/linux /boot/vmlinuz-4-netboot update-grub2 reboot
  • Back at the cloudatcost panel, click on 'console' for the relevant machine
  • The popup window will show you the console, which should reboot into the Debian installer
  • Follow the usual debian installer process as suits you -- the network will not autoconfigure, you will have to use the IP address from the panel
  • This will end up with a Debian Stable installation, which can be upgraded again vi /etc/apt/sources.list -> %s/wheezy/jessie/g aptitude update aptitude install screen -> screen apt-get --download-only dist-upgrade # have had problems with dist-upgrading in aptitude apt-get dist-upgrade

About

Puppet config for cloud server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published