[libvirt-ci PATCH v2 05/13] config: Introduce a new global config.yaml configuration file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Rather than having the configuration options split across multiple files
(root-password, flavor, gitlab-url, gitlab-runner-token, ...), let's
consolidate these settings into a global config file.

The YAML format has been chosen simply because it's the native data
format in Ansible and thus plays very nicely when accessing variables
within Ansible playbooks.

Signed-off-by: Erik Skultety <eskultet@xxxxxxxxxx>
---
 guests/config.yaml | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 guests/config.yaml

diff --git a/guests/config.yaml b/guests/config.yaml
new file mode 100644
index 0000000..05f1e8a
--- /dev/null
+++ b/guests/config.yaml
@@ -0,0 +1,25 @@
+---
+# Configuration file for lcitool
+
+install:
+
+  # Installation flavor determining the target environment for the VM:
+  #
+  # test - VMs suitable for local testing (the 'test' user has sudo privileges)
+  # jenkins - VMs ready to be plugged into a Jenkins environment
+  # gitlab - VMs ready to be plugged into a GitLab environment
+  flavor: test
+
+  # Root password for the VM. This password will only be necessary for serial
+  # console access in case something goes horribly wrong, for all other use
+  # cases, SSH key authentication will be used instead. (Mandatory)
+  root_password:
+
+# GitLab-related options (only apply to the 'gitlab' flavor)
+gitlab:
+
+  # GitLab connection URL
+  url: https://gitlab.com
+
+  # GitLab runner registration token. (Mandatory)
+  runner_secret:
-- 
2.25.3




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux