summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorScott Dodson <sdodson@redhat.com>2017-07-19 13:57:10 -0400
committerGitHub <noreply@github.com>2017-07-19 13:57:10 -0400
commit79bff91f568198c91b959a3648b78dc38e5cd9c6 (patch)
treef4ddafaa2046328c239c90b9d5d2f4d72af7ae2d /roles
parentf1711875170934936895fe24ac1f7ab721608c5a (diff)
parente38a02dd29ef7b0e395208dca10077bdc6600ebf (diff)
downloadopenshift-79bff91f568198c91b959a3648b78dc38e5cd9c6.tar.gz
openshift-79bff91f568198c91b959a3648b78dc38e5cd9c6.tar.bz2
openshift-79bff91f568198c91b959a3648b78dc38e5cd9c6.tar.xz
openshift-79bff91f568198c91b959a3648b78dc38e5cd9c6.zip
Merge pull request #4736 from rthallisey/add-sa-policy-to-asb
Add an SA policy to the ansible-service-broker
Diffstat (limited to 'roles')
-rw-r--r--roles/ansible_service_broker/tasks/install.yml8
1 files changed, 8 insertions, 0 deletions
diff --git a/roles/ansible_service_broker/tasks/install.yml b/roles/ansible_service_broker/tasks/install.yml
index 65dffc89b..0e25ba5e1 100644
--- a/roles/ansible_service_broker/tasks/install.yml
+++ b/roles/ansible_service_broker/tasks/install.yml
@@ -42,6 +42,14 @@
namespace: openshift-ansible-service-broker
state: present
+- name: Set SA cluster-role
+ oc_adm_policy_user:
+ state: present
+ namespace: "openshift-ansible-service-broker"
+ resource_kind: cluster-role
+ resource_name: admin
+ user: "system:serviceaccount:openshift-ansible-service-broker:asb"
+
- name: create ansible-service-broker service
oc_service:
name: asb