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:
|
||||
- role: openshift/sysadmin-openshift
|
||||
appowners:
|
||||
sysadmin_openshift_appowners:
|
||||
- darknao
|
||||
- dkirwan
|
||||
- jrichardson
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
---
|
||||
appowners: []
|
||||
project_name: sysadmin-openshift
|
||||
project_templates:
|
||||
sysadmin_openshift_appowners: []
|
||||
sysadmin_openshift_project_name: sysadmin-openshift
|
||||
sysadmin_openshift_project_templates:
|
||||
- group.yaml
|
||||
- rolebinding.yaml
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
- name: Create the directories to hold the templates
|
||||
file:
|
||||
path: "/root/ocp4/openshift-apps/{{project_name}}"
|
||||
path: "/root/ocp4/openshift-apps/{{sysadmin_openshift_project_name}}"
|
||||
state: directory
|
||||
owner: root
|
||||
group: root
|
||||
|
@ -14,15 +14,15 @@
|
|||
- name: create the templates
|
||||
template:
|
||||
src: "{{ item }}"
|
||||
dest: "/root/ocp4/openshift-apps/{{project_name}}/{{ item }}"
|
||||
dest: "/root/ocp4/openshift-apps/{{sysadmin_openshift_project_name}}/{{ item }}"
|
||||
mode: "0770"
|
||||
with_items: "{{ project_templates }}"
|
||||
with_items: "{{ sysadmin_openshift_project_templates }}"
|
||||
tags:
|
||||
- create-resources
|
||||
|
||||
# apply created openshift resources
|
||||
- name: oc apply resources
|
||||
command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/{{project_name}}/{{ item }}"
|
||||
with_items: "{{ project_templates }}"
|
||||
command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/{{sysadmin_openshift_project_name}}/{{ item }}"
|
||||
with_items: "{{ sysadmin_openshift_project_templates }}"
|
||||
tags:
|
||||
- create-resources
|
||||
|
|
|
@ -4,6 +4,6 @@ apiVersion: user.openshift.io/v1
|
|||
metadata:
|
||||
name: "sysadmin-openshift"
|
||||
users:
|
||||
{% for item in appowners %}
|
||||
{% for item in sysadmin_openshift_appowners %}
|
||||
- "{{ item }}"
|
||||
{% endfor %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue