Skip to content
Snippets Groups Projects
Commit 9871e1ce authored by Attila Farkas's avatar Attila Farkas
Browse files

Install ansible to controller using shell

parent bba5913f
No related branches found
No related tags found
1 merge request!22Resolve "Support Windows boxes"
...@@ -206,6 +206,19 @@ def _call_provisioner(device_name, input_definitions, flags): ...@@ -206,6 +206,19 @@ def _call_provisioner(device_name, input_definitions, flags):
"""Create entry to vagrant definitions for calling the provisioner.""" """Create entry to vagrant definitions for calling the provisioner."""
provisioner_calls = [] provisioner_calls = []
if device_name == CONTROLLER_NAME:
shell_provisioning = dict()
shell_provisioning["type"] = "provision"
shell_provisioning["provisioner"] = "shell"
shell_provisioning["note"] = "install pip3 and ansible"
install_ansible = dict()
install_ansible["type"] = "string"
install_ansible["command"] = "inline"
install_ansible["value"] = "sudo apt-get install -y python3-pip && pip3 install --upgrade ansible"
shell_provisioning["commands"] = [install_ansible]
provisioner_calls.append(shell_provisioning)
config_playbook = dict() config_playbook = dict()
config_playbook["type"] = "provision" config_playbook["type"] = "provision"
if "ansible_local" in flags and flags["ansible_local"]: if "ansible_local" in flags and flags["ansible_local"]:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment