Make torrent01 rhel7 ansible version of old torrent server.
This commit is contained in:
parent
c45f0ea524
commit
ef1223bebb
6 changed files with 76 additions and 6 deletions
13
inventory/group_vars/torrent
Normal file
13
inventory/group_vars/torrent
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
---
|
||||||
|
# Define resources for this group of hosts here.
|
||||||
|
lvm_size: 750000
|
||||||
|
mem_size: 4096
|
||||||
|
num_cpus: 2
|
||||||
|
|
||||||
|
tcp_ports: [ 53, 80, 443, 873, "6881:6999' ]
|
||||||
|
udp_ports: [ 53 ]
|
||||||
|
|
||||||
|
fas_client_groups: sysadmin-web,torrentadmin,sysadmin-noc,torrent-cc,fi-apprentice
|
||||||
|
|
||||||
|
nrpe_procs_warn: 300
|
||||||
|
nrpe_procs_crit: 500
|
14
inventory/host_vars/torrent01.fedoraproject.org
Normal file
14
inventory/host_vars/torrent01.fedoraproject.org
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
---
|
||||||
|
nm: 255.255.255.128
|
||||||
|
gw: 152.19.134.129
|
||||||
|
dns: 8.8.8.8
|
||||||
|
|
||||||
|
volgroup: /dev/vg_guests
|
||||||
|
|
||||||
|
eth0_ip: 152.19.134.151
|
||||||
|
ansible_ssh_host: torrent01.fedoraproject.org
|
||||||
|
|
||||||
|
postfix_group: vpn
|
||||||
|
|
||||||
|
vmhost: ibiblio03.fedoraproject.org
|
||||||
|
datacenter: ibiblio
|
|
@ -373,6 +373,9 @@ mm-crawler01.stg.phx2.fedoraproject.org
|
||||||
people03.fedoraproject.org
|
people03.fedoraproject.org
|
||||||
torrent02.fedoraproject.org
|
torrent02.fedoraproject.org
|
||||||
|
|
||||||
|
[torrent]
|
||||||
|
torrent01.fedoraproject.org
|
||||||
|
|
||||||
[secondary]
|
[secondary]
|
||||||
secondary01.phx2.fedoraproject.org
|
secondary01.phx2.fedoraproject.org
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/buildvm.yml
|
- include: /srv/web/infra/ansible/playbooks/groups/buildvm.yml
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/busgateway.yml
|
- include: /srv/web/infra/ansible/playbooks/groups/busgateway.yml
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/composers.yml
|
- include: /srv/web/infra/ansible/playbooks/groups/composers.yml
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/copr-backend.yml
|
#- include: /srv/web/infra/ansible/playbooks/groups/copr-backend.yml
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/copr-frontend.yml
|
- include: /srv/web/infra/ansible/playbooks/groups/copr-frontend.yml
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/copr-keygen.yml
|
- include: /srv/web/infra/ansible/playbooks/groups/copr-keygen.yml
|
||||||
- include: /srv/web/infra/ansible/playbooks/groups/datagrepper.yml
|
- include: /srv/web/infra/ansible/playbooks/groups/datagrepper.yml
|
||||||
|
|
45
playbooks/groups/torrent.yml
Normal file
45
playbooks/groups/torrent.yml
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
- name: make torrent server
|
||||||
|
hosts: torrent
|
||||||
|
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 box be real
|
||||||
|
hosts: torrent
|
||||||
|
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
|
||||||
|
- hosts
|
||||||
|
- rkhunter
|
||||||
|
- nagios_client
|
||||||
|
- fas_client
|
||||||
|
- collectd/base
|
||||||
|
- rsyncd
|
||||||
|
- sudo
|
||||||
|
- openvpn/client
|
||||||
|
- torrent
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- include: "{{ tasks }}/yumrepos.yml"
|
||||||
|
- include: "{{ tasks }}/2fa_client.yml"
|
||||||
|
- include: "{{ tasks }}/motd.yml"
|
||||||
|
|
||||||
|
handlers:
|
||||||
|
- include: "{{ handlers }}/restart_services.yml"
|
|
@ -1,11 +1,6 @@
|
||||||
---
|
---
|
||||||
# Configuration for the torrent tracker
|
# Configuration for the torrent tracker
|
||||||
|
|
||||||
- name: clean yum metadata
|
|
||||||
command: yum clean all
|
|
||||||
tags:
|
|
||||||
- packages
|
|
||||||
|
|
||||||
- name: install needed packages
|
- name: install needed packages
|
||||||
yum: pkg={{ item }} state=present
|
yum: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue