forked from evolix/ansible-roles
evolinux-base: configure cciss-vol-statusd in the proper file
The default file should be used for configuration instead of the init script.
This commit is contained in:
parent
35549d2dea
commit
f2613e91aa
|
@ -60,6 +60,7 @@ The **patch** part changes incrementally at each release.
|
||||||
* evocheck: cron jobs execute in verbose
|
* evocheck: cron jobs execute in verbose
|
||||||
* evolinux-base: use "evolinux_internal_group" for SSH authentication
|
* evolinux-base: use "evolinux_internal_group" for SSH authentication
|
||||||
* evolinux-base: Don't customize the logcheck recipient by default.
|
* evolinux-base: Don't customize the logcheck recipient by default.
|
||||||
|
* evolinux-base: configure cciss-vol-statusd in the proper file
|
||||||
* evomaintenance: upstream release 0.6.3
|
* evomaintenance: upstream release 0.6.3
|
||||||
* evomaintenance: Turn on API by default (instead of DB)
|
* evomaintenance: Turn on API by default (instead of DB)
|
||||||
* evomaintenance: install PG dependencies only when needed
|
* evomaintenance: install PG dependencies only when needed
|
||||||
|
|
|
@ -52,17 +52,24 @@
|
||||||
- ssacli
|
- ssacli
|
||||||
state: present
|
state: present
|
||||||
|
|
||||||
- name: Configure packages for HP hardware
|
- name: cciss-vol-statusd init script is present
|
||||||
template:
|
template:
|
||||||
src: hardware/cciss-vol-statusd.j2
|
src: hardware/cciss-vol-statusd.j2
|
||||||
dest: /etc/init.d/cciss-vol-statusd
|
dest: /etc/init.d/cciss-vol-statusd
|
||||||
mode: "0755"
|
mode: "0755"
|
||||||
|
|
||||||
|
- name: Configure cciss-vol-statusd
|
||||||
|
lineinfile:
|
||||||
|
dest: /etc/default/cciss-vol-statusd
|
||||||
|
line: 'MAILTO="{{ raid_alert_email or general_alert_email | mandatory }}"'
|
||||||
|
regexp: 'MAILTO='
|
||||||
|
create: yes
|
||||||
|
|
||||||
- name: Enable HP hardware in systemd
|
- name: Enable HP hardware in systemd
|
||||||
service:
|
service:
|
||||||
name: cciss-vol-statusd
|
name: cciss-vol-statusd
|
||||||
enabled: true
|
enabled: true
|
||||||
state: started
|
state: restarted
|
||||||
when: "'Hewlett-Packard Company Smart Array' in raidmodel.stdout"
|
when: "'Hewlett-Packard Company Smart Array' in raidmodel.stdout"
|
||||||
|
|
||||||
- name: MegaRAID SAS package is present
|
- name: MegaRAID SAS package is present
|
||||||
|
|
|
@ -20,7 +20,7 @@ PIDFILE=/var/run/$NAME.pid
|
||||||
STATUSFILE=/var/run/$NAME.status
|
STATUSFILE=/var/run/$NAME.status
|
||||||
SCRIPTNAME=/etc/init.d/$NAME
|
SCRIPTNAME=/etc/init.d/$NAME
|
||||||
|
|
||||||
MAILTO="{{ raid_alert_email or general_alert_email | mandatory }}" # Where to report problems
|
MAILTO="root" # Where to report problems
|
||||||
PERIOD=600 # Seconds between each check (default 10 minutes)
|
PERIOD=600 # Seconds between each check (default 10 minutes)
|
||||||
REMIND=86400 # Seconds between each reminder (default 2 hours)
|
REMIND=86400 # Seconds between each reminder (default 2 hours)
|
||||||
RUN_DAEMON=yes
|
RUN_DAEMON=yes
|
||||||
|
|
Loading…
Reference in a new issue