Provision copr stg cloud machines
This commit is contained in:
parent
38c20fb57c
commit
3ca845b577
6 changed files with 57 additions and 13 deletions
29
inventory/group_vars/copr-back-stg
Normal file
29
inventory/group_vars/copr-back-stg
Normal file
|
@ -0,0 +1,29 @@
|
|||
---
|
||||
_lighttpd_conf_src: "lighttpd/lighttpd_dev.conf"
|
||||
|
||||
copr_nova_auth_url: "https://fedorainfracloud.org:5000/v2.0"
|
||||
copr_nova_tenant_id: "a6ff2158641c439a8426d7facab45437"
|
||||
copr_nova_tenant_name: "coprdev"
|
||||
copr_nova_username: "copr"
|
||||
|
||||
copr_builder_image_name: "builder-f24"
|
||||
copr_builder_flavor_name: "ms2.builder"
|
||||
copr_builder_network_name: "coprdev-net"
|
||||
copr_builder_key_name: "buildsys"
|
||||
copr_builder_security_groups: "ssh-anywhere-coprdev,default,ssh-from-persistent-coprdev"
|
||||
|
||||
fedmsg_enabled: "true"
|
||||
|
||||
do_sign: "true"
|
||||
|
||||
spawn_in_advance: "false"
|
||||
frontend_base_url: "https://copr.stg.fedoraproject.org"
|
||||
|
||||
# These variables are pushed into /etc/system_identification by the base role.
|
||||
# Groups and individual hosts should override them with specific info.
|
||||
# See http://infrastructure.fedoraproject.org/csi/security-policy/
|
||||
|
||||
csi_security_category: Moderate
|
||||
csi_primary_contact: "msuchy (mirek), clime, frostyx, dturecek IRC #fedora-admin, #fedora-buildsys"
|
||||
csi_purpose: Provide the testing environment of copr's backend
|
||||
csi_relationship: This host is the testing environment for the cloud infrastructure of copr's backend
|
6
inventory/group_vars/copr-dist-git-stg
Normal file
6
inventory/group_vars/copr-dist-git-stg
Normal file
|
@ -0,0 +1,6 @@
|
|||
---
|
||||
tcp_ports: [22, 80]
|
||||
datacenter: cloud
|
||||
freezes: false
|
||||
devel: true
|
||||
custom_rules: ['-A INPUT -p tcp -m tcp --dport 443 -j ACCEPT']
|
13
inventory/group_vars/copr-keygen-stg
Normal file
13
inventory/group_vars/copr-keygen-stg
Normal file
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
copr_hostbase: copr-keygen-dev
|
||||
tcp_ports: []
|
||||
|
||||
# http + signd dest ports
|
||||
#custom_rules: [ '-A INPUT -p tcp -m tcp -s 172.25.32.232 --dport 80 -j ACCEPT',
|
||||
# '-A INPUT -p tcp -m tcp -s 172.25.157.237 --dport 80 -j ACCEPT',
|
||||
# '-A INPUT -p tcp -m tcp -s 172.25.32.232 --dport 5167 -j ACCEPT',
|
||||
# '-A INPUT -p tcp -m tcp -s 172.25.157.237 --dport 5167 -j ACCEPT']
|
||||
|
||||
datacenter: cloud
|
||||
|
||||
freezes: false
|
|
@ -1,6 +1,5 @@
|
|||
- name: check/create instance
|
||||
#hosts: copr-back
|
||||
hosts: copr-back:copr-back-dev
|
||||
hosts: copr-back-dev:copr-back-stg:copr-back
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
|
@ -13,7 +12,7 @@
|
|||
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
|
||||
|
||||
- name: cloud basic setup
|
||||
hosts: copr-back:copr-back-dev
|
||||
hosts: copr-back-dev:copr-back-stg:copr-back
|
||||
user: root
|
||||
gather_facts: True
|
||||
vars_files:
|
||||
|
@ -28,7 +27,7 @@
|
|||
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
|
||||
|
||||
- name: provision instance
|
||||
hosts: copr-back:copr-back-dev
|
||||
hosts: copr-back-dev:copr-back-stg:copr-back
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
- name: check/create instance
|
||||
hosts: copr-dist-git-dev:copr-dist-git
|
||||
hosts: copr-dist-git-dev:copr-dist-git-stg:copr-dist-git
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
|||
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
|
||||
|
||||
- name: cloud basic setup
|
||||
hosts: copr-dist-git-dev:copr-dist-git
|
||||
hosts: copr-dist-git-dev:copr-dist-git-stg:copr-dist-git
|
||||
user: root
|
||||
gather_facts: True
|
||||
vars_files:
|
||||
|
@ -27,7 +27,7 @@
|
|||
hostname: name="{{copr_hostbase}}.fedorainfracloud.org"
|
||||
|
||||
- name: provision instance
|
||||
hosts: copr-dist-git-dev:copr-dist-git
|
||||
hosts: copr-dist-git-dev:copr-dist-git-stg:copr-dist-git
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
|
|
|
@ -1,6 +1,5 @@
|
|||
- name: check/create instance
|
||||
hosts: copr-keygen-dev:copr-keygen
|
||||
#hosts: copr-keygen
|
||||
hosts: copr-keygen-dev:copr-keygen-stg:copr-keygen
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
|
@ -21,8 +20,7 @@
|
|||
when: facts is failed
|
||||
|
||||
- name: cloud basic setup
|
||||
hosts: copr-keygen-dev:copr-keygen
|
||||
# hosts: copr-keygen
|
||||
hosts: copr-keygen-dev:copr-keygen-stg:copr-keygen
|
||||
gather_facts: True
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
|
@ -35,8 +33,7 @@
|
|||
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
|
||||
|
||||
- name: provision instance
|
||||
hosts: copr-keygen:copr-keygen-dev
|
||||
#hosts: copr-keygen
|
||||
hosts: copr-keygen-dev:copr-keygen-stg:copr-keygen
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue