#839 Create fedora-coreos namespace
Merged 3 years ago by dkirwan. Opened 3 years ago by lenkaseg.
fedora-infra/ lenkaseg/ansible fcos  into  main

@@ -0,0 +1,13 @@ 

+ ---

+ - hosts: os-control01.stg # :os-control01

+   user: root

+   gather_facts: false

+ 

+   roles:

+   - role: openshift-apps/fcos-pipeline

+     project_name: fcos-pipeline

+     project_description: Jenkins pipeline configuration for Fedora CoreOS.

+     appowners:

+     - dustymabe

+     - jlebon

+     - cverna

@@ -0,0 +1,8 @@ 

+ project_name: fcos-pipeline

+ project_description: Jenkins Pipeline Configuration for FHCOS

+ appowners: []

+ ocp_service_account: root

+ project_templates:

+   - project.yaml

+   - group.yaml

+   - rolebinding.yaml

@@ -0,0 +1,20 @@ 

+ - name: Create the directories to hold the templates

+   file:

+     path: "/root/ocp4/openshift-apps/"

+     state: directory

+     owner: root

+     group: root

+     mode: 0770

+     recurse: yes

+ 

+ # generate the templates for project to be created

+ - name: apply the template

+   template:

+     src: "{{ item }}"

+     dest: "/root/ocp4/openshift-apps/{{ item }}"

+   with_items: "{{ project_templates }}"

+ 

+ # apply created openshift resources

+ - name: oc apply resources

+   command: "/root/bin/oc apply -f /root/ocp4/openshift-apps/{{ item }}"

+   with_items: "{{ project_templates }}"

@@ -0,0 +1,8 @@ 

+ kind: Group

+ apiVersion: user.openshift.io/v1

+ metadata:

+   name: "{{project_name}}-appowners"

+ users:

+ {% for item in appowners %}

+ - "{{ item }}"

+ {% endfor %}

@@ -0,0 +1,8 @@ 

+ ---

+ kind: Namespace

+ apiVersion: v1

+ metadata:

+   name: "{{project_name}}"

+   annotations:

+     openshift.io/description: "{{ project_description }}"

+     openshift.io/display-name: "{{ project_name }}"

@@ -0,0 +1,13 @@ 

+ kind: RoleBinding

+ apiVersion: rbac.authorization.k8s.io/v1

+ metadata:

+   name: "{{project_name}}-appowners"

+   namespace: "{{project_name}}"

+ subjects:

+   - kind: Group

+     apiGroup: rbac.authorization.k8s.io

+     name: "{{project_name}}-appowners"

+ roleRef:

+   apiGroup: rbac.authorization.k8s.io

+   kind: ClusterRole

+   name: admin

Creating the namespace for fedora-coreos

rebased onto cb2bfa08b65ae0b4eee31d88a37bcd8edcc7c981

3 years ago

rebased onto baf2df860110beeb591ebc587cbdacb32146921b

3 years ago

rebased onto 51a3a6df39f2e813eb348eccd5332bda159707ac

3 years ago

rebased onto 51a3a6df39f2e813eb348eccd5332bda159707ac

3 years ago

1 new commit added

  • fcos-pipeline: Added openshift-apps/fcos-pipeline role
3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

1 new commit added

  • `fcos-pipeline: Added default forocp_service_account```
3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

3 new commits added

  • `fcos-pipeline: Added default forocp_service_account```
  • fcos-pipeline: Added openshift-apps/fcos-pipeline role
  • Create fedora-coreos namespace
3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

3 new commits added

  • fcos-pipeline: Added default for ocp_service_account
  • fcos-pipeline: Added openshift-apps/fcos-pipeline role
  • Create fedora-coreos namespace
3 years ago

3 new commits added

  • fcos-pipeline: Added default for ocp_service_account
  • fcos-pipeline: Added openshift-apps/fcos-pipeline role
  • Create fedora-coreos namespace
3 years ago

Build failed. More information on how to proceed and troubleshoot errors available at https://fedoraproject.org/wiki/Zuul-based-ci

3 new commits added

  • fcos-pipeline: Added default for ocp_service_account
  • fcos-pipeline: Added openshift-apps/fcos-pipeline role
  • Create fedora-coreos namespace
3 years ago

rebased onto 2928200

3 years ago

Reviewed with @lenkaseg and @dkirwan Changes seem appropriate

Pull-Request has been merged by dkirwan

3 years ago