removed glusterfs roles that have not aged well

This commit is contained in:
Josh Lay 2019-03-03 16:53:10 -06:00
parent d92caf7c19
commit aa4f4c3f49
3 changed files with 2 additions and 60 deletions

View file

@ -28,10 +28,7 @@
- {role: install-packages} - {role: install-packages}
- {role: create-user} - {role: create-user}
- {role: hardening} - {role: hardening}
# - {role: docker} - {role: docker}
# - {role: tuned} - {role: tuned}
# - {role: glusterfs-client}
# - {role: glusterfs-server}
- {role: zfs} - {role: zfs}
# - {role: rke}
- {role: sysctl} - {role: sysctl}

View file

@ -1,13 +0,0 @@
---
- name: install glusterfs 4.1 LTS SIG package (CentOS)
package:
name: centos-release-gluster41
state: latest
when: ansible_distribution == 'CentOS'
- name: install heketi-client (CentOS/Fedora)
package:
name: heketi-client
state: latest
when: ansible_distribution in ["CentOS", "Fedora"] and not is_atomic

View file

@ -1,42 +0,0 @@
---
- name: install glusterfs 4.1 LTS SIG package (CentOS)
package:
name: centos-release-gluster41
state: latest
when: ansible_distribution == 'CentOS'
- name: install glusterfs-server
package:
name: glusterfs-server
state: present
when: ansible_distribution in ["CentOS", "Red Hat Enterprise Linux", "Fedora"] and not is_atomic
register: gluster_installed
- name: start glusterd
service:
name: glusterd
state: started
enabled: yes
when: gluster_installed is changed
- name: add hosts to /etc/hosts
lineinfile:
path: /etc/hosts
state: present
line: "{{ hostvars[item].ip }} {{ hostvars[item].gluster_hostname }}"
regexp: "^{{ hostvars[item].ip }} "
with_items: "{{ groups.all }}"
- name: create glusterfs-server container (atomic)
docker_container:
name: glusterfs-server
image: gluster/gluster-centos:gluster4u0_centos7
hostname: glusterfs-server
network_mode: host
privileged: yes
restart_policy: always
shm_size: 2G
devices:
- "{{ gluster_dev }}:{{ gluster_dev }}:rwo"
when: is_atomic