summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2014-10-01 15:39:26 -0700
committerJhon Honce <jhonce@redhat.com>2014-10-02 15:36:11 -0700
commitb1b2cbe00cfe766a414972352730454c1e79c2c2 (patch)
treeda75bd9df2bca097bf5937f760597990e85e9b4c /roles
parent2808f726dacb60e58c289c18a91258e0526705a3 (diff)
downloadopenshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.gz
openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.bz2
openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.tar.xz
openshift-b1b2cbe00cfe766a414972352730454c1e79c2c2.zip
Finish origin -> openshift rename
Diffstat (limited to 'roles')
-rw-r--r--roles/openshift_master/README.md (renamed from roles/origin_master/README.md)0
-rw-r--r--roles/openshift_master/defaults/main.yml (renamed from roles/origin_master/defaults/main.yml)0
-rw-r--r--roles/openshift_master/handlers/main.yml (renamed from roles/origin_master/handlers/main.yml)0
-rw-r--r--roles/openshift_master/meta/main.yml (renamed from roles/origin_master/meta/main.yml)0
-rw-r--r--roles/openshift_master/tasks/main.yml (renamed from roles/origin_master/tasks/main.yml)15
-rw-r--r--roles/openshift_master/vars/main.yml (renamed from roles/origin_master/vars/main.yml)0
-rw-r--r--roles/openshift_minion/README.md (renamed from roles/origin_minion/README.md)0
-rw-r--r--roles/openshift_minion/defaults/main.yml (renamed from roles/origin_minion/defaults/main.yml)0
-rw-r--r--roles/openshift_minion/handlers/main.yml (renamed from roles/origin_minion/handlers/main.yml)0
-rw-r--r--roles/openshift_minion/meta/main.yml (renamed from roles/origin_minion/meta/main.yml)0
-rw-r--r--roles/openshift_minion/tasks/main.yml (renamed from roles/origin_minion/tasks/main.yml)14
-rw-r--r--roles/openshift_minion/vars/main.yml (renamed from roles/origin_minion/vars/main.yml)0
12 files changed, 20 insertions, 9 deletions
diff --git a/roles/origin_master/README.md b/roles/openshift_master/README.md
index 225dd44b9..225dd44b9 100644
--- a/roles/origin_master/README.md
+++ b/roles/openshift_master/README.md
diff --git a/roles/origin_master/defaults/main.yml b/roles/openshift_master/defaults/main.yml
index c7d14b676..c7d14b676 100644
--- a/roles/origin_master/defaults/main.yml
+++ b/roles/openshift_master/defaults/main.yml
diff --git a/roles/origin_master/handlers/main.yml b/roles/openshift_master/handlers/main.yml
index 216af5dc9..216af5dc9 100644
--- a/roles/origin_master/handlers/main.yml
+++ b/roles/openshift_master/handlers/main.yml
diff --git a/roles/origin_master/meta/main.yml b/roles/openshift_master/meta/main.yml
index c5c362c60..c5c362c60 100644
--- a/roles/origin_master/meta/main.yml
+++ b/roles/openshift_master/meta/main.yml
diff --git a/roles/origin_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index 3963b5090..5a940c88a 100644
--- a/roles/origin_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -1,7 +1,7 @@
---
# tasks file for openshift_master
- name: Install Origin
- yum: pkg=openshift state=installed
+ yum: pkg=origin state=installed
- name: Configure Origin settings
lineinfile: >
@@ -14,12 +14,17 @@
notify:
- restart openshift-master
-- name: Enable OpenShift
- service: name=openshift enabled=yes state=started
+- name: Open firewalld port for etcd embedded in OpenShift
+ firewalld: port=4001/tcp permanent=false state=enabled
+
+- name: Save firewalld port for etcd embedded in
+ firewalld: port=4001/tcp permanent=true state=enabled
-- name: Open firewalld port for Origin
+- name: Open firewalld port for OpenShift
firewalld: port=8080/tcp permanent=false state=enabled
-- name: Save firewalld port for Origin
+- name: Save firewalld port for OpenShift
firewalld: port=8080/tcp permanent=true state=enabled
+- name: Enable OpenShift
+ service: name=openshift enabled=yes state=started
diff --git a/roles/origin_master/vars/main.yml b/roles/openshift_master/vars/main.yml
index 1f5cb46d6..1f5cb46d6 100644
--- a/roles/origin_master/vars/main.yml
+++ b/roles/openshift_master/vars/main.yml
diff --git a/roles/origin_minion/README.md b/roles/openshift_minion/README.md
index 225dd44b9..225dd44b9 100644
--- a/roles/origin_minion/README.md
+++ b/roles/openshift_minion/README.md
diff --git a/roles/origin_minion/defaults/main.yml b/roles/openshift_minion/defaults/main.yml
index dfcf3d98f..dfcf3d98f 100644
--- a/roles/origin_minion/defaults/main.yml
+++ b/roles/openshift_minion/defaults/main.yml
diff --git a/roles/origin_minion/handlers/main.yml b/roles/openshift_minion/handlers/main.yml
index 2764456f4..2764456f4 100644
--- a/roles/origin_minion/handlers/main.yml
+++ b/roles/openshift_minion/handlers/main.yml
diff --git a/roles/origin_minion/meta/main.yml b/roles/openshift_minion/meta/main.yml
index c5c362c60..c5c362c60 100644
--- a/roles/origin_minion/meta/main.yml
+++ b/roles/openshift_minion/meta/main.yml
diff --git a/roles/origin_minion/tasks/main.yml b/roles/openshift_minion/tasks/main.yml
index 3bb62b438..c43575945 100644
--- a/roles/origin_minion/tasks/main.yml
+++ b/roles/openshift_minion/tasks/main.yml
@@ -1,7 +1,7 @@
---
# tasks file for openshift_minion
- name: Install OpenShift
- yum: pkg=openshift state=installed
+ yum: pkg=origin state=installed
- name: Configure OpenShift settings
lineinfile: >
@@ -14,11 +14,17 @@
notify:
- restart openshift-minion
-- name: Enable OpenShift
- service: name=openshift enabled=yes state=started
-
- name: Open firewalld port for OpenShift
firewalld: port=10250/tcp permanent=false state=enabled
- name: Save firewalld port for OpenShift
firewalld: port=10250/tcp permanent=true state=enabled
+
+ # POST ${master_ip}:8080/api/v1beta1/minions kind=Minion id=${node_ip} apiVersion=v1beta1 hostIP=${node_ip} >/dev/null
+
+- name: Enable OpenShift
+ service: name=openshift enabled=yes state=started
+
+- name: Register with OpenShift master
+ command: "curl -X POST -H 'Accept: application/json' -d '{\"kind\":\"Minion\", \"id\":\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\", \"apiVersion\":\"v1beta1\", \"hostIP\":\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\" }' http://{{ oo_master_ips[0] }}:8080/api/v1beta1/minions"
+ when: oo_master_ips[0] != ''
diff --git a/roles/origin_minion/vars/main.yml b/roles/openshift_minion/vars/main.yml
index 715fba487..715fba487 100644
--- a/roles/origin_minion/vars/main.yml
+++ b/roles/openshift_minion/vars/main.yml