Add the orchestrator namespace to osbs-cluster stg
Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
parent
78f123bd87
commit
06544db130
2 changed files with 66 additions and 0 deletions
|
@ -28,6 +28,9 @@ osbs_worker_default_nodeselector: "worker=true"
|
|||
osbs_conf_sources_command: fedpkg sources
|
||||
osbs_conf_vendor: Fedora Project
|
||||
|
||||
osbs_orchestrator_cpu_limitrange: "95m"
|
||||
osbs_orchestrator_default_nodeselector: "orchestrator=true"
|
||||
|
||||
nagios_Check_Services:
|
||||
nrpe: true
|
||||
sshd: true
|
||||
|
|
|
@ -470,6 +470,69 @@
|
|||
dest: registry.key
|
||||
when: env == "staging"
|
||||
|
||||
- name: Create orchestrator namespace
|
||||
hosts: osbs-masters-stg[0]
|
||||
roles:
|
||||
- role: osbs-namespace
|
||||
osbs_orchestrator: true
|
||||
osbs_cpu_limitrange: "{{ osbs_orchestrator_cpu_limitrange }}"
|
||||
osbs_nodeselector: "{{ osbs_orchestrator_default_nodeselector|default('') }}"
|
||||
osbs_authoritative_registry: "{{ source_registry }}"
|
||||
osbs_sources_command: "{{ osbs_conf_sources_command }}"
|
||||
osbs_vendor: "{{ osbs_conf_vendor }}"
|
||||
when: env == "staging"
|
||||
|
||||
- name: setup reactor config secret in orchestrator namespace
|
||||
hosts: osbs-masters-stg[0]
|
||||
roles:
|
||||
- role: osbs-secret
|
||||
osbs_secret_name: reactor-config-secret
|
||||
osbs_secret_files:
|
||||
- source: "/tmp/{{ osbs_namespace }}-reactor-config-secret.yml"
|
||||
dest: config.yaml
|
||||
when: env == "staging"
|
||||
|
||||
- name: setup client config secret in orchestrator namespace
|
||||
hosts: osbs-masters-stg[0]
|
||||
roles:
|
||||
- role: osbs-secret
|
||||
osbs_secret_name: client-config-secret
|
||||
osbs_secret_files:
|
||||
- source: "/tmp/{{ osbs_namespace }}-client-config-secret.conf"
|
||||
dest: osbs.conf
|
||||
when: env == "staging"
|
||||
|
||||
- name: setup koji secret in orchestrator namespace
|
||||
hosts: osbs-masters-stg[0]
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
roles:
|
||||
- role: osbs-secret
|
||||
osbs_secret_name: kojisecret
|
||||
osbs_secret_files:
|
||||
- source: "{{private}}/files/koji/containerbuild.pem"
|
||||
dest: cert
|
||||
when: env == "staging"
|
||||
|
||||
- name: setup dist registry secret in orchestrator namespace
|
||||
hosts: osbs-masters-stg[0]
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||
roles:
|
||||
- role: osbs-secret
|
||||
osbs_namespace: "{{ osbs_worker_namespace }}"
|
||||
osbs_secret_name: registry-secret
|
||||
osbs_secret_files:
|
||||
- source: "{{private}}/files/koji/containerbuild.cert.pem"
|
||||
dest: registry.crt
|
||||
- source: "{{private}}/files/koji/containerbuild.key.pem"
|
||||
dest: registry.key
|
||||
when: env == "staging"
|
||||
|
||||
|
||||
- name: Manage docker images and image stream
|
||||
hosts: osbs-masters-stg[0]:osbs-masters[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue