diff options
author | Andrew Butcher <abutcher@redhat.com> | 2018-01-10 15:07:58 -0500 |
---|---|---|
committer | Andrew Butcher <abutcher@redhat.com> | 2018-01-10 15:47:54 -0500 |
commit | 3986e89ecf2df2f5f1ff5b28273d9a6407f8d6f6 (patch) | |
tree | 7ce408f5ca953d512c580ad7c4f70cd703a681bc /playbooks/aws/openshift-cluster | |
parent | 14e5e8cfff847071d75ff7b7ffc99509214ba779 (diff) | |
download | openshift-3986e89ecf2df2f5f1ff5b28273d9a6407f8d6f6.tar.gz openshift-3986e89ecf2df2f5f1ff5b28273d9a6407f8d6f6.tar.bz2 openshift-3986e89ecf2df2f5f1ff5b28273d9a6407f8d6f6.tar.xz openshift-3986e89ecf2df2f5f1ff5b28273d9a6407f8d6f6.zip |
Move s3 & elb provisioning into their own playbooks s.t. they are applied outside of the openshift_aws master provisioning tasks.
Diffstat (limited to 'playbooks/aws/openshift-cluster')
-rw-r--r-- | playbooks/aws/openshift-cluster/provision.yml | 10 | ||||
-rw-r--r-- | playbooks/aws/openshift-cluster/provision_elb.yml | 9 | ||||
-rw-r--r-- | playbooks/aws/openshift-cluster/provision_s3.yml | 10 |
3 files changed, 27 insertions, 2 deletions
diff --git a/playbooks/aws/openshift-cluster/provision.yml b/playbooks/aws/openshift-cluster/provision.yml index 7dde60b7d..d538b862d 100644 --- a/playbooks/aws/openshift-cluster/provision.yml +++ b/playbooks/aws/openshift-cluster/provision.yml @@ -1,8 +1,7 @@ --- -- name: Setup the elb and the master node group +- name: Alert user to variables needed hosts: localhost tasks: - - name: Alert user to variables needed - clusterid debug: msg: "openshift_aws_clusterid={{ openshift_aws_clusterid | default('default') }}" @@ -11,6 +10,13 @@ debug: msg: "openshift_aws_region={{ openshift_aws_region | default('us-east-1') }}" +- import_playbook: provision_s3.yml + +- import_playbook: provision_elb.yml + +- name: Create the master node group + hosts: localhost + tasks: - name: provision cluster import_role: name: openshift_aws diff --git a/playbooks/aws/openshift-cluster/provision_elb.yml b/playbooks/aws/openshift-cluster/provision_elb.yml new file mode 100644 index 000000000..9f27dca3b --- /dev/null +++ b/playbooks/aws/openshift-cluster/provision_elb.yml @@ -0,0 +1,9 @@ +--- +- name: Create elb + hosts: localhost + connection: local + tasks: + - name: provision elb + include_role: + name: openshift_aws + tasks_from: provision_elb.yml diff --git a/playbooks/aws/openshift-cluster/provision_s3.yml b/playbooks/aws/openshift-cluster/provision_s3.yml new file mode 100644 index 000000000..45b439083 --- /dev/null +++ b/playbooks/aws/openshift-cluster/provision_s3.yml @@ -0,0 +1,10 @@ +--- +- name: Create s3 bucket + hosts: localhost + connection: local + tasks: + - name: create s3 bucket + include_role: + name: openshift_aws + tasks_from: s3.yml + when: openshift_aws_create_s3 | default(true) | bool |