summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-28 14:01:25 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-01-30 17:55:25 +0000
commit6024d77cc4251982396537d175803b60a2ac58c6 (patch)
tree17d17892e3cab3d508d1ff95d6250353e6896428
parenta65362f5bd4c625afb13caad5d3ecdf1b21ae42e (diff)
downloadinfrastructure-6024d77cc4251982396537d175803b60a2ac58c6.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.mdwn10
1 files changed, 7 insertions, 3 deletions
diff --git a/README.mdwn b/README.mdwn
index f165d918..148ab1ff 100644
--- a/README.mdwn
+++ b/README.mdwn
@@ -140,7 +140,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' \
@@ -153,6 +153,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
[MariaDB]: https://www.mariadb.org
@@ -179,7 +183,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 \
@@ -201,7 +205,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'
Storyboard deployment does not yet work fully (you can manually kludge it into