Rings Picture Gallery Setup
The Picture Rings application is designed to allow a single server to host multiple picture galleries, but this has not been tested. It is much simpler to just create a VM for each gallery instance.
Detailed Steps
Build a VM using
remctl <xenhost> xen new. This uses FAI and installs many useful packages.Login to the new host's console using
cz-xen console <hostname>.Bring up the network interface and get a dhcp address.
ip link enX0 upanddhclient -v.Install the auristorfs-client and auristorfs-modules-dkms.
Assign an ip address to the host and install netplan. Copy and edit the netplan configuration file from
/afs/@cell/public/software/netplan/10-static.yaml.Create a host keytab using wallet and install the keytab.
Copy cz-puppet.conf from
/afs/@cell/public/software/puppet/cz-puppet.confto /etc.Edit /etc/cz-puppet.conf to set the MANIFEST_ID. A reasonable default is
minimal.Set the puppet base path with
cz-puppet-basepath.Update AFS permissions to allow the new host to access the puppet repository.
pts createuser -name host.somehost.mycell.org -type machine pts adduser -group puppet-hosts -user host.somehost.mycell.orgCreate the following wallet objects and set the wallet acl to allow the objects to be downloaded using the host keytab.
file config/<ring-id>_db keytab host/<ring-id>.ca-zephyr.org keytab http/<ring-id>.ca-zephyr.org keytab service/<ring-id>Create the gallery configuration file
/etc/rings/<ring-id>.confand add it to the puppet configuration.Run puppet with cz-puppet.
Create the MariaDB database to hold gallery meta-data.
Create a database user that is referenced in the wallet object
file config/<ring-id>_db.GRANT ALL ON .* to ''@'10.0.0.0/255.255.255.0' IDENTIFIED BY 'some-password';
Fix what doesn't work.
Have a lolly pop.