Last active
June 8, 2018 13:32
-
-
Save marcossegovia/afa429df6474ffd03f4976c1a00c82c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"vsphere_server": "SECRET_PRIVATE_IP", | |
"vsphere_user": "SECRET_USER", | |
"vsphere_password": "SECRET_PASSWORD", | |
"vsphere_host": "cluster1", | |
"vsphere_default_datastore": "uvinum_hybrid", | |
"vsphere_ssd_datastore": "vol392", | |
"vsphere_destination_folder": "Templates/Provisioned", | |
"ssh_username": "SECRET_SSH_USER", | |
"ssh_password": "SECRET_SSH_PASSWORD" | |
}, | |
"builders": [ | |
{ | |
"type": "vsphere-clone", | |
"name": "frontend", | |
"template": "FrontendWithVmWareTools", | |
"vm_name": "FrontendProvisioned", | |
"vcenter_server": "{{user `vsphere_server`}}", | |
"username": "{{user `vsphere_user`}}", | |
"password": "{{user `vsphere_password`}}", | |
"host": "{{user `vsphere_host`}}", | |
"datastore": "{{user `vsphere_default_datastore`}}", | |
"folder": "{{user `vsphere_destination_folder`}}", | |
"ssh_username": "{{user `ssh_username`}}", | |
"ssh_password": "{{user `ssh_password`}}", | |
"convert_to_template": true | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "shell-local", | |
"command": "ansible-playbook --private-key={{ template_dir }}/../ansible/roles/common_packages/files/development/ssh/id_rsa {{ template_dir }}//../ansible/provision_{{ build_name }}.yml -i {{ template_dir }}/../ansible/inventories/templates-stackscale" | |
}, | |
{ | |
"type": "shell", | |
"inline": [ | |
"> /etc/udev/rules.d/70-persistent-net.rules" | |
] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment