Browse Source

Use ansible playbook to initialize openshift cluster

* Added playbooks/gce/openshift-cluster
* Added bin/cluster (will replace cluster.sh)
Jhon Honce 10 years ago
parent
commit
3324b6c888
2 changed files with 4 additions and 0 deletions
  1. 1 0
      playbooks/gce/openshift-node/config.yml
  2. 3 0
      roles/openshift_common/tasks/main.yml

+ 1 - 0
playbooks/gce/openshift-node/config.yml

@@ -53,6 +53,7 @@
   roles:
   - openshift_register_nodes
   tasks:
+  tasks:
   - name: Create local temp directory for syncing certs
     local_action: command /usr/bin/mktemp -d /tmp/openshift-ansible-XXXXXXX
     register: mktemp

+ 3 - 0
roles/openshift_common/tasks/main.yml

@@ -2,6 +2,9 @@
 - name: Set hostname
   hostname: name={{ openshift_hostname }}
 
+- name: Update all packages
+  yum: name=* state=latest
+
 - name: Configure local facts file
   file: path=/etc/ansible/facts.d/ state=directory mode=0750