diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-01-28 14:01:25 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2015-01-30 17:27:28 +0000 |
commit | 43721a6d657ae6f527aa59378b1722bbd10127f6 (patch) | |
tree | 2e54726723d1e638bf2678f9eb3c528df599d47e | |
parent | 971dc742e1c454ae5fade570faf4ec22aaf9b046 (diff) | |
download | infrastructure-43721a6d657ae6f527aa59378b1722bbd10127f6.tar.gz |
Tweak README
Use $keyname as a placeholder for key pair name so that I can copy and
paste the command as-is and set keypair= in my environment, instead of
manually replacing the <key-name> placeholder each time.
Also note that database/instance-mariadb-config.yml can be rerun any
time to update the MariaDB users and tables.
-rw-r--r-- | README.mdwn | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/README.mdwn b/README.mdwn index d7a40702..96aab45b 100644 --- a/README.mdwn +++ b/README.mdwn @@ -78,7 +78,7 @@ To deploy this system to production: packer build -only=production database/packer_template.json nova boot database-mariadb \ - --key-name=<your keypair> \ + --key-name=$keyname \ --flavor dc1.1x1 \ --image 'database-mariadb' \ --nic='net-id=d079fa3e-2558-4bcb-ad5a-279040c202b5,v4-fixed-ip=192.168.222.30' \ @@ -91,6 +91,10 @@ To deploy this system to production: nova volume-attach database-mariadb <volume ID> /dev/vdb ansible-playbook -i hosts database/instance-config.yml + +To add the required users and databases, run the following playbook. This can +be altered and rerun whenever you need to add more users or databases. + ansible-playbook -i hosts database/instance-mariadb-config.yml @@ -117,7 +121,7 @@ https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ packer build -only=production baserock_openid_provider/packer_template.json nova boot openid.baserock.org \ - --key-name <your-keypair> \ + --key-name $keyname \ --flavor dc1.1x1 \ --image 'baserock_openid_provider' \ --nic 'net-id=d079fa3e-2558-4bcb-ad5a-279040c202b5',v4-fixed-ip=192.168.222.67 \ @@ -140,7 +144,7 @@ To deploy the production version: packer build -only=production baserock_storyboard/packer_template.json nova boot openid_provider --flavor dc1.1x1 --image 'baserock_storyboard' \ - --key-name=<your-keypair> storyboard.baserock.org \ + --key-name=$keyname storyboard.baserock.org \ --nic='net-id=d079fa3e-2558-4bcb-ad5a-279040c202b5' |