[copr][dist-git] using dns names for copr-dist-git hosts
This commit is contained in:
parent
bc1cae7a20
commit
9223ba3a55
6 changed files with 29 additions and 11 deletions
|
@ -2,4 +2,4 @@
|
||||||
tcp_ports: [22, 80]
|
tcp_ports: [22, 80]
|
||||||
datacenter: cloud
|
datacenter: cloud
|
||||||
freezes: false
|
freezes: false
|
||||||
# volumes: []
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
# TODO: remove this config after copr-dist-git is moved to persistent tenant
|
|
||||||
name: copr-dist-git-dev
|
|
||||||
volumes: [ {volume_id: '21988d9d-f41e-46c4-b063-1c95df2f9205', device: '/dev/vdc'} ]
|
|
22
inventory/host_vars/copr-dist-git-dev.fedorainfracloud.org
Normal file
22
inventory/host_vars/copr-dist-git-dev.fedorainfracloud.org
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
---
|
||||||
|
instance_type: ms1.small
|
||||||
|
image: "{{ CentOS-7-x86_64-GenericCloud-1503 }}"
|
||||||
|
keypair: fedora-admin-20130801
|
||||||
|
security_group: web-80-anywhere-persistent,ssh-anywhere-persistent,default
|
||||||
|
zone: nova
|
||||||
|
hostbase: copr-dist-git-dev-
|
||||||
|
public_ip: 209.132.184.179
|
||||||
|
root_auth_users: bkabrda ryanlerch pingou msuchy tradej asamalik vgologuz frostyx
|
||||||
|
description: dist-git for copr service - dev instance
|
||||||
|
tcp_ports: [22, 80]
|
||||||
|
# volumes: copr-dist-git-dev
|
||||||
|
volumes: [ {volume_id: '64f21445-d758-4b19-8401-e497cd0ae012', device: '/dev/vdc'} ]
|
||||||
|
inventory_tenant: persistent
|
||||||
|
# name of machine in OpenStack
|
||||||
|
inventory_instance_name: copr-dist-git-dev
|
||||||
|
cloud_networks:
|
||||||
|
# persistent-net
|
||||||
|
- net-id: "67b77354-39a4-43de-b007-bb813ac5c35f"
|
||||||
|
|
||||||
|
# Copr vars
|
||||||
|
copr_hostbase: copr-dist-git-dev
|
0
inventory/host_vars/copr-dist-git.fedorainfracloud.org
Normal file
0
inventory/host_vars/copr-dist-git.fedorainfracloud.org
Normal file
|
@ -929,8 +929,12 @@ copr-fe.cloud.fedoraproject.org
|
||||||
[copr-back]
|
[copr-back]
|
||||||
copr-be.cloud.fedoraproject.org
|
copr-be.cloud.fedoraproject.org
|
||||||
|
|
||||||
|
# todo: when finished add to copr/copr-stg groups
|
||||||
|
[copr-dist-git]
|
||||||
|
copr-dist-git.fedorainfracloud.org
|
||||||
|
|
||||||
[copr-dist-git-stg]
|
[copr-dist-git-stg]
|
||||||
209.132.184.162
|
copr-dist-git-stg.fedorainfracloud.org
|
||||||
|
|
||||||
[copr:children]
|
[copr:children]
|
||||||
copr-front
|
copr-front
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
- name: check/create instance
|
- name: check/create instance
|
||||||
hosts: copr-dist-git-stg:copr-dist-git
|
hosts: copr-dist-git-stg:copr-dist-git
|
||||||
|
|
||||||
user: centos
|
user: centos
|
||||||
sudo: True
|
sudo: True
|
||||||
gather_facts: False
|
gather_facts: False
|
||||||
|
@ -12,13 +11,9 @@
|
||||||
- /srv/private/ansible/files/openstack/passwords.yml
|
- /srv/private/ansible/files/openstack/passwords.yml
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
# - include: "{{ tasks }}/persistend_cloud_new.yml"
|
- include: "{{ tasks }}/persistend_cloud_new.yml"
|
||||||
- include: "{{ tasks }}/growroot_cloud.yml"
|
- include: "{{ tasks }}/growroot_cloud.yml"
|
||||||
# TODO: remove when copr-dist-git will be deployed to the persistent tenant
|
# TODO: remove when copr-dist-git will be deployed to the persistent tenant
|
||||||
- local_action: shell nova --os-auth-url="{{os_auth_url}}" --os-username="admin" --os-password="{{ADMIN_PASS}}" --os-tenant-name={{inventory_tenant}} volume-list | grep ' {{item.volume_id}} ' | grep 'available' && nova --os-auth-url="{{os_auth_url}}" --os-username="admin" --os-password="{{ADMIN_PASS}}" --os-tenant-name={{inventory_tenant}} volume-attach "{{inventory_instance_name}}" "{{item.volume_id}}" "{{item.device}}"
|
|
||||||
with_items: volumes
|
|
||||||
ignore_errors: yes
|
|
||||||
when: volumes is defined
|
|
||||||
|
|
||||||
- name: cloud basic setup
|
- name: cloud basic setup
|
||||||
hosts: copr-dist-git-stg:copr-dist-git
|
hosts: copr-dist-git-stg:copr-dist-git
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue