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
|
. /etc/bashrc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -f /srv/copr-work/copr/euca/eucarc ]; then
|
if [ -f /srv/copr-work/copr/cloud/ec2rc.sh ]; then
|
||||||
. /srv/copr-work/copr/euca/eucarc
|
. /srv/copr-work/copr/cloud/ec2rc.sh
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -74,12 +74,15 @@
|
||||||
- name: make copr account
|
- name: make copr account
|
||||||
action: user name=copr state=present system=yes home=/srv/copr-work/copr
|
action: user name=copr state=present system=yes home=/srv/copr-work/copr
|
||||||
|
|
||||||
- name: setup euca goo in there
|
- name: setup dirs there
|
||||||
action: file state=directory path=/srv/copr-work/copr/euca owner=copr group=copr mode=0700
|
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
|
- 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
|
action: copy src=$item dest=/srv/copr-work/copr/cloud/ owner=copr group=copr mode=0600
|
||||||
with_fileglob: $private/files/euca/accounts/copr-buildsys/*
|
with_fileglob: $private/files/openstack/copr-copr/*
|
||||||
|
|
||||||
- name: setup privkey for copr user
|
- 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
|
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