Skip to content

Commit

Permalink
Merge pull request #3 from gluster/master
Browse files Browse the repository at this point in the history
Update repo
  • Loading branch information
kshithijiyer authored Jun 16, 2020
2 parents d01ce29 + 830967b commit b3606ba
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions jobs/scripts/glusto/setup-glusto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,38 +256,38 @@
command: "gluster peer probe {{hostvars[item]['ansible_eth0']['ipv4']['address']}}"
with_items: "{{groups['gluster_nodes'][2:7]}}"

- name: Install dependency packages
yum: name={{ item }} state=installed
with_items:
- ctdb
- samba
- samba-vfs-glusterfs
- samba-client

- name: Start smb
service: name=smb state=started

- name: Setup SELinux for Samba
seboolean: name=samba_load_libgfapi state=yes persistent=yes

- name: Setup SELinux in permissive mode
selinux: policy=targeted state=enforcing

- name: Setup Samba credentials
shell: (echo "foobar"; echo "foobar") | smbpasswd -a root
- name: Setup Samba configuration
blockinfile:
dest: /etc/samba/smb.conf
insertafter: '\[global\]'
content: |
kernel share modes = no
kernel oplocks = no
map archive = no
map hidden = no
map read only = no
map system = no
store dos attributes = yes
tags: smb
# - name: Install dependency packages
# yum: name={{ item }} state=installed
# with_items:
# - ctdb
# - samba
# - samba-vfs-glusterfs
# - samba-client

# - name: Start smb
# service: name=smb state=started

# - name: Setup SELinux for Samba
# seboolean: name=samba_load_libgfapi state=yes persistent=yes

# - name: Setup SELinux in permissive mode
# selinux: policy=targeted state=enforcing

# - name: Setup Samba credentials
# shell: (echo "foobar"; echo "foobar") | smbpasswd -a root
# - name: Setup Samba configuration
# blockinfile:
# dest: /etc/samba/smb.conf
# insertafter: '\[global\]'
# content: |
# kernel share modes = no
# kernel oplocks = no
# map archive = no
# map hidden = no
# map read only = no
# map system = no
# store dos attributes = yes
# tags: smb

- hosts: gluster_nodes[0]
tasks:
Expand Down

0 comments on commit b3606ba

Please sign in to comment.