Add test environment based on GitLab CI

The repository now includes configuration for GitLab CI, which uses
Vagrant, KVM (via libvirt) and LXC containers to perform tests on DebOps
roles and playbooks. This is the first iteration of the new test
framework, documentation and additional test code will be added at
a later date.
parent 6468bc96
This diff is collapsed.
......@@ -49,6 +49,10 @@ Added
- [debops.libvirtd] The role can now detect if nested KVM is enabled in
a particular virtual machine and install KVM support.
- DebOps roles and playbooks can now be tested using local or remote
`GitLab CI <https://about.gitlab.com/>`_ instance, with Vagrant, KVM and LXC
technologies and some custom scripts.
Changed
~~~~~~~
......
This diff is collapsed.
[defaults]
force_color = 1
retry_files_enabled = false
roles_path = /vagrant/ansible/roles
lookup_plugins = /vagrant/ansible/playbooks/lookup_plugins
filter_plugins = /vagrant/ansible/playbooks/filter_plugins
control_path = /tmp/ansible-ssh-%%p-%%r
allow_world_readable_tmpfiles = true
pipelining = True
{
"ifupdown__host_interfaces": {
"br2": {
"inet": "static",
"address": "192.168.247.1/24"
}
}
}
{
"mariadb__databases": [
"testdb"
],
"mariadb__users": [
{
"name": "testuser",
"owner": "vagrant",
"home": "/home/vagrant"
}
]
}
{
"postgresql__roles": [
{
"name": "testrole"
},
{
"name": "testrole_production",
"flags": [
"NOLOGIN"
]
}
],
"postgresql__databases": [
{
"name": "testrole_production",
"owner": "testrole_production"
}
],
"postgresql__groups": [
{
"roles": [ "testrole" ],
"groups": [ "testrole_production" ],
"database": "testrole_production"
}
],
"postgresql__pgpass": [
{
"owner": "vagrant"
}
],
"postgresql__delegate_to": "localhost"
}
{
"ifupdown__host_interfaces": {
"br2": {
"inet": "static",
"inet6": "static",
"addresses": [ "192.168.247.1/24", "fd66:374a:d2c7:b899::1/64" ]
}
}
}
{
"sysfs__attributes": [
{
"name": "ksm",
"state": "present"
},
{
"name": "transparent_hugepages",
"state": "present"
}
]
}
{
"ifupdown__host_interfaces": {
"br2": {
"inet": "static",
"address": "192.168.247.1/24",
"nat": true
}
},
"tinc__host_networks": {
"mesh0": {
"bridge": "br2"
}
}
}
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment