Provision Copr frontend staging
This commit is contained in:
parent
3ca845b577
commit
f2bc21a373
1 changed files with 25 additions and 33 deletions
|
@ -1,34 +1,9 @@
|
||||||
- name: check/create instance
|
---
|
||||||
hosts: copr-front-stg:copr-front
|
- import_playbook: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=copr-front-stg"
|
||||||
# hosts: copr-front
|
|
||||||
gather_facts: False
|
|
||||||
|
|
||||||
vars_files:
|
- name: provision copr frontend
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
hosts: copr-front-stg
|
||||||
- "/srv/private/ansible/vars.yml"
|
user: root
|
||||||
- /srv/web/infra/ansible/vars/fedora-cloud.yml
|
|
||||||
- /srv/private/ansible/files/openstack/passwords.yml
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- import_tasks: "{{ tasks_path }}/persistent_cloud.yml"
|
|
||||||
|
|
||||||
- name: cloud basic setup
|
|
||||||
hosts: copr-front-stg:copr-front
|
|
||||||
# hosts: copr-front
|
|
||||||
gather_facts: True
|
|
||||||
vars_files:
|
|
||||||
- /srv/web/infra/ansible/vars/global.yml
|
|
||||||
- "/srv/private/ansible/vars.yml"
|
|
||||||
|
|
||||||
tasks:
|
|
||||||
- import_tasks: "{{ tasks_path }}/cloud_setup_basic.yml"
|
|
||||||
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
|
||||||
- name: set hostname (required by some services, at least postfix need it)
|
|
||||||
hostname: name="{{copr_hostbase}}.cloud.fedoraproject.org"
|
|
||||||
|
|
||||||
- name: provision instance
|
|
||||||
hosts: copr-front:copr-front-stg
|
|
||||||
# hosts: copr-front
|
|
||||||
gather_facts: True
|
gather_facts: True
|
||||||
|
|
||||||
vars_files:
|
vars_files:
|
||||||
|
@ -36,7 +11,24 @@
|
||||||
- "/srv/private/ansible/vars.yml"
|
- "/srv/private/ansible/vars.yml"
|
||||||
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
pre_tasks:
|
||||||
|
- import_tasks: "{{ tasks_path }}/yumrepos.yml"
|
||||||
|
|
||||||
roles:
|
roles:
|
||||||
- base
|
- base
|
||||||
- copr/frontend
|
- rkhunter
|
||||||
- nagios_client
|
- nagios_client
|
||||||
|
- hosts
|
||||||
|
- fas_client
|
||||||
|
- collectd/base
|
||||||
|
- { role: openvpn/client, when: env != "staging" }
|
||||||
|
- redis
|
||||||
|
- mod_wsgi
|
||||||
|
- copr/frontend
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- import_tasks: "{{ tasks_path }}/2fa_client.yml"
|
||||||
|
- import_tasks: "{{ tasks_path }}/motd.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- import_tasks: "{{ handlers_path }}/restart_services.yml"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue