This page describes the steps involved in setting up a cloud node to run a staging-like setup. struck through things can be done by salt.
Run the provision users script
Create instance-manager user.
Set the password to '1234'
i. Don't worry, we don't allow login with passwords...
Also add the user to the admin group
Create become-instance-manager script.
http://paste.ubuntu.com/1266312/ -> /usr/local/bin/become-instance-manager
Install x86 compatible libraries so that you can run the ADB binary for Android
sudo apt-get install ia32-libs
copy /usr/local/bin/adb from control to /usr/local/bin
Mount the nas and make production db snapshots available.
apt-get install -y nfs-common
add 192.168.1.21:/c/val_backup /mnt/nas01/val_backup nfs to fstab
mkdir -p /mnt/nas01/val_backup
ln -s /mnt/nas01/val_backup/lava-instances /srv/lava/backups
- Run ldt setup, ldt install --non-interactive
- Set up custom buildout.cfg.
- Configure the dispatcher
Need to set LAVA_SERVER_IP to external IP address -- which I don't think is knowable from the instance.
Not sure what recommended setting for LAVA_IMAGE_TMPDIR etc should be -- ephemeral storage maybe?
This means copying various port-resetting and pdu managing helper scripts around
Accessing usb devices like snowballs involves setting the device.conf like connection_command = conmux-console control/snowball10
Also add urlmappings.txt to allow access to restricted builds.
Presumably there is an ssh private key involved too...
- Run restore-staging-db
- Maybe set LAVA_INSTANCE, LAVA_HOSTNAME on invocation
Add sudoer rule to allow instance-manager to restart the instance without password
instance-manager ALL=(ALL) NOPASSWD:/sbin/start lava-instance LAVA_INSTANCE=staging, /sbin/stop lava-instance LAVA_INSTANCE=staging, /sbin/restart lava-instance LAVA_INSTANCE=staging
- Set up the cronjobs to create the deployment report and do code updates
- Put branches in /srv/lava/branches
- Set up instance to use these branches
- Create /linaro/tmp and /linaro/cache directories (maybe? see above about settings for LINARO_IMAGE_TMPDIR)
Set up apache to SetHandler none for and create symlinks for deployment-report.xhtml and staging-updates.txt and enable access to images for the dispatcher
sudo add-apt-repository "deb http://us.archive.ubuntu.com/ubuntu/ hardy multiverse"
sudo apt-get update
sudo apt-get install sun-java6-jdk
Are we happy about installing packages from hardy? No.
Platform/LAVA/DevOps/SettingUpStaging (last modified 2013-01-15 00:42:30)