commit bd91dc7ffa47870b42fc5dff9ab893f90c2bce5f
Author: Nicolas Chauvet <kwizart(a)gmail.com>
Date: Thu Nov 10 10:38:56 2016 +0100
Update installation of project CA
roles/bodhi2/backend/tasks/main.yml | 12 +++++++++---
roles/bodhi2/backend/templates/owner-sync-pkgdb.j2 | 4 ++--
2 files changed, 11 insertions(+), 5 deletions(-)
---
diff --git a/roles/bodhi2/backend/tasks/main.yml b/roles/bodhi2/backend/tasks/main.yml
index 81055f7..09b74e3 100644
--- a/roles/bodhi2/backend/tasks/main.yml
+++ b/roles/bodhi2/backend/tasks/main.yml
@@ -126,13 +126,19 @@
tags:
- config
-- name: install /etc/pki/fas/fedora-server-ca.cert file
+- name: install Project CA in pkgdb
copy: >
- src="{{ private }}/files/rpmfusion-ca.cert"
- dest="/etc/pki/pkgdb/fedora-server-ca.cert"
+ src="{{ private }}/files/{{ item }}"
+ dest="/etc/pki/pkgdb/{{ item }}"
+ owner=root
+ group=root
mode=0644
+ with_items:
+ - rpmfusion-server-ca.cert
+ - rpmfusion-upload-ca.cert
tags:
- config
+ - bodhi
- name: create pki dir
file: path=/root/.koji mode=700 state=directory
diff --git a/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2
b/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2
index a172565..efd6fea 100755
--- a/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2
+++ b/roles/bodhi2/backend/templates/owner-sync-pkgdb.j2
@@ -42,8 +42,8 @@ def get_options():
'server': 'http://koji.rpmfusion.org/kojihub',
'weburl': 'http://koji.rpmfusion.org/koji',
'cert': '/etc/pki/pkgdb/pkgdb.pem',
- 'ca': '/etc/pki/pkgdb/fedora-server-ca.cert',
- 'serverca': '/etc/pki/pkgdb/fedora-server-ca.cert'
+ 'ca': '/etc/pki/pkgdb/rpmfusion-upload-ca.cert',
+ 'serverca': '/etc/pki/pkgdb/rpmfusion-server-ca.cert'
}
for configFile in ('/etc/koji.conf.d/pkgdb',
os.path.expanduser('~/.koji/rpmfusion-config')):
if os.access(configFile, os.F_OK):
Show replies by date