summaryrefslogtreecommitdiffstats
path: root/vagrant
Commit message (Collapse)AuthorAgeFilesLines
...
* Take extra environmental variable EXTRA_VARSSachin Prabhu2020-05-183-10/+19
| | | | | | | | | | | To allow users to override variables used in the ansible playbooks. This at the moment is only used for test_repo and test_repo_branch to allow users to specify the repo and branch to used to run their test. Extra variables specified in the form EXTRA_VARS="test_repo=https://github.com/spuiuk/samba-integration.git test_repo_branch=tests-consistency_check" make setup.site Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use variables to specify test repo and branchSachin Prabhu2020-05-182-3/+6
| | | | | | Allows users to easily override to use a different test repo and branch. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* master: remove invocation of removed playbookMichael Adam2020-05-141-1/+0
| | | | | | Found by Anoop CS. Signed-off-by: Michael Adam <obnox@samba.org>
* Remove some defaults from smb.conf templateAnoop C S2020-05-131-9/+0
|
* Add individual volume set options from group-sambaAnoop C S2020-05-121-2/+10
|
* Use vfs_acl_xattr along with vfs_glusterfsAnoop C S2020-05-121-0/+6
|
* Configure GlusterFS nightly repo in common.prepAnoop C S2020-05-113-6/+3
|
* Remove duplicate call the make testSachin Prabhu2020-05-111-4/+0
| | | | | | | | We should not be calling make test from client.test.prep. This should have been removed when the original client.test was split into client.test.prep and client.test. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Upgrade jinja2 python library on setupSachin Prabhu2020-05-111-0/+10
| | | | | | | | | We use pip to upgrade the jinja2 library to the latest version. This is required when re-running the scripts to install the test machines. bug: https://github.com/gluster/samba-integration/issues/60 Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Remove unneeded debugging outputMichael Adam2020-05-081-8/+0
| | | | | | | For debugging network connectivity issues, we printed the contents of /etc/resolv.conf. This is not needed any more. Removing it. Signed-off-by: Michael Adam <obnox@samba.org>
* Add target to call tests using sshSachin Prabhu2020-05-071-1/+4
| | | | | | Can be used by to manually re-run tests. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Run tests on clientSachin Prabhu2020-05-074-0/+27
| | | | | | Fetch tests from the samba-integration-tests repo and run on the client. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add Python PyYAML packageSachin Prabhu2020-05-071-0/+5
| | | | | | | This is needed to be able to read the yaml file by the testing utilities. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Install samba-test for smbtorture scriptsSachin Prabhu2020-05-071-0/+1
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add the nightly samba build to common.prepSachin Prabhu2020-05-072-21/+22
| | | | | | | These packages are also used by the client node to install the smbtorture commands. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Call site.yml instead of cluster-setup.ymlSachin Prabhu2020-05-071-1/+6
| | | | | | | | site.yml is used to create both client and cluster machines. The previous patch introduced a regression which meant the client vms are not setup. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add new build targets to ansible/MakefileSachin Prabhu2020-05-071-1/+6
| | | | | | | | Add targets to build a) clients b) the entire the cluster and the clients Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Fix calling ssh in the MakefileMichael Adam2020-05-061-1/+1
| | | | | | | | By accident an ssh command using /root/.vagrant.d/insecure_private_key was commited into the tree. Fix this by using the pre-created ssh-config-host. Signed-off-by: Michael Adam <obnox@samba.org>
* Call ansible scripts on setup using sshSachin Prabhu2020-05-053-11/+2
| | | | | | | This allows callers to follow the status as the commands are executed on setup. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* change ownership for ssh_config and key file to vagrant userSachin Prabhu2020-05-051-2/+7
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add site.yml to call various playbooksSachin Prabhu2020-04-282-1/+3
| | | | | | | This contains information about the test setup which can be used by the testing infrastructure to run its tests. Signed-off-by: Sachin Prabhu
* Add play to install client machinesSachin Prabhu2020-04-281-0/+8
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Write test-info.yml to client machineSachin Prabhu2020-04-282-0/+22
| | | | | | | Write /root/test-info.yml with information about the cluster. This will be used by the tests to be executed on the client. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add a README file in the clients createdSachin Prabhu2020-04-282-0/+13
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add role client.prepSachin Prabhu2020-04-282-0/+73
| | | | | | To prep client machines. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Create new VM client1Sachin Prabhu2020-04-281-0/+11
| | | | | | This vm will be used to run the client tests on the cluster. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Change the way we specify ip addresses in ansibleSachin Prabhu2020-04-142-4/+32
| | | | | | This makes it easier to reuse the ip address list for other purposes. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use copr yum plugin to install gluster-ansibleAnoop C S2020-04-091-2/+10
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Leave SELinux at default Enforcing modeAnoop C S2020-04-091-4/+8
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Remove explicit creation of CTDB directoriesAnoop C S2020-04-091-32/+14
| | | | | | | | | | | | Now that we have following directories created as part of CTDB packages from nighlty builds we no longer need to have them explicitly created. /etc/ctdb/events/legacy /var/lib/ctdb/state /var/lib/ctdb/persistent/ /var/lib/ctdb/volatile/ Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Update smb.conf template with additional parametersAnoop C S2020-04-081-4/+13
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Create role glusterfs.setupSachin Prabhu2020-04-072-2/+6
| | | | | | Have it include roles gluster.infra and gluster.cluster. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Move test from node.test into node.prepSachin Prabhu2020-04-073-25/+20
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Split out common actions out of node.prepSachin Prabhu2020-04-074-73/+73
| | | | | | | These actions are also used in preping a client. So we split these actions out into common.prep which can also be used by the client. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Update all nodes before starting the install processSachin Prabhu2020-04-072-3/+16
| | | | | | | Present the setup scripts with completely updated hosts. Updating in parallel will also speed up the install process. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Use samba nightly builds repo.Michael Adam2020-04-071-0/+22
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* ssh-config ends up with trailing " for IdentityFileSachin Prabhu2020-04-061-1/+1
| | | | | | | | | | | On a Centos 5 machine, vagrant ssh-config generates an ssh-config with the file for IdentityFile enclosed in quotes. The current regex doesn't take care of trailing ". We do not need an elaborate regex for the ansible lininfile call and replace the existing one with a simpler one. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Fix duplicate state for firewalld while setting up ctdbSachin Prabhu2020-04-061-1/+0
| | | | | | | | Typo to have the second "state" field. "state: enabled" implies "state: present" and the service is to be started. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Don't enable the systemd smb service - ctdb manages SambaMichael Adam2020-03-311-3/+0
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add Samba-Gluster setup ansible filesSachin Prabhu2020-03-304-0/+105
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add ctdb service to the newly created serversSachin Prabhu2020-03-304-0/+86
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add a new private network interface in vagrantSachin Prabhu2020-03-301-3/+5
| | | | | | This will carry the public ips required for the ctdb setup. Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Clean up trailing white spacesSachin Prabhu2020-03-262-2/+2
| | | | Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Avoid duplicationSachin Prabhu2020-03-261-9/+2
| | | | | | Use opportunity to clean up typo Signed-off-by: Sachin Prabhu <sprabhu@redhat.com>
* Add a hosts file and distribute it to the nodes.Michael Adam2020-03-252-0/+8
| | | | | | | | | This is an attempt to unblock the issue with peer-probe in the centos-ci due to lack of name resolution from libvirt/dnsmasq. For now, the hosts file is hard-coded. If this works, we should generate it. Signed-off-by: Michael Adam <obnox@samba.org>
* Fix ci runs due to vagrant-libvirt CPU problem.Michael Adam2020-03-251-0/+9
| | | | | | | | | | | | | | | | | | | | | | | Intermittently, there is failure to bring up the vms in centos-ci with the error message of: > Call to virDomainCreateWithFlags failed: the CPU is incompatible with > host CPU: Host CPU does not provide required features: svm Using cpu_mode='host-passthrough' solves the problem by disabling cpu emulation and using host cpu in passthrough mode. Check out: https://bugzilla.redhat.com/show_bug.cgi?id=1467599 https://bugzilla.redhat.com/show_bug.cgi?id=1386223#c10 vagrant-libvirt/vagrant-libvirt#667 Fix taken from https://github.com/heketi/heketi/pull/1008 Signed-off-by: Michael Adam <obnox@samba.org>
* Disable the ping test (ping by name does not work...)Michael Adam2020-03-252-12/+12
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add copying of ssh key to node preparationMichael Adam2020-03-251-0/+10
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* cluster-vars.yml: record TODO to generate the list of nodesMichael Adam2020-03-253-6/+4
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* reconsile roles in playbooksMichael Adam2020-03-252-1/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>