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

Merge pull request #154 from l1ll1/master

fixes for ubuntu clusters
parents 543ef759 d3b7cf22
No related branches found
No related tags found
No related merge requests found
---
- include_vars: "{{ ansible_os_family }}.yml"
- name: Install epel-release
yum: name=epel-release-7-5.noarch state=present
sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Enable epel
command: yum-config-manager --enable epel
sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: install lua
yum: name={{ item }} state=installed
with_items:
......
......@@ -12,7 +12,7 @@
sudo: true
- name: install gluster
apt: name=glusterfs state='latest'
apt: name=glusterfs-client state='latest'
when: ansible_os_family == 'Debian'
sudo: true
......
......@@ -15,13 +15,19 @@
sudo: true
- name: install gluster
apt: name=glusterfs state='latest'
apt: name=glusterfs-server state='latest'
when: ansible_os_family == 'Debian'
sudo: true
- name: start daemon
service: name=glusterd enabled=yes state=started
sudo: true
when: ansible_os_family == 'RedHat'
- name: start daemon
service: name=glusterfs-server enabled=yes state=started
sudo: true
when: ansible_os_family == 'Debian'
- name: make server list
set_fact:
......
......@@ -12,6 +12,17 @@
# sudo: true
# when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Install epel-release
yum: name=epel-release-7-5.noarch state=present
sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: Enable epel
command: yum-config-manager --enable epel
sudo: true
when: ansible_distribution == "CentOS" and ansible_distribution_major_version == "7"
- name: install lua
yum: name={{ item }} state=installed
with_items:
......
......@@ -33,3 +33,9 @@
- name: "Giving priviliges to user"
mysql_user: name={{ mysql_user_name }} host={{ mysql_user_host }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL state=present
when: mysql_user_host is defined
- name: "Giving priviliges to user"
mysql_user: name={{ mysql_user_name }} host={{ hostvars[item].ansible_fqdn }} password={{ mysql_user_password }} login_user=root login_password={{ mysql_root_password }} priv={{ mysql_user_db_name }}.*:ALL state=present
with_items: mysql_user_hosts_group
when: mysql_user_hosts_group is defined
{{ slurmdbdlog.log }}
{% endif %}
{
compress
missingok
......
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