summaryrefslogtreecommitdiffstats
path: root/inventory
diff options
context:
space:
mode:
authorGeorg Kunz <georg.kunz@est.tech>2020-08-24 23:09:51 +0200
committerRihab Banday <rihab.banday@ericsson.com>2020-09-10 10:29:28 +0000
commitcb3895c81c6931482e688a820013f6926644221d (patch)
tree82f7aa83cb8e407b6437353686dd6177c7227e54 /inventory
parent42b76853c5ba0ad53aa04ae6cab4bd1de2db7b42 (diff)
Implementing jump VM create via ansible
This patch reimplements the creation of the jump VM as ansible playbook. The advantage of this approach is a more deterministic behavior and the ability to render configuration files using templates based on the pdf and idf. Moreover, this patch allows to overwrite the VENDOR variable. This is necessary to allow deployment in different labs via CI. The BMRA configuration has not yet been transformed to ansible template and needs to follow in subsequent patches. Signed-off-by: Georg Kunz <georg.kunz@est.tech> Signed-off-by: Victor Morales <v.morales@samsung.com> Change-Id: I2cde41dcecec7480bddf71ed864f06244a89f1f3 Reviewed-on: https://gerrit.opnfv.org/gerrit/c/kuberef/+/70882 Tested-by: jenkins-ci <jenkins-opnfv-ci@opnfv.org> Reviewed-by: Victor Morales <chipahuac@hotmail.com>
Diffstat (limited to 'inventory')
-rw-r--r--inventory/.keep0
-rw-r--r--inventory/group_vars/all/global.yaml24
-rw-r--r--inventory/localhost.ini5
3 files changed, 29 insertions, 0 deletions
diff --git a/inventory/.keep b/inventory/.keep
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/inventory/.keep
diff --git a/inventory/group_vars/all/global.yaml b/inventory/group_vars/all/global.yaml
new file mode 100644
index 0000000..312fcda
--- /dev/null
+++ b/inventory/group_vars/all/global.yaml
@@ -0,0 +1,24 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) Ericsson AB and others
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
+# root directory of kuberef repository
+kuberef_root: "{{ lookup('env', 'CURRENTPATH') }}"
+
+# path to inventory folder where the initial
+inventory_path: "{{ kuberef_root }}/inventory"
+
+# workspace where all work-in-progress files get stored
+workspace: "{{ kuberef_root }}/workspace"
+
+# directory for storing base images acting as backing file
+images_path: "{{ kuberef_root }}/images"
+
+# public SSH key for use by kuberef installation
+pub_key: "{{ lookup('env', 'HOME') }}/.ssh/id_rsa.pub"
diff --git a/inventory/localhost.ini b/inventory/localhost.ini
new file mode 100644
index 0000000..72f71a5
--- /dev/null
+++ b/inventory/localhost.ini
@@ -0,0 +1,5 @@
+[all:vars]
+ansible_ssh_extra_args=' -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'
+
+[localhost]
+127.0.0.1 ansible_connection=local