try watchdog stuff on fedocal01.stg
Signed-off-by: Ricky Elrod <codeblock@fedoraproject.org>
This commit is contained in:
parent
34628c06a9
commit
b5b7220f26
4 changed files with 31 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
roles:
|
||||
- base
|
||||
- { role: watchdog, when: env == "staging" }
|
||||
- rkhunter
|
||||
- { role: denyhosts, when: ansible_distribution_major_version|int != 7 }
|
||||
- nagios_client
|
||||
|
|
3
roles/watchdog/handlers/main.yml
Normal file
3
roles/watchdog/handlers/main.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
- name: restart watchdog
|
||||
service: name=watchdog state=restarted
|
18
roles/watchdog/tasks/main.yml
Normal file
18
roles/watchdog/tasks/main.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue