Passes NodeDataLookup to ceph-ansible workflow

Per-node customizations were only dumped as hieradata, so the
ceph-ansible workflow could not consume them.
This change passes the structure to the mistral workflow so that it
can consume the data and populate the inventory accordingly.

Change-Id: Ie7a9f10f0c821b8c642494a4d3933b2901f39d40
Depends-On: Ia23825aea938f6f9bcf536e35cad562a1b96c93b
Closes-Bug: #1736707
This commit is contained in:
Giulio Fidente 2017-12-06 14:53:18 +01:00
parent 3b626beca3
commit 1971e7b049
2 changed files with 6 additions and 1 deletions

View File

@ -38,6 +38,10 @@ parameters:
constraints:
- allowed_values: ['', 'UPGRADE']
default: ''
NodeDataLookup:
type: string
default: '{}'
description: json string containing per-node configuration map
CephAnsibleWorkflowName:
type: string
description: Name of the Mistral workflow to execute
@ -200,6 +204,7 @@ outputs:
- {get_param: CephAnsibleUpgradePlaybook}
- {get_param: CephAnsiblePlaybook}
ansible_playbook_verbosity: {get_param: CephAnsiblePlaybookVerbosity}
node_data_lookup: {get_param: NodeDataLookup}
config_settings:
ceph_common_ansible_vars:
ireallymeanit: 'yes'

View File

@ -17,7 +17,7 @@ parameters:
# "8CF1A7EA-7B4B-4433-AC83-17675514B1B8": {"foo2": "bar2"}}
NodeDataLookup:
type: string
default: ''
default: '{}'
description: json string containing per-node configuration map
resources: