Browse Source

evolinux-base: configure cciss-vol-statusd in the proper file

The default file should be used for configuration instead of the init 
script.
lpoujol/better-multiphp
3 changed files with 11 additions and 3 deletions
  1. +1
    -0
      CHANGELOG.md
  2. +9
    -2
      evolinux-base/tasks/hardware.yml
  3. +1
    -1
      evolinux-base/templates/hardware/cciss-vol-statusd.j2

+ 1
- 0
CHANGELOG.md View File

@@ -60,6 +60,7 @@ The **patch** part changes incrementally at each release.
* evocheck: cron jobs execute in verbose
* evolinux-base: use "evolinux_internal_group" for SSH authentication
* 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: Turn on API by default (instead of DB)
* evomaintenance: install PG dependencies only when needed


+ 9
- 2
evolinux-base/tasks/hardware.yml View File

@@ -52,17 +52,24 @@
- ssacli
state: present

- name: Configure packages for HP hardware
- name: cciss-vol-statusd init script is present
template:
src: hardware/cciss-vol-statusd.j2
dest: /etc/init.d/cciss-vol-statusd
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
service:
name: cciss-vol-statusd
enabled: true
state: started
state: restarted
when: "'Hewlett-Packard Company Smart Array' in raidmodel.stdout"

- name: MegaRAID SAS package is present


+ 1
- 1
evolinux-base/templates/hardware/cciss-vol-statusd.j2 View File

@@ -20,7 +20,7 @@ PIDFILE=/var/run/$NAME.pid
STATUSFILE=/var/run/$NAME.status
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)
REMIND=86400 # Seconds between each reminder (default 2 hours)
RUN_DAEMON=yes


Loading…
Cancel
Save