add copr-fe-dev to everything
This commit is contained in:
parent
166f589f5d
commit
197310d34b
2 changed files with 68 additions and 0 deletions
11
inventory/host_vars/copr-fe-dev.cloud.fedoraproject.org
Normal file
11
inventory/host_vars/copr-fe-dev.cloud.fedoraproject.org
Normal file
|
@ -0,0 +1,11 @@
|
|||
---
|
||||
instance_type: m1.medium
|
||||
image: ${el6_qcow_id}
|
||||
keypair: fedora-admin
|
||||
security_group: webserver
|
||||
zone: nova
|
||||
hostbase: copr-fe-dev
|
||||
public_ip: 209.132.184.183
|
||||
root_auth_users: skvidal bkabrda ryanlerch pingou msuchy tradej
|
||||
description: copr frontend server - dev instance
|
||||
tcp_ports: ['22', '80', '443']
|
57
playbooks/hosts/copr-fe-dev.cloud.fedoraproject.org.yml
Normal file
57
playbooks/hosts/copr-fe-dev.cloud.fedoraproject.org.yml
Normal file
|
@ -0,0 +1,57 @@
|
|||
- name: check/create instance
|
||||
hosts: copr-fe-dev.cloud.fedoraproject.org
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/persistent_cloud.yml
|
||||
- include: $tasks/growroot_cloud.yml
|
||||
|
||||
- name: provision instance
|
||||
hosts: copr-fe-dev.cloud.fedoraproject.org
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/cloud_setup_basic.yml
|
||||
- include: $tasks/iptables.yml
|
||||
|
||||
- name: /srv/copr-fe dir
|
||||
action: file state=directory path=/srv/copr-fe
|
||||
|
||||
- name: install copr-fe pkgs
|
||||
action: yum state=installed name=$item
|
||||
with_items:
|
||||
- httpd
|
||||
- mod_wsgi
|
||||
- postgresql
|
||||
- bash-completion
|
||||
- postgresql-server
|
||||
- git
|
||||
|
||||
- name: copy apache files to conf.d
|
||||
action: copy src=$files/copr/fe/httpd/$item dest=/etc/httpd/conf.d/$item
|
||||
with_items:
|
||||
- coprs.conf
|
||||
- welcome.conf
|
||||
|
||||
|
||||
- name: start services
|
||||
action: service state=running enabled=yes name=$item
|
||||
with_items:
|
||||
- httpd
|
||||
- postgresql
|
||||
|
||||
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue