summaryrefslogtreecommitdiffstats
path: root/xci/playbooks
diff options
context:
space:
mode:
authorMarkos Chandras <mchandras@suse.de>2018-03-13 10:30:16 +0000
committerMarkos Chandras <mchandras@suse.de>2018-03-13 16:36:01 +0000
commit7dd14e002128b5e6fe5302e6f7fe8620682a7d53 (patch)
treecbe382833f76d1601ba0d6a50296846351e8effd /xci/playbooks
parent193e3c4784824d647541d079c54ab2d1460f9e88 (diff)
xci: Merge configure-network and syncronize-time roles
Those roles were too small and only used as part of the host bootstrapping process. As such, we merge them into a common 'bootstrap-host' role which can be used to prepare the hosts after the initial deployment Change-Id: Ifc84cf40b98ced91b31aae699dc28e9642380550 Signed-off-by: Markos Chandras <mchandras@suse.de>
Diffstat (limited to 'xci/playbooks')
-rw-r--r--xci/playbooks/roles/.gitignore3
-rw-r--r--xci/playbooks/roles/bootstrap-host/defaults/main.yml11
-rwxr-xr-xxci/playbooks/roles/bootstrap-host/files/network-config-suse (renamed from xci/playbooks/roles/configure-network/files/network-config-suse)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/tasks/main.yml15
-rw-r--r--xci/playbooks/roles/bootstrap-host/tasks/network.yml (renamed from xci/playbooks/roles/configure-network/tasks/main.yml)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/tasks/time.yml (renamed from xci/playbooks/roles/synchronize-time/tasks/main.yml)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/debian/compute00.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/debian/compute00.interface.j2)0
l---------xci/playbooks/roles/bootstrap-host/templates/debian/compute01.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/debian/compute01.interface.j2)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/debian/controller00.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/debian/controller00.interface.j2)0
l---------xci/playbooks/roles/bootstrap-host/templates/debian/controller01.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/debian/controller01.interface.j2)0
l---------xci/playbooks/roles/bootstrap-host/templates/debian/controller02.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/debian/controller02.interface.j2)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/debian/opnfv.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/debian/opnfv.interface.j2)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/redhat/bridge.ifcfg.j2 (renamed from xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/redhat/interface.ifcfg.j2 (renamed from xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/suse/suse.interface.j2 (renamed from xci/playbooks/roles/configure-network/templates/suse/suse.interface.j2)0
-rw-r--r--xci/playbooks/roles/bootstrap-host/templates/suse/suse.routes.j2 (renamed from xci/playbooks/roles/configure-network/templates/suse/suse.routes.j2)0
16 files changed, 27 insertions, 2 deletions
diff --git a/xci/playbooks/roles/.gitignore b/xci/playbooks/roles/.gitignore
index e0b47770..296233e0 100644
--- a/xci/playbooks/roles/.gitignore
+++ b/xci/playbooks/roles/.gitignore
@@ -1,8 +1,7 @@
*
!.gitignore
!clone-repository/
-!configure-network/
+!bootstrap-host/
!configure-nfs/
!prepare-functest/
!remote-folders/
-!synchronize-time/
diff --git a/xci/playbooks/roles/bootstrap-host/defaults/main.yml b/xci/playbooks/roles/bootstrap-host/defaults/main.yml
new file mode 100644
index 00000000..8e5a0e34
--- /dev/null
+++ b/xci/playbooks/roles/bootstrap-host/defaults/main.yml
@@ -0,0 +1,11 @@
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018 SUSE Linux GmbH 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
+##############################################################################
+
+configure_network: yes
+configure_time: yes
diff --git a/xci/playbooks/roles/configure-network/files/network-config-suse b/xci/playbooks/roles/bootstrap-host/files/network-config-suse
index 02cdd998..02cdd998 100755
--- a/xci/playbooks/roles/configure-network/files/network-config-suse
+++ b/xci/playbooks/roles/bootstrap-host/files/network-config-suse
diff --git a/xci/playbooks/roles/bootstrap-host/tasks/main.yml b/xci/playbooks/roles/bootstrap-host/tasks/main.yml
new file mode 100644
index 00000000..7d6d259e
--- /dev/null
+++ b/xci/playbooks/roles/bootstrap-host/tasks/main.yml
@@ -0,0 +1,15 @@
+---
+# SPDX-license-identifier: Apache-2.0
+##############################################################################
+# Copyright (c) 2018 SUSE Linx GmbH 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
+##############################################################################
+
+- include: network.yml
+ when: configure_network
+
+- include: time.yml
+ when: configure_time
diff --git a/xci/playbooks/roles/configure-network/tasks/main.yml b/xci/playbooks/roles/bootstrap-host/tasks/network.yml
index 01edf459..01edf459 100644
--- a/xci/playbooks/roles/configure-network/tasks/main.yml
+++ b/xci/playbooks/roles/bootstrap-host/tasks/network.yml
diff --git a/xci/playbooks/roles/synchronize-time/tasks/main.yml b/xci/playbooks/roles/bootstrap-host/tasks/time.yml
index 8f94d33f..8f94d33f 100644
--- a/xci/playbooks/roles/synchronize-time/tasks/main.yml
+++ b/xci/playbooks/roles/bootstrap-host/tasks/time.yml
diff --git a/xci/playbooks/roles/configure-network/templates/debian/compute00.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/debian/compute00.interface.j2
index 2da12f20..2da12f20 100644
--- a/xci/playbooks/roles/configure-network/templates/debian/compute00.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/debian/compute00.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/debian/compute01.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/debian/compute01.interface.j2
index a74df1c2..a74df1c2 120000
--- a/xci/playbooks/roles/configure-network/templates/debian/compute01.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/debian/compute01.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/debian/controller00.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/debian/controller00.interface.j2
index c540f66e..c540f66e 100644
--- a/xci/playbooks/roles/configure-network/templates/debian/controller00.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/debian/controller00.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/debian/controller01.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/debian/controller01.interface.j2
index e835d7ca..e835d7ca 120000
--- a/xci/playbooks/roles/configure-network/templates/debian/controller01.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/debian/controller01.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/debian/controller02.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/debian/controller02.interface.j2
index e835d7ca..e835d7ca 120000
--- a/xci/playbooks/roles/configure-network/templates/debian/controller02.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/debian/controller02.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/debian/opnfv.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/debian/opnfv.interface.j2
index 03f81dbb..03f81dbb 100644
--- a/xci/playbooks/roles/configure-network/templates/debian/opnfv.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/debian/opnfv.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2 b/xci/playbooks/roles/bootstrap-host/templates/redhat/bridge.ifcfg.j2
index 06b5f177..06b5f177 100644
--- a/xci/playbooks/roles/configure-network/templates/redhat/bridge.ifcfg.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/redhat/bridge.ifcfg.j2
diff --git a/xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2 b/xci/playbooks/roles/bootstrap-host/templates/redhat/interface.ifcfg.j2
index a97ad0cf..a97ad0cf 100644
--- a/xci/playbooks/roles/configure-network/templates/redhat/interface.ifcfg.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/redhat/interface.ifcfg.j2
diff --git a/xci/playbooks/roles/configure-network/templates/suse/suse.interface.j2 b/xci/playbooks/roles/bootstrap-host/templates/suse/suse.interface.j2
index 27b01eb4..27b01eb4 100644
--- a/xci/playbooks/roles/configure-network/templates/suse/suse.interface.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/suse/suse.interface.j2
diff --git a/xci/playbooks/roles/configure-network/templates/suse/suse.routes.j2 b/xci/playbooks/roles/bootstrap-host/templates/suse/suse.routes.j2
index 7c868447..7c868447 100644
--- a/xci/playbooks/roles/configure-network/templates/suse/suse.routes.j2
+++ b/xci/playbooks/roles/bootstrap-host/templates/suse/suse.routes.j2