make .ssh for coprs

make the dir named 'cloud' not euca
put the os-keys in place
This commit is contained in:
Seth Vidal 2013-02-26 21:14:19 +00:00
parent 6e5a3aca46
commit a8da0bf348
2 changed files with 9 additions and 6 deletions

View file

@ -5,6 +5,6 @@ if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
if [ -f /srv/copr-work/copr/euca/eucarc ]; then
. /srv/copr-work/copr/euca/eucarc
if [ -f /srv/copr-work/copr/cloud/ec2rc.sh ]; then
. /srv/copr-work/copr/cloud/ec2rc.sh
fi

View file

@ -74,12 +74,15 @@
- 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/copr/euca owner=copr group=copr mode=0700
- name: setup dirs there
action: file state=directory path=/srv/copr-work/copr/$item owner=copr group=copr mode=0700
with_items:
- cloud
- .ssh
- name: add copr-buildsys keys to copr user path
action: copy src=$item dest=/srv/copr-work/copr/euca/ owner=copr group=copr mode=0600
with_fileglob: $private/files/euca/accounts/copr-buildsys/*
action: copy src=$item dest=/srv/copr-work/copr/cloud/ owner=copr group=copr mode=0600
with_fileglob: $private/files/openstack/copr-copr/*
- name: setup privkey for copr user
action: copy src=$private/files/copr/buildsys.priv dest=/srv/copr-work/copr/.ssh/id_rsa owner=copr group=copr mode=600