try watchdog stuff on fedocal01.stg

Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
Rick Elrod 2015-11-08 23:04:45 +00:00
parent 34628c06a9
commit b5b7220f26
4 changed files with 31 additions and 0 deletions

View file

@ -10,3 +10,12 @@ volgroup: /dev/vg_guests
eth0_ip: 10.5.126.66
vmhost: virthost11.phx2.fedoraproject.org
datacenter: phx2
virt_install_command: virt-install -n {{ inventory_hostname }} -r {{ mem_size }}
--disk bus=virtio,path={{ volgroup }}/{{ inventory_hostname }}
--vcpus={{ num_cpus }} -l {{ ks_repo }} -x
'ksdevice=eth0 ks={{ ks_url }} console=tty0 console=ttyS0
hostname={{ inventory_hostname }} nameserver={{ dns }}
ip={{ eth0_ip }}::{{ gw }}:{{ nm }}:{{ inventory_hostname }}:eth0:none'
--network bridge=br0,model=virtio
--autostart --noautoconsole --watchdog default

View file

@ -12,6 +12,7 @@
roles:
- base
- { role: watchdog, when: env == "staging" }
- rkhunter
- { role: denyhosts, when: ansible_distribution_major_version|int != 7 }
- nagios_client

View file

@ -0,0 +1,3 @@
---
- name: restart watchdog
service: name=watchdog state=restarted

View file

@ -0,0 +1,18 @@
---
#
# Setup watchdog
#
- name: install needed packages
yum: pkg={{ item }} state=present
with_items:
- watchdog
tags:
- packages
- watchdog
- name: watchdog device configuration
copy: src=watchdog-device dest=/etc/waatchdog.d/watchdog-device owner=root group=root mode=644
tags:
- config
- watchdog
notify: restart watchdog