make .ssh for coprs
make the dir named 'cloud' not euca put the os-keys in place
This commit is contained in:
parent
6e5a3aca46
commit
a8da0bf348
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue