Admin Guides_Use Case Tutorial - ACCESS-NRI/accessdev-Trac-archive GitHub Wiki
Tutorial is at https://docs.google.com/document/d/1ndDa505VPr4dXLRoojUh9nRBp7gzDsPAkD2c4h8EsFE
- 1.1: Initial Git config
- 1.2: Set up ssh keys
- 1.4: Check out puppet source on cloudlogin
- Repository is [email protected]:p/access.dev/puppet
- 1.6: Register ssh key with Openstack
- Nova (Openstack) command examples:
nova list
nova flavor-list
nova keypair-list
You may need to run a script called .nci-os-creds.sh or similar to get Openstack credentials set up correctly
- 1.8: Boot a new accessdev-test instance
# Delete old instance (shutting down VM cleanly first is recommended).
nova delete accessdev-test.nci.org.au
# Boot up new instance
./tools/nova-boot \
--name accessdev-test.nci.org.au \
--ip 130.56.244.73 \
--install-updates \
-- \
--flavor m1.small.2 \
--security-groups ssh,http,umui,ping
- Boot up a personal test vm
./tools/nova-boot \
--name <user>-accessdev-test \
--install-updates \
-- \
--flavor m1.small.2 \
--security-groups ssh,http,umui,ping
- Note that if you don't have a IP address specified, you will just be assigned a local IP address and can only log in from cloudlogin. Using the command "nova list" you will be able to view the local IP address of your VM.
- The booting up process can take a while so you can view the boot up process by using the command "nova console-log "
- Be aware that the VM you boot will track whatever branch is currently checked out on cloudlogin.
-
First optionally could try a manual install on accessdev-test
-
Create a new branch and test changes on accessdev-test.
#in cloudlogin
cd puppet #(or wherever your puppet source is checked out to)
git status #check your working directory is clean
git checkout master
git pull
git checkout -b <user>/rose-update # create new branch called <user>/rose-update
### Modify revisions in hieradata/project.yaml
### modify any configuration files affected by the update
git commit -a # commit git changes to a particular revision
git push # push changes back to central repository
- For details about changes to puppet required when upgrading rose, see: https://trac.nci.org.au/trac/access/wiki/RosePuppetConfiguration#roseupdate