path: root/tests/vagrant/vagrant-template/roles/selinux/tasks/main.yml
diff options
authorRaghavendra Talur <>2015-11-24 18:18:01 +0530
committerRaghavendra Talur <>2015-12-28 00:50:36 -0800
commit78305ce9604329250dd4a9f2335587957d71c701 (patch)
tree5222b7e08cc23fd62b7deeb221812a0c111451d8 /tests/vagrant/vagrant-template/roles/selinux/tasks/main.yml
parent7ab8a1a3f4510a284b1686302624ec4252c95a6f (diff)
tests: Introduce a Vagrant VM based test environment
This introduces a mechanism using which a developer could easily test the Gluster code in a VM environment. Also, it will help bring uniformity in the environments used by various developers. How to use: 1. git checkout -b custom-branch-name 2. Make changes 3. Execute ./ What happens in the background: 1. A new directory is created: tests/vagrant/vagrant-custom-branch-name It will serve as the Vagrant dir which has the Vagrantfile and related ansible playbooks. The VM is started using Vagrant and provisioned using ansible. 2. The source dir is recursively copied over to the VM under /home/vagrant/glusterfs. 3. Gluster is source installed in VM. What happens in the foreground: 1. is executed in VM using ssh and output is displayed in the same terminal with option to use ctrl-c to interrupt the test midway. The VM would still persist and you could ssh into it. Also, you can checkout a different branch elsewhere and execute there to get another VM which would execute tests on that code. If you wish to make some changes in the code, you could: a. Change the code in host and run the script again to repeat the whole process. OR b. vagrant ssh into the VM and make the changes in the VM. Co-authored-by: Kaushal M <> Co-authored-by: Michael Adam <> Change-Id: Ic87801172c8b614cdecbdf2a765e1b3370a5faf7 BUG: 1291537 Signed-off-by: Michael Adam <> Signed-off-by: Raghavendra Talur <> Reviewed-on: Tested-by: Gluster Build System <> Reviewed-by: Niels de Vos <>
Diffstat (limited to 'tests/vagrant/vagrant-template/roles/selinux/tasks/main.yml')
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/vagrant/vagrant-template/roles/selinux/tasks/main.yml b/tests/vagrant/vagrant-template/roles/selinux/tasks/main.yml
new file mode 100644
index 00000000000..c9ba9618428
--- /dev/null
+++ b/tests/vagrant/vagrant-template/roles/selinux/tasks/main.yml
@@ -0,0 +1,3 @@
+- name: Allow gfapi in Samba to bind to other ports than well known smb ports
+ seboolean: name=samba_load_libgfapi state=yes persistent=yes