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

Merge branch 'master' of...

Merge branch 'master' of gitlab.erc.monash.edu.au:hpc-team/ansible_cluster_in_a_box into sshknownhosts
parents 46a46294 6ff62766
No related branches found
No related tags found
1 merge request!24Sshknownhosts
...@@ -6,3 +6,15 @@ ...@@ -6,3 +6,15 @@
ignore_errors: true ignore_errors: true
when: ansible_os_family == 'RedHat' when: ansible_os_family == 'RedHat'
- name: "Check fusermount user access permission"
shell: fusermount --version
ignore_errors: true
register: fusermount_user_access_error
when: ansible_os_family == 'RedHat'
- name: "Fix fusermount user access permission"
file: path=/bin/fusermount mode="o=rx"
sudo: true
when: ansible_os_family == 'RedHat' and fusermount_user_access_error | failed
...@@ -39,6 +39,11 @@ ...@@ -39,6 +39,11 @@
sudo: true sudo: true
notify: restart sssd notify: restart sssd
- name: "Make the cache a tmpfs"
mount: name=/var/lib/sss/db/ src=tmpfs fstype=tmpfs opts='size=40m' state=mounted
become: true
become_user: root
- name: "start sssd" - name: "start sssd"
service: name=sssd state=started enabled=yes service: name=sssd state=started enabled=yes
sudo: true sudo: true
...@@ -12,10 +12,10 @@ filter_groups = slurm, munge ...@@ -12,10 +12,10 @@ filter_groups = slurm, munge
[domain/{{ ldapDomain }}] [domain/{{ ldapDomain }}]
ldap_referrals = false ldap_referrals = false
cache_credentials = false cache_credentials = false
entry_cache_timeout=120 entry_cache_timeout=5400
memcache_timeout=120 memcache_timeout=300
entry_cache_nowait_percentage=50 entry_cache_nowait_percentage=50
enumerate = true enumerate = false
id_provider = ldap id_provider = ldap
auth_provider = ldap auth_provider = ldap
......
--- ---
- name: "Installing MySQL Debian" - name: "Installing MySQL Debian"
apt: name="{{ item }}" update_cache=yes cache_valid_time=3600 state=present apt: name="{{ item }}" update_cache=yes cache_valid_time=3600 state=present
with_items: client_packages with_items: "{{ client_packages }}"
sudo: true sudo: true
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Installing MySQL RedHat - name: Installing MySQL RedHat
yum: name="{{ item }}" state=present yum: name="{{ item }}" state=present
with_items: client_packages with_items: "{{ client_packages }}"
sudo: true sudo: true
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
--- ---
- name: "Installing MySQL Debian" - name: "Installing MySQL Debian"
apt: name="{{ item }}" update_cache=yes cache_valid_time=3600 state=present apt: name="{{ item }}" update_cache=yes cache_valid_time=3600 state=present
with_items: server_packages with_items: "{{ server_packages }}"
sudo: true sudo: true
when: ansible_os_family == "Debian" when: ansible_os_family == "Debian"
- name: Installing MySQL RedHat - name: Installing MySQL RedHat
yum: name={{ item }} yum: name={{ item }}
with_items: server_packages with_items: "{{ server_packages }}"
sudo: true sudo: true
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
......
...@@ -11,6 +11,8 @@ STATE_WARNING=1 ...@@ -11,6 +11,8 @@ STATE_WARNING=1
dist = platform.dist() dist = platform.dist()
if dist[0] == "debian": if dist[0] == "debian":
command = "/usr/sbin/service apache2 status" command = "/usr/sbin/service apache2 status"
elif dist[0] == "centos":
command = "/sbin/service httpd status"
else: else:
command = "service apache2 status" command = "service apache2 status"
......
...@@ -3,11 +3,20 @@ import sys, os, pwd ...@@ -3,11 +3,20 @@ import sys, os, pwd
import getopt import getopt
import commands import commands
import subprocess import subprocess
import platform
STATE_OK=0 STATE_OK=0
STATE_WARNING=1 STATE_WARNING=1
check_ldap=subprocess.Popen("service slapd status", shell=True, stdout=subprocess.PIPE) dist = platform.dist()
if dist[0] == "debian":
command = "/usr/sbin/service slapd status"
elif dist[0] == "centos":
command = "/sbin/service slapd status"
else:
command = "service slapd status"
check_ldap=subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
ldap_status=check_ldap.communicate()[0] ldap_status=check_ldap.communicate()[0]
if "run" in ldap_status: if "run" in ldap_status:
......
...@@ -3,11 +3,20 @@ import sys, os, pwd ...@@ -3,11 +3,20 @@ import sys, os, pwd
import getopt import getopt
import commands import commands
import subprocess import subprocess
import platform
STATE_OK=0 STATE_OK=0
STATE_WARNING=1 STATE_WARNING=1
check_mysql=subprocess.Popen("service mysqld status", shell=True, stdout=subprocess.PIPE) dist = platform.dist()
if dist[0] == "debian":
command = "/usr/sbin/service mysql status"
elif dist[0] == "centos":
command = "/sbin/service mysqld status"
else:
command = "service mysql status"
check_mysql=subprocess.Popen(command, shell=True, stdout=subprocess.PIPE)
mysql_status=check_mysql.communicate()[0] mysql_status=check_mysql.communicate()[0]
if "run" in mysql_status: if "run" in mysql_status:
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
shell: tar jxf munge-{{ munge_version }}.tar.bz2 shell: tar jxf munge-{{ munge_version }}.tar.bz2
args: args:
chdir: /tmp chdir: /tmp
creates: /tmp/munge-{{ munge_version }} creates: /tmp/munge-{{ munge_version }}/configure
- name: build munge - name: build munge
shell: ./configure --prefix={{ munge_dir }} && make shell: ./configure --prefix={{ munge_dir }} && make
......
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