upload fedora-infra to all tenants so machines can be managed by our playbooks
This commit is contained in:
parent
5db6f0bde9
commit
6200e44141
1 changed files with 11 additions and 0 deletions
|
@ -5,6 +5,10 @@
|
|||
sudo: yes
|
||||
gather_facts: True
|
||||
|
||||
vars:
|
||||
all_tenants: ['cloudintern', 'cloudsig', 'copr', 'coprdev', 'infrastructure',
|
||||
'persistent', 'pythonbots', 'qa', 'scratch', 'transient']
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- "/srv/private/ansible/vars.yml"
|
||||
|
@ -548,6 +552,13 @@
|
|||
- { name: tflink, email: 'tflink@fedoraproject.org', tenant: qa, password: "{{tflink_password}}", public_key: "{{ lookup('pipe', '/srv/web/infra/ansible/scripts/auth-keys-from-fas tflink') }}" }
|
||||
- { name: atomic, email: 'walters@redhat.com', tenant: scratch, password: "{{cockpit_password}}", public_key: "{{ lookup('pipe', '/srv/web/infra/ansible/scripts/auth-keys-from-fas walters') }}" }
|
||||
# - { name: twisted, email: 'buildbot@twistedmatrix.com', tenant: pythonbots, password: "{{twisted_password}}", public_key: "" }
|
||||
- name: upload SSH keys for admin
|
||||
nova_keypair:
|
||||
auth_url="https://{{controller_hostname}}:35357/v2.0"
|
||||
login_username="admin"
|
||||
login_password="{{ ADMIN_PASS }}" login_tenant_name="{{item}}" name="fedora-admin-20130801"
|
||||
public_key="{{ lookup('file', files + '/fedora-cloud/fedora-admin-20130801.pub') }}"
|
||||
with_items: all_tenants
|
||||
|
||||
- name: Create roles for additional tenants
|
||||
shell: source /root/keystonerc_admin && keystone role-list |grep ' {{item}} ' || keystone role-create --name {{ item }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue