Create koji_shadow user and give it the shadow/ keytab

Signed-off-by: Patrick Uiterwijk <puiterwijk@redhat.com>
This commit is contained in:
Patrick Uiterwijk 2016-12-16 15:43:49 +00:00
parent 135b45fe5e
commit e39d0146cf
2 changed files with 9 additions and 1 deletions

View file

@ -33,11 +33,12 @@
- role: keytab/service
service: kojira
host: "koji{{env_suffix}}.fedoraproject.org"
- koji_hub
- role: keytab/service
service: shadow
owner_user: koji_shadow
host: "koji{{env_suffix}}.fedoraproject.org"
when: "fedmsg_koji_instance != 'primary'"
- koji_hub
- { role: nfs/server, when: env == "staging" }
- { role: keepalived, when: env == "production" and inventory_hostname.startswith('koji') }
- role: nfs/client

View file

@ -439,3 +439,10 @@
tags:
- files
- koji_hub
- name: Create shadow user
user: name=koji_shadow
when: "fedmsg_koji_instance != 'primary'"
tags:
- files
- koji_hub