[libvirt-ci PATCH 05/12] 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 | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 guests/config.yaml

diff --git a/guests/config.yaml b/guests/config.yaml
new file mode 100644
index 0000000..291fd57
--- /dev/null
+++ b/guests/config.yaml
@@ -0,0 +1,23 @@
+---
+# Configuration file for lcitool
+
+install:
+  # Installation flavor determining the target environment for the VM:
+  #
+  # test - VMs suitable for local testing, 'test' has passwordless sudo
+  # jenkins - VMs pluggable to a jenkins environment
+  # gitlab - VMs ready to be plugged to a GitLab environment
+  flavor: test
+
+  # Initial root password to be set by ansible on the appliance. 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:
+  # GitLab runner agent registration options, applies only if flavor == 'gitlab'.
+  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