Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

Commit

Permalink
Move kojira username to config
Browse files Browse the repository at this point in the history
Signed-off-by: Patrick Uiterwijk <patrick@puiterwijk.org>
  • Loading branch information
puiterwijk committed Mar 18, 2019
1 parent 3cd5f34 commit 696065e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/kojira/configmap.yml
Expand Up @@ -10,7 +10,7 @@ data:
[kojira]
; Configuration authentication
serverca = /etc/cacert/cert
user=kojira
user={{ username }}
cert=/tmp/clientcert.combined.pem
server=https://koji-hub:8443/kojihub
Expand Down
2 changes: 2 additions & 0 deletions example.yml
Expand Up @@ -12,6 +12,8 @@ storage:
koji_hub:
public_hostname: koji.mbox.test
admin_username: admin
kojira:
username: kojira
builder:
built_in: yes
identity:
Expand Down
1 change: 1 addition & 0 deletions mbox/kojira.py
Expand Up @@ -23,6 +23,7 @@ def create(self):
)
self.state.apply_object_from_template(
"kojira/configmap.yml",
username=self.state.config.get("kojira", "username"),
)
self.state.apply_object_from_template(
"kojira/deploymentconfig.yml",
Expand Down

0 comments on commit 696065e

Please sign in to comment.