summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* node.test: test inter-node ssh connectivityMichael Adam2020-03-251-0/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* node.prep: add role for preparing the nodes from setupMichael Adam2020-03-251-0/+4
| | | | | | This initially just copies the ssh config into place Signed-off-by: Michael Adam <obnox@samba.org>
* setup.prep: copy the ssh config to the setup vmMichael Adam2020-03-251-0/+5
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Create ssh config and modify it for use on the VMsMichael Adam2020-03-251-0/+20
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add a local test for the setup machineMichael Adam2020-03-253-0/+21
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Give the setup machine an IP/IF on the cluster netMichael Adam2020-03-251-0/+3
| | | | | | This is needed to unblock gluster-ansible in the centos-ci. Signed-off-by: Michael Adam <obnox@samba.org>
* Add setup.test target to ansible/MakefileMichael Adam2020-03-251-0/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add output of `hostname` to node.test playbookMichael Adam2020-03-251-0/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add separate setup.prep.copy target to only start prep from copyingMichael Adam2020-03-251-0/+3
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Enhance setup.test to cat the /etc/resolv.conf fileMichael Adam2020-03-251-0/+8
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Expand node connectivity test on setup machineMichael Adam2020-03-252-2/+18
| | | | | | Test if the nodes can ping each other Signed-off-by: Michael Adam <obnox@samba.org>
* Break up setup.test and setup.run moreMichael Adam2020-03-253-6/+13
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* vagrant: don't use `qemu_use_session`.Michael Adam2020-03-251-1/+14
| | | | | | | | | | | | | | | | centos-ci complains about it and fails. fedora needs it though. As a workaround, out this into ~/.vagrant.d/Vagrantfile: ``` Vagrant.configure("2") do |config| config.vm.provider :libvirt do |libvirt| libvirt.qemu_use_session = false end end ``` Signed-off-by: Michael Adam <obnox@samba.org>
* Ensure permissions on ssh key fileMichael Adam2020-03-251-0/+5
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Make the network subnet to use configurableMichael Adam2020-03-251-1/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* vagrant: don't configure a storage pool by defaultMichael Adam2020-03-251-2/+4
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Run the cluster setup from the top level "make test"Michael Adam2020-03-251-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* gitignore: Ignore generated fileMichael Adam2020-03-251-0/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* gitignore: fix rule for vim backup filesMichael Adam2020-03-251-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add vagrant/ansible/MakefileMichael Adam2020-03-251-0/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Move the creation of the cluster to the setup machineMichael Adam2020-03-258-2/+25
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Introduce vagrant/Makefile with targets local and setup.prepMichael Adam2020-03-251-0/+9
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Prepare setup machineMichael Adam2020-03-254-0/+59
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add playbook/roles for local preparations.Michael Adam2020-03-253-0/+40
| | | | | | | - vagrant up/provision - prepare inventory for using ansible on the setup machine Signed-off-by: Michael Adam <obnox@samba.org>
* Make storage pool for libvirt configurableMichael Adam2020-03-251-1/+2
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Create two groups for the ansible inventoryMichael Adam2020-03-251-0/+4
| | | | | | admin and cluster Signed-off-by: Michael Adam <obnox@samba.org>
* Parametrize CPUS and RAM values for the nodes VMsMichael Adam2020-03-251-4/+6
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Add environment.sh to be sourced.Michael Adam2020-03-251-0/+3
| | | | | | | For now this sets the ANSIBLE_INVENTORY variable so that ansible commands can be run against the vagrant env. Signed-off-by: Michael Adam <obnox@samba.org>
* Add a setup VM.Michael Adam2020-03-252-0/+15
| | | | | | | | This also adds a no-op playbook run after setting up the setup vm. The effect of this is to let this generate the ansible inventory for running ansible outside of vagrant. Signed-off-by: Michael Adam <obnox@samba.org>
* Don't run provision for now.Michael Adam2020-03-251-7/+0
| | | | | | | Preparing to run provisioning from a setup machine instead of from the host. Signed-off-by: Michael Adam <obnox@samba.org>
* node.setup: use artifacts.ci.centos.org as source of the Gluster repoNiels de Vos2020-03-241-1/+1
| | | | | | | | | artifacts.ci.centos.org is the official name to use for the artifacts that are built through a CI job. It seems ci.centos.org/artifacts uses some form of redirection that does not work from within the CI environment. Signed-off-by: Niels de Vos <ndevos@redhat.com>
* Add a makefile with test targetMichael Adam2020-03-201-0/+3
| | | | | | | | The "test" does not do anything useful yet, but this way, we can already establish the final command to invoke in the centos-ci integration. Signed-off-by: Michael Adam <obnox@samba.org>
* Update READMEMichael Adam2020-03-181-2/+10
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* Use gluster.cluster to create volumeAnoop C S2020-02-282-1/+23
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Use gluster.infra to setup bricksAnoop C S2020-02-283-0/+26
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Use GlusterFS nightly rpmsAnoop C S2020-02-283-10/+21
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Add ansible playbook for provisioning nodesAnoop C S2020-02-283-0/+21
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Add VagrantfileAnoop C S2020-02-281-0/+38
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>
* Update READMEAnoop C S2020-02-281-2/+2
| | | | Signed-off-by: Anoop C S <anoopcs@redhat.com>