summaryrefslogtreecommitdiffstats
path: root/playbooks/aws/BUILD_AMI.md
diff options
context:
space:
mode:
authorMichael Gugino <mgugino@redhat.com>2017-10-06 16:55:36 -0400
committerMichael Gugino <mgugino@redhat.com>2017-10-11 13:30:06 -0400
commit0cf1f1f615d978001b1084e5827cf79add0caaef (patch)
treec220a222c8823b0ac2d0d6d751d37a0a2d751f68 /playbooks/aws/BUILD_AMI.md
parentb35eb14f85fab4a8f1411feb43a563b19c73c438 (diff)
downloadopenshift-0cf1f1f615d978001b1084e5827cf79add0caaef.tar.gz
openshift-0cf1f1f615d978001b1084e5827cf79add0caaef.tar.bz2
openshift-0cf1f1f615d978001b1084e5827cf79add0caaef.tar.xz
openshift-0cf1f1f615d978001b1084e5827cf79add0caaef.zip
Provisioning Documentation Updates
Updating provisioning documents. Also moved some steps from build_ami.yml to a new play for better reusability.
Diffstat (limited to 'playbooks/aws/BUILD_AMI.md')
-rw-r--r--playbooks/aws/BUILD_AMI.md21
1 files changed, 21 insertions, 0 deletions
diff --git a/playbooks/aws/BUILD_AMI.md b/playbooks/aws/BUILD_AMI.md
new file mode 100644
index 000000000..468264a9a
--- /dev/null
+++ b/playbooks/aws/BUILD_AMI.md
@@ -0,0 +1,21 @@
+# Build AMI
+
+When seeking to deploy a working openshift cluster using these plays, a few
+items must be in place.
+
+These are:
+
+1. Create an instance, using a specified ssh key.
+2. Run openshift-ansible setup roles to ensure packages and services are correctly configured.
+3. Create the AMI.
+4. If encryption is desired
+ - A KMS key is created with the name of $clusterid
+ - An encrypted AMI will be produced with $clusterid KMS key
+5. Terminate the instance used to configure the AMI.
+
+More AMI specific options can be found in ['openshift_aws/defaults/main.yml'](../../roles/openshift_aws/defaults/main.yml). When creating an encrypted AMI please specify use_encryption:
+```
+# openshift_aws_ami_encrypt: True # defaults to false
+```
+
+**Note**: This will ensure to take the recently created AMI and encrypt it to be used later. If encryption is not desired then set the value to false (defaults to false). The AMI id will be fetched and used according to its most recent creation date.