removed glusterfs roles that have not aged well
This commit is contained in:
parent
d92caf7c19
commit
aa4f4c3f49
3 changed files with 2 additions and 60 deletions
7
play.yml
7
play.yml
|
@ -28,10 +28,7 @@
|
|||
- {role: install-packages}
|
||||
- {role: create-user}
|
||||
- {role: hardening}
|
||||
# - {role: docker}
|
||||
# - {role: tuned}
|
||||
# - {role: glusterfs-client}
|
||||
# - {role: glusterfs-server}
|
||||
- {role: docker}
|
||||
- {role: tuned}
|
||||
- {role: zfs}
|
||||
# - {role: rke}
|
||||
- {role: sysctl}
|
||||
|
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in a new issue