mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-05-11 10:32:27 +08:00
CentOS-CI: Manual playbook for creation of CentOS CI keytabs
Signed-off-by: David Kirwan <dkirwan@redhat.com>
This commit is contained in:
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}}"
|
||||
Reference in New Issue
Block a user