-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
453 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
--- | ||
- hosts: cluster | ||
- hosts: storage0 | ||
become: yes | ||
tasks: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
- hosts: storage0 | ||
become: yes | ||
tasks: | ||
|
||
- name: Install storage SIG packages | ||
dnf: | ||
name: | ||
- centos-release-gluster10 | ||
|
||
# Grabbed list of packages from | ||
# https://github.com/samba-in-kubernetes/samba-build/blob/main/packaging/samba-4.19.spec.j2 | ||
- name: Install required rpms | ||
dnf: | ||
name: | ||
- git | ||
- gdb | ||
- make | ||
- gcc | ||
- glibc-gconv-extra | ||
- avahi-devel | ||
- bison | ||
- cups-devel | ||
- dbus-devel | ||
- docbook-style-xsl | ||
- e2fsprogs-devel | ||
- flex | ||
- gawk | ||
- gnupg2 | ||
- gnutls-devel | ||
- gpgme-devel | ||
- jansson-devel | ||
- krb5-devel | ||
- libacl-devel | ||
- libaio-devel | ||
- libarchive-devel | ||
- libattr-devel | ||
- libcap-devel | ||
- libicu-devel | ||
- libcmocka-devel | ||
- libtirpc-devel | ||
- libuuid-devel | ||
- libxslt | ||
- lmdb | ||
- mingw32-gcc | ||
- mingw64-gcc | ||
- ncurses-devel | ||
- openldap-devel | ||
- pam-devel | ||
- perl-interpreter | ||
- perl-generators | ||
- perl(Archive::Tar) | ||
- perl(Test::More) | ||
- popt-devel | ||
- python3-cryptography | ||
- python3-devel | ||
- python3-dns | ||
- python3-requests | ||
- python3-setuptools | ||
- quota-devel | ||
- readline-devel | ||
- rpcgen | ||
- rpcsvc-proto-devel | ||
- sed | ||
- systemd-rpm-macros | ||
- libtasn1-devel | ||
- libtasn1-tools | ||
- xfsprogs-devel | ||
- xz | ||
- zlib-devel | ||
- pkgconfig(libsystemd) | ||
- mold | ||
- libgfapi-devel | ||
- libglusterfs-devel | ||
- libcephfs-devel | ||
- liburing-devel | ||
- pcp-libs-devel | ||
- librados-devel | ||
- python3-iso8601 | ||
- python3-pyasn1 | ||
- bind | ||
- krb5-server | ||
- perl(ExtUtils::MakeMaker) | ||
- perl(FindBin) | ||
- perl(Parse::Yapp) | ||
- lmdb-devel | ||
- bind | ||
- krb5-server | ||
- python3-dateutil | ||
- python3-iso8601 | ||
- python3-pyasn1 | ||
- ldb-tools | ||
- python3-gpg | ||
- python3-markdown | ||
- python3-cryptography | ||
- python3-setproctitle | ||
- tdb-tools | ||
state: latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
../vagrant/vagrant_ansible_inventory | ||
../playbooks/site_inventory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
- hosts: cluster | ||
become: yes | ||
tasks: | ||
|
||
- name: Stop ctdb service | ||
ansible.builtin.service: | ||
name: ctdb | ||
state: stopped | ||
enabled: no | ||
|
||
- name: Disable clustering in smb.conf | ||
ansible.builtin.lineinfile: | ||
path: /etc/samba/smb.conf | ||
search_string: "clustering" | ||
line: clustering = no | ||
|
||
- name: Start smb service on storage0 | ||
ansible.builtin.service: | ||
name: smb | ||
state: started | ||
enabled: yes | ||
when: ansible_hostname == "storage0" | ||
|
||
- name: Add test1 user to samba standalone tdb | ||
shell: (echo x; echo x)|smbpasswd -a test1 | ||
when: ansible_hostname == "storage0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 6 additions & 12 deletions
18
playbooks/ansible/roles/test.sit-test-cases/tasks/main.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,12 @@ | ||
--- | ||
- name: Run tests | ||
block: | ||
- command: | ||
chdir: /root/sit-test-cases | ||
cmd: make test | ||
register: test_output | ||
- debug: var=test_output.stdout_lines | ||
shell: | ||
chdir: /root/sit-test-cases | ||
cmd: make test &> /var/log/test.out | ||
when: test_sanity_only is undefined | ||
|
||
- name: Run sanity tests | ||
block: | ||
- command: | ||
chdir: /root/sit-test-cases | ||
cmd: make sanity_test | ||
register: test_output | ||
- debug: var=test_output.stdout_lines | ||
shell: | ||
chdir: /root/sit-test-cases | ||
cmd: make sanity_test &> /var/log/test.out | ||
when: test_sanity_only is defined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,17 @@ | ||
--- | ||
- name: Initialize test result | ||
set_fact: | ||
tests_failed: false | ||
|
||
- name: Run tests | ||
include_tasks: run-test.yml | ||
vars: | ||
role: "test.{{ test_name }}" | ||
loop: "{{ config.tests }}" | ||
loop_control: | ||
loop_var: test_name | ||
|
||
- name: Check that tests succeeded | ||
when: tests_failed | ||
fail: | ||
msg: "Some tests have failed" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,5 +9,5 @@ | |
- common.prep | ||
- node.prep | ||
- "sit.{{ config.be.name }}" | ||
- ctdb.setup | ||
- samba.setup | ||
- ctdb.setup |
Oops, something went wrong.