From 2b4b5fefd01c58fb6af4b423b030729fe3a6210e Mon Sep 17 00:00:00 2001 From: David Kirwan Date: Mon, 29 Aug 2022 11:31:33 +0100 Subject: [PATCH] communishift: Create directory for operator keytab Signed-off-by: David Kirwan Signed-off-by: Lenka Segura Signed-off-by: Patrik Polakovic --- ...oy-communishift-authorization-operator.yml | 20 +++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/roles/communishift/tasks/deploy-communishift-authorization-operator.yml b/roles/communishift/tasks/deploy-communishift-authorization-operator.yml index 080fbbd72f..56e8e88092 100644 --- a/roles/communishift/tasks/deploy-communishift-authorization-operator.yml +++ b/roles/communishift/tasks/deploy-communishift-authorization-operator.yml @@ -10,12 +10,21 @@ tags: - deploy-operators +- name: Create the CommunishiftAuthorization operator keytab path + file: + path: "/etc/openshift_apps/communishift-authorization/" + state: directory + owner: root + group: root + mode: 0750 + - name: Acquire a keytab include_role: name: keytab/service vars: - kt_location: "/etc/openshift_apps/communishift-authorization/communishift-authorization-operator-keytab.kt" + kt_location: + "/etc/openshift_apps/communishift-authorization/communishift-authorization-operator-keytab.kt" service: "communishift-authorization-operator" host: "{{ communishift_ocp_api_hostname }}" tags: @@ -34,9 +43,12 @@ name: "communishift-keytab-secret" namespace: "communishift-authorization-operator" data: - communishift-authorization-keytab: "{{ communishift_authorization_keytab_file | b64encode }}" + communishift-authorization-keytab: + "{{ communishift_authorization_keytab_file | b64encode }}" vars: - communishift_authorization_keytab_file: "{{ lookup('file', '/etc/openshift_apps/communishift-authorization/communishift-authorization-operator-keytab.kt') }}" + communishift_authorization_keytab_file: + "{{ lookup('file', + '/etc/openshift_apps/communishift-authorization/communishift-authorization-operator-keytab.kt') + }}" tags: - deploy-operators -