CentOS-CI: Manual playbook for creation of CentOS CI keytabs
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
parent
55bfa1af29
commit
0f2e641d48
2 changed files with 41 additions and 0 deletions
15
playbooks/manual/centosci-keytab.yml
Normal file
15
playbooks/manual/centosci-keytab.yml
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- hosts: localhost
|
||||||
|
user: root
|
||||||
|
gather_facts: false
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- name: Centos CI Keytab Creation Role
|
||||||
|
include_role:
|
||||||
|
name: centosci-keytab
|
||||||
|
tasks_from: main
|
26
roles/centosci-keytab/tasks/main.yml
Normal file
26
roles/centosci-keytab/tasks/main.yml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
---
|
||||||
|
- name: Create the CentosCIAuthorization operator keytab path
|
||||||
|
file:
|
||||||
|
path: "/etc/openshift_apps/centos-ci-authorization/"
|
||||||
|
state: directory
|
||||||
|
owner: root
|
||||||
|
group: root
|
||||||
|
mode: 0750
|
||||||
|
|
||||||
|
- name: Acquire a keytab for staging
|
||||||
|
include_role:
|
||||||
|
name: keytab/service
|
||||||
|
vars:
|
||||||
|
kt_location:
|
||||||
|
"/etc/openshift_apps/centos-ci-authorization/centos-ci-authorization-operator-stg-keytab.kt"
|
||||||
|
service: "centos-ci-authorization-operator-stg"
|
||||||
|
host: "{{centosci_stg_ocp_api_hostname}}"
|
||||||
|
|
||||||
|
- name: Acquire a keytab for prod
|
||||||
|
include_role:
|
||||||
|
name: keytab/service
|
||||||
|
vars:
|
||||||
|
kt_location:
|
||||||
|
"/etc/openshift_apps/centos-ci-authorization/centos-ci-authorization-operator-prod-keytab.kt"
|
||||||
|
service: "centos-ci-authorization-operator-prod"
|
||||||
|
host: "{{centosci_prod_ocp_api_hostname}}"
|
Loading…
Add table
Add a link
Reference in a new issue