Skip to content
Snippets Groups Projects
Commit 87be8ba7 authored by Chris Hines's avatar Chris Hines
Browse files

split the nhc config out of the slurm-common role

parent 879d9c0c
No related branches found
No related tags found
1 merge request!33Multiple fixes
---
- name: "Templating nhc.conf"
template: src=nhc.conf.j2 dest=/tmp/nhc.conf owner=root group=root mode=644
sudo: true
- name: fetch nhc.conf
fetch: src=/tmp/nhc.conf dest=files/nhc.conf flat=yes
#######################################################################
###
### Filesystem checks
###
# * || check_fs_mount_rw -t "fuse.glusterfs" -s "mgmt0:/gv" -f "/glusterVolume"
* || check_fs_used / 90%
# * || check_fs_used /glusterVolume 90%
* || check_fs_iused / 100%
# * || check_fs_iused /glusterVolume 100%
#######################################################################
###
### Hardware checks
###
* || check_hw_cpuinfo 1 1 1
# * || check_hw_physmem 4048416kB 4048416kB 3%
* || check_hw_swap 0kB 0kB 3%
* || check_hw_eth eth0
* || check_hw_eth lo
#######################################################################
###
### Process checks
###
* || check_ps_service -S -u root sshd
......@@ -47,20 +47,7 @@
template: dest=/etc/logrotate.d/nhc src=nhclog.j2 mode=644
sudo: true
- name: check configure file
shell: ls {{ nhc_dir }}/etc/nhc/{{ nhc_config_file }}
ignore_errors: true
register: generate_nhc_config_file
- name: generate config file
shell: "{{ nhc_dir }}/sbin/nhc-genconf -c {{ nhc_dir }}/etc/nhc/{{ nhc_config_file }} CONFDIR={{ nhc_dir }}/etc/nhc"
sudo: true
ignore_errors: true
when: generate_nhc_config_file
- name: config file extension
lineinfile: dest="{{ nhc_dir }}/etc/nhc/{{ nhc_config_file }}" line="{{ item }}"
with_items:
nhc_user_conf
sudo: true
when: nhc_user_conf is defined and generate_nhc_config_file
\ No newline at end of file
- name: install nhc config file
copy: src=nhc.conf dest={{ nhc_dir }}/etc/nhc/{{ nhc_config_file }}
become: true
become_user: root
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment