Add mailman01.stg
This commit is contained in:
parent
c89c9de1ac
commit
3a0857fdd8
4 changed files with 69 additions and 0 deletions
10
inventory/group_vars/mailman
Normal file
10
inventory/group_vars/mailman
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
# common items for the releng-* boxes
|
||||
lvm_size: 50000
|
||||
mem_size: 4096
|
||||
num_cpus: 2
|
||||
# for systems that do not match the above - specify the same parameter in
|
||||
# the host_vars/$hostname file
|
||||
|
||||
tcp_ports: [ 25, 80, 443 ]
|
||||
fas_client_groups: sysadmin-tools
|
10
inventory/host_vars/mailman01.stg.phx2.fedoraproject.org
Normal file
10
inventory/host_vars/mailman01.stg.phx2.fedoraproject.org
Normal file
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
nm: 255.255.255.0
|
||||
gw: 10.5.126.254
|
||||
dns: 10.5.126.21
|
||||
ks_url: http://10.5.126.23/repo/rhel/ks/f19virthost-infra.ks
|
||||
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/19/Fedora/x86_64/os/
|
||||
volgroup: /dev/vg_guests
|
||||
eth0_ip: 10.5.126.58
|
||||
vmhost: virthost12.phx2.fedoraproject.org
|
||||
datacenter: phx2
|
|
@ -128,6 +128,9 @@ fedocal01.stg.phx2.fedoraproject.org
|
|||
[gallery-stg]
|
||||
gallery01.stg.phx2.fedoraproject.org
|
||||
|
||||
[mailman-stg]
|
||||
mailmail01.stg.phx2.fedoraproject.org
|
||||
|
||||
[collab]
|
||||
collab03.fedoraproject.org
|
||||
collab04.fedoraproject.org
|
||||
|
|
46
playbooks/groups/mailman.yml
Normal file
46
playbooks/groups/mailman.yml
Normal file
|
@ -0,0 +1,46 @@
|
|||
# create a new mailman server
|
||||
# NOTE: make sure there is room/space for this server on the vmhost
|
||||
# NOTE: most of these vars come from group_vars/mirrorlist or from hostvars
|
||||
|
||||
- name: make mailman server
|
||||
hosts: mailman
|
||||
user: root
|
||||
gather_facts: False
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
- include: $tasks/virt_instance_create.yml
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
||||
|
||||
- name: make the box be real
|
||||
hosts: mailman
|
||||
user: root
|
||||
gather_facts: True
|
||||
|
||||
vars_files:
|
||||
- /srv/web/infra/ansible/vars/global.yml
|
||||
- ${private}/vars.yml
|
||||
- ${vars}/${ansible_distribution}.yml
|
||||
|
||||
tasks:
|
||||
# this is how you include other task lists
|
||||
- include: $tasks/hosts.yml
|
||||
- include: $tasks/yumrepos.yml
|
||||
- include: $tasks/base.yml
|
||||
- include: $tasks/fas_client.yml
|
||||
- include: $tasks/2fa_client.yml
|
||||
- include: $tasks/collectd/client.yml
|
||||
- include: $tasks/motd.yml
|
||||
- include: $tasks/sudo.yml
|
||||
- include: $tasks/rkhunter.yml
|
||||
- include: $tasks/denyhosts.yml
|
||||
- include: $tasks/nagios_client.yml
|
||||
|
||||
handlers:
|
||||
- include: $handlers/restart_services.yml
|
Loading…
Add table
Add a link
Reference in a new issue