Add a pagure-stg01.fedoraproject.org at osuosl
This commit is contained in:
parent
141cc34862
commit
34abcff307
4 changed files with 91 additions and 0 deletions
29
inventory/group_vars/pagure
Normal file
29
inventory/group_vars/pagure
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
---
|
||||||
|
# Define resources for this group of hosts here.
|
||||||
|
lvm_size: 20000
|
||||||
|
mem_size: 2048
|
||||||
|
num_cpus: 2
|
||||||
|
|
||||||
|
# for systems that do not match the above - specify the same parameter in
|
||||||
|
# the host_vars/$hostname file
|
||||||
|
|
||||||
|
tcp_ports: [ 22, 80, 443, 9418 ]
|
||||||
|
|
||||||
|
fas_client_groups: sysadmin-noc,sysadmin-web
|
||||||
|
|
||||||
|
freezes: false
|
||||||
|
|
||||||
|
# For the MOTD
|
||||||
|
csi_security_category: Low
|
||||||
|
csi_primary_contact: Fedora admins - admin@fedoraproject.org
|
||||||
|
csi_purpose: Run the pagure instances for fedora
|
||||||
|
csi_relationship: |
|
||||||
|
There are a few things running here:
|
||||||
|
|
||||||
|
- The apache/mod_wsgi app for pagure
|
||||||
|
|
||||||
|
- This host relies on:
|
||||||
|
- A postgres db server running locally
|
||||||
|
|
||||||
|
- Things that rely on this host:
|
||||||
|
- nothing currently
|
16
inventory/host_vars/pagure-stg01.fedoraproject.org
Normal file
16
inventory/host_vars/pagure-stg01.fedoraproject.org
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
---
|
||||||
|
nm: 255.255.255.128
|
||||||
|
gw: 140.211.169.193
|
||||||
|
dns: 8.8.8.8
|
||||||
|
|
||||||
|
ks_url: http://infrastructure.fedoraproject.org/repo/rhel/ks/kvm-fedora-21-ext
|
||||||
|
ks_repo: http://infrastructure.fedoraproject.org/pub/fedora/linux/releases/21/Server/x86_64/os/
|
||||||
|
volgroup: /dev/vg_server
|
||||||
|
|
||||||
|
eth0_ip: 140.211.169.203
|
||||||
|
ansible_ssh_host: pagure-stg01.fedoraproject.org
|
||||||
|
|
||||||
|
postfix_group: vpn
|
||||||
|
|
||||||
|
vmhost: osuosl02.fedoraproject.org
|
||||||
|
datacenter: osuosl
|
|
@ -853,3 +853,6 @@ copr-keygen
|
||||||
copr-front-stg
|
copr-front-stg
|
||||||
copr-back-stg
|
copr-back-stg
|
||||||
copr-keygen-stg
|
copr-keygen-stg
|
||||||
|
|
||||||
|
[pagure]
|
||||||
|
pagure-stg01.fedoraproject.org
|
||||||
|
|
43
playbooks/groups/pagure.yml
Normal file
43
playbooks/groups/pagure.yml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
- name: make the servers
|
||||||
|
hosts: pagure
|
||||||
|
user: root
|
||||||
|
gather_facts: False
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: "{{ tasks }}/virt_instance_create.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
||||||
|
|
||||||
|
- name: make the boxen be real for real
|
||||||
|
hosts: pagure
|
||||||
|
user: root
|
||||||
|
gather_facts: True
|
||||||
|
|
||||||
|
vars_files:
|
||||||
|
- /srv/web/infra/ansible/vars/global.yml
|
||||||
|
- "/srv/private/ansible/vars.yml"
|
||||||
|
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
|
||||||
|
|
||||||
|
roles:
|
||||||
|
- base
|
||||||
|
- rkhunter
|
||||||
|
- nagios_client
|
||||||
|
- hosts
|
||||||
|
- fas_client
|
||||||
|
- sudo
|
||||||
|
- collectd/base
|
||||||
|
- openvpn/client
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: "{{ tasks }}/yumrepos.yml"
|
||||||
|
- include: "{{ tasks }}/2fa_client.yml"
|
||||||
|
- include: "{{ tasks }}/motd.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
Loading…
Add table
Add a link
Reference in a new issue