diff options
author | Markos Chandras <mchandras@suse.de> | 2018-06-12 10:25:00 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2018-06-12 10:26:05 +0100 |
commit | 2f86562623057e8309b39d2b53e79bdb7c3fc06a (patch) | |
tree | 73dada1c53fd0f2441e9bfb6e81b5d3e6681af2d | |
parent | a82590eb643383127abea5dc7320445e03d7a9c2 (diff) |
xci: dynamic_inventory: Add new entry for deployment_host
The deployment host is normally the host which runs the various
playbooks so we add a new entry in the inventory for localhost.
Change-Id: I43baddf4fabd69579c1a02f55ece230a062c2d9b
Signed-off-by: Markos Chandras <mchandras@suse.de>
-rwxr-xr-x | xci/playbooks/dynamic_inventory.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xci/playbooks/dynamic_inventory.py b/xci/playbooks/dynamic_inventory.py index b5c4609b..bf9483da 100755 --- a/xci/playbooks/dynamic_inventory.py +++ b/xci/playbooks/dynamic_inventory.py @@ -53,6 +53,11 @@ class XCIInventory(object): self.opnfv_networks['opnfv']['storage'] = {} self.opnfv_networks['opnfv']['storage']['address'] = '172.29.244.10/24' + # Add localhost + self.add_host('deployment_host') + self.add_hostvar('deployment_host', 'ansible_ssh_host', '127.0.0.1') + self.add_hostvar('deployment_host', 'ansible_connection', 'local') + self.read_pdf_idf() self.parse_args() |