Updates to inventory generation and instance configuration
This change makes few updates to inventory generation mechanism,
where generated inventory.ini files are placed, and how they are
used during the deployment.
- move inventory generation out of create-stack role and place it
in newly created role, generate-inventory, for provisioner Heat.
This will help us when we work on generating generic inventory
by provisioners since both provisioners now use separate roles
to generate inventory.
- move tasks in configure-instances located in provisioner to
installer configure-targethosts playbook
- place generated inventory.ini under config_path to have it in
same place as before.
- symlink config_path/inventory.ini as engine/inventory/inventory.ini
instead of copying it so we have single source of inventory.
Change-Id: I53cd4b1e1c1f641afbb992cf08818bdfa4ab767e
diff --git a/playbooks/generate-inventory.yml b/playbooks/generate-inventory.yml
new file mode 100644
index 0000000..5a1538c
--- /dev/null
+++ b/playbooks/generate-inventory.yml
@@ -0,0 +1,27 @@
+---
+# ============LICENSE_START=======================================================
+# Copyright (C) 2019 The Nordix Foundation. All rights reserved.
+# ================================================================================
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+# SPDX-License-Identifier: Apache-2.0
+# ============LICENSE_END=========================================================
+
+- hosts: localhost
+ connection: local
+ gather_facts: true
+
+ roles:
+ - role: generate-inventory
+
+# vim: set ts=2 sw=2 expandtab: