summaryrefslogtreecommitdiffstats
path: root/playbooks/gce/openshift-master
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2015-03-06 13:52:20 -0700
committerJhon Honce <jhonce@redhat.com>2015-03-24 11:04:22 -0700
commit7c7cb82fdd5583784fd5832b92886abf86934325 (patch)
tree52b109394947ecc960ac458a6c69dce334a46467 /playbooks/gce/openshift-master
parent1c1df6a5733626865efc607d063f2a2a9b80499b (diff)
downloadopenshift-7c7cb82fdd5583784fd5832b92886abf86934325.tar.gz
openshift-7c7cb82fdd5583784fd5832b92886abf86934325.tar.bz2
openshift-7c7cb82fdd5583784fd5832b92886abf86934325.tar.xz
openshift-7c7cb82fdd5583784fd5832b92886abf86934325.zip
Use ansible playbook to initialize openshift cluster
* Added playbooks/gce/openshift-cluster * Added bin/cluster (will replace cluster.sh)
Diffstat (limited to 'playbooks/gce/openshift-master')
-rw-r--r--playbooks/gce/openshift-master/config.yml13
-rw-r--r--playbooks/gce/openshift-master/terminate.yml2
2 files changed, 12 insertions, 3 deletions
diff --git a/playbooks/gce/openshift-master/config.yml b/playbooks/gce/openshift-master/config.yml
index a74250d13..5581e8401 100644
--- a/playbooks/gce/openshift-master/config.yml
+++ b/playbooks/gce/openshift-master/config.yml
@@ -1,5 +1,4 @@
----
-- name: "populate oo_hosts_to_config host group if needed"
+- name: "master/config.yml, populate oo_hosts_to_config host group if needed"
hosts: localhost
gather_facts: no
tasks:
@@ -13,6 +12,16 @@
connection: ssh
user: root
+- name: "Retrieve public ip"
+ hosts: oo_hosts_to_config
+ connection: ssh
+ user: root
+ gather_facts: yes
+ tasks:
+ - command: 'curl "http://metadata.google.internal/computeMetadata/v1/instance/network-interfaces/0/access-configs/0/external-ip" -H "Metadata-Flavor: Google"'
+ register: output
+ - set_fact: gce_public_ip="{{ output.stdout }}"
+
- name: "Set Origin specific facts on localhost (for later use)"
hosts: localhost
gather_facts: no
diff --git a/playbooks/gce/openshift-master/terminate.yml b/playbooks/gce/openshift-master/terminate.yml
index 76e1404b5..f1345874a 100644
--- a/playbooks/gce/openshift-master/terminate.yml
+++ b/playbooks/gce/openshift-master/terminate.yml
@@ -12,7 +12,7 @@
- debug: msg="{{ groups['oo_hosts_to_terminate'] }}"
-- name: Terminate instances
+- name: Terminate master instances
hosts: localhost
connection: local
tasks: