add a copr user for the backend head

add a basic inventory for the backend head
This commit is contained in:
Seth Vidal 2012-11-05 20:56:37 +00:00
parent 2b89ec487d
commit 9c1f7d109a
2 changed files with 16 additions and 7 deletions

View file

@ -0,0 +1 @@
localhost

View file

@ -69,17 +69,25 @@
- name: start webserver
action: service state=running enabled=yes name=lighttpd
- name: make copr account
action: user name=copr state=present system=yes home=/srv/copr-work/copr
- name: setup euca goo in there
action: file state=directory path=/srv/copr-work/copruser/euca owner=copr group=copr mode=0700
- name: setup privkey for copr user
action: copy src=$private/files/copr/buildsys.priv dest=/srv/copr-work/copr/buildsys.priv owner=copr group=copr mode=600
- name: set dir ownership for copr-work and copr-repo
action: file path=$item owner=copr group=copr
with_items:
- /srv/copr-work
- /srv/copr-user
# 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/*