and we have some configs

This commit is contained in:
Stephen Smoogen 2015-09-29 18:14:08 +00:00
parent b4c38bec40
commit 25e96c97c9
3 changed files with 26 additions and 16 deletions

View file

@ -1,15 +1,22 @@
---
---
# this box is not mission critical
freezes: false
# this box mounts a large share from the netapp to store combined http
# logs from the proxies.
nfs_mount_opts: "rw,hard,bg,intr,noatime,nodev,nosuid,nfsvers=3"
# general configs
nrpe_procs_warn: 900
nrpe_procs_crit: 1000
datacenter: phx2
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/kvm-fedora-22
ks_repo: http://10.5.126.23/pub/fedora/linux/releases/21/Server/x86_64/os/
eth0_ip: 10.5.126.124
volgroup: /dev/vg_guests
vmhost: virthost19.phx2.fedoraproject.org
eth0_ip: 10.5.126.122
datacenter: phx2

View file

@ -1,4 +1,4 @@
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=autocloud-backend:autocloud-backend-stg"
- include: "/srv/web/infra/ansible/playbooks/include/virt-create.yml myhosts=autocloud-backend01.phx2.fedoraproject.org:autocloud-backend-stg"
- name: dole out the generic configuration
hosts: autocloud-backend;autocloud-backend-stg

View file

@ -1,26 +1,28 @@
# This is a basic playbook
- name: make basic box
- name: dole out the generic configuration
hosts: data-analysis01.phx2.fedoraproject.org
user: root
gather_facts: True
vars_files:
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
pre_tasks:
- include: "{{ tasks }}/yumrepos.yml"
roles:
- base
- rkhunter
- nagios_client
- hosts
- fas_client
- nagios_client
- collectd/base
- sudo
tasks:
- include: "{{ tasks }}/yumrepos.yml"
- include: "{{ tasks }}/2fa_client.yml"
- include: "{{ tasks }}/motd.yml"
@ -28,16 +30,17 @@
- include: "{{ handlers }}/restart_services.yml"
- include: "{{ handlers }}/semanage.yml"
- name: get the system ready for data handling.
- name: dole out the service-specific config
hosts: data-analysis01.phx2.fedoraproject.org
user: root
gather_facts: True
vars_files:
vars_files:
- /srv/web/infra/ansible/vars/global.yml
- "/srv/private/ansible/vars.yml"
- /srv/web/infra/ansible/vars/{{ ansible_distribution }}.yml
handlers:
- include: "{{ handlers }}/restart_services.yml"
roles:
- { role: nfs/client, mnt_dir: '/srv/fedora_stats', nfs_src_dir: 'fedora_stats' }
- geoip