Prefix openshift/sysadmin-openshift
Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
parent
4d651a8dae
commit
e5a47b8e0d
4 changed files with 10 additions and 10 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- role: openshift/sysadmin-openshift
|
- role: openshift/sysadmin-openshift
|
||||||
appowners:
|
sysadmin_openshift_appowners:
|
||||||
- darknao
|
- darknao
|
||||||
- dkirwan
|
- dkirwan
|
||||||
- jrichardson
|
- jrichardson
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
appowners: []
|
sysadmin_openshift_appowners: []
|
||||||
project_name: sysadmin-openshift
|
sysadmin_openshift_project_name: sysadmin-openshift
|
||||||
project_templates:
|
sysadmin_openshift_project_templates:
|
||||||
- group.yaml
|
- group.yaml
|
||||||
- rolebinding.yaml
|
- rolebinding.yaml
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
- name: Create the directories to hold the templates
|
- name: Create the directories to hold the templates
|
||||||
file:
|
file:
|
||||||
path: "/root/ocp4/openshift-apps/{{project_name}}"
|
path: "/root/ocp4/openshift-apps/{{sysadmin_openshift_project_name}}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: root
|
owner: root
|
||||||
group: root
|
group: root
|
||||||
|
@ -14,15 +14,15 @@
|
||||||
- name: create the templates
|
- name: create the templates
|
||||||
template:
|
template:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "/root/ocp4/openshift-apps/{{project_name}}/{{ item }}"
|
dest: "/root/ocp4/openshift-apps/{{sysadmin_openshift_project_name}}/{{ item }}"
|
||||||
mode: "0770"
|
mode: "0770"
|
||||||
with_items: "{{ project_templates }}"
|
with_items: "{{ sysadmin_openshift_project_templates }}"
|
||||||
tags:
|
tags:
|
||||||
- create-resources
|
- create-resources
|
||||||
|
|
||||||
# apply created openshift resources
|
# apply created openshift resources
|
||||||
- name: oc apply resources
|
- name: oc apply resources
|
||||||
command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/{{project_name}}/{{ item }}"
|
command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/{{sysadmin_openshift_project_name}}/{{ item }}"
|
||||||
with_items: "{{ project_templates }}"
|
with_items: "{{ sysadmin_openshift_project_templates }}"
|
||||||
tags:
|
tags:
|
||||||
- create-resources
|
- create-resources
|
||||||
|
|
|
@ -4,6 +4,6 @@ apiVersion: user.openshift.io/v1
|
||||||
metadata:
|
metadata:
|
||||||
name: "sysadmin-openshift"
|
name: "sysadmin-openshift"
|
||||||
users:
|
users:
|
||||||
{% for item in appowners %}
|
{% for item in sysadmin_openshift_appowners %}
|
||||||
- "{{ item }}"
|
- "{{ item }}"
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue