From ffe6a0fb3e894cea49fd0c8e70d0d334288abaa0 Mon Sep 17 00:00:00 2001 From: Seth Vidal Date: Mon, 5 Nov 2012 18:09:42 +0000 Subject: [PATCH] add in the right set of keys/dirs and some notes on things to fix later --- .../hosts/copr-be.cloud.fedoraproject.org.yml | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/playbooks/hosts/copr-be.cloud.fedoraproject.org.yml b/playbooks/hosts/copr-be.cloud.fedoraproject.org.yml index 8278ac3d38..632912f42c 100644 --- a/playbooks/hosts/copr-be.cloud.fedoraproject.org.yml +++ b/playbooks/hosts/copr-be.cloud.fedoraproject.org.yml @@ -47,6 +47,7 @@ - name: add packages for copr-be action: yum state=present name=$item with_items: + - ansible - lighttpd - euca2ools - rsync @@ -68,7 +69,23 @@ - name: start webserver action: service state=running enabled=yes name=lighttpd - + + # need copr account to run backend as + # needs write access to all copr dirs + # needs read access to euca keys + # /srv/copr-work/provision/ needs ansible playbook + files + # (including ssh pub key set) for mockbuilding + # + + - name: make dir for euca keys + action: file state=directory path=/srv/copr-work/provision/euca owner=root group=root mode=0700 + + - name: add copr-buildsys keys to work path + action: copy src=$item dest=/srv/copr-work/provision/euca/ owner=root group=root mode=0600 + with_fileglob: $private/files/euca/accounts/copr-buildsys/* + + + handlers: - include: $handlers/restart_services.yml