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

Merge ../../mbp-cluster-build/ansible_cluster_in_a_box

parents 0e243a9a e4d39f3c
No related branches found
No related tags found
No related merge requests found
......@@ -3,11 +3,8 @@
service: name=fail2ban state=stopped
sudo: true
- name: "Mounting NFS mounts"
mount: name={{ item.mntpt }} src={{ item.src }} fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
mount: name={{ item.name }} src=" {{ item.ipv4 }}:{{ item.src }} " fstype={{ item.fstype }} opts={{ item.opts }} state=mounted
with_items: nfsMounts
notify: "restart authentication"
notify: "restart rpcbind"
......
......@@ -4,7 +4,8 @@ domains = {{ ansible_domain }}
services = nss, pam, autofs
[nss]
filter_users = root
filter_users = root, slurm, munge
filter_groups = slurm, munge
[pam]
......
......@@ -32,8 +32,3 @@
- name: copy init script
template: dest=/etc/init.d/munge src=munge.initd.j2 mode=755
sudo: true
- name: start on boot
shell: update-rc.d munge defaults
sudo: true
when: ansible_distribution == "Ubuntu"
......@@ -92,6 +92,14 @@
sudo: true
notify: restart munge
- name: enable munge on boot
service: name=munge enabled=yes
sudo: true
- name: start munge
service: name=munge state=started
sudo: true
- include: installSlurmFromSource.yml
- name: install slurm.conf
......
......@@ -36,7 +36,7 @@ PidFile=/var/run/slurmdbd.pid
#
# Database info
StorageType=accounting_storage/mysql
StorageHost={{ slurmctrl }}
StorageHost=localhost
#StoragePort=1234
StoragePass={{ slurmdb_passwd }}
StorageUser=slurmdb
......
......@@ -8,11 +8,15 @@
template: src=exports.j2 dest=/etc/exports owner=root group=root mode=644
sudo: true
# Do not do this as a handler, instead do this here as a task so that it happens imediatly after the exports file is created before any clients
# attempt a mount
- name : "Reload exports"
command: exportfs -ra
- name: "Start the Server"
service: "name=nfs state=restarted"
sudo: true
when: ansible_os_family == "RedHat"
- name: "Start the Server"
service: "name=nfs-kernel-server state=restarted"
sudo: true
when: ansible_os_family == "Debian"
- name : "Pause ... clients sometimes have errors"
command: sleep 60
......
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