Use the service account koji token in buildvm to authenticate

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2018-04-09 20:42:26 +02:00
parent f3a7bc9341
commit c8ede853ff
2 changed files with 11 additions and 0 deletions

View file

@ -75,6 +75,7 @@
pre_tasks:
- import_tasks: "{{ tasks_path }}/osbs_certs.yml"
- import_tasks: "{{ tasks_path }}/osbs_repos.yml"
- import_tasks: "{{ tasks_path }}/osbs_koji_token.yml"
roles:
- {
@ -111,6 +112,7 @@
reactor_config_secret: 'reactor_config_secret',
koji_certs_secret: 'kojisecret',
token_secrets: 'x86-64-osbs:/var/run/secrets/atomic-reactor/x86-64-osbs',
token_file: '/etc/osbs/x86-64-osbs-stg-koji',
namespace: 'osbs-fedora',
can_orchestrate: true
}

View file

@ -0,0 +1,9 @@
---
- name: put the koji token file in place
copy:
src: "{{ private }}/files/osbs/{{ env }}/x86-64-osbs-stg-koji"
dest: "/etc/osbs/x86-64-osbs-stg-koji"
owner: root
mode: 0400
when: env == "staging"