Skip to content

Instantly share code, notes, and snippets.

@swapnilpatil1682
Created October 24, 2017 06:06
Show Gist options
  • Save swapnilpatil1682/f151a748219db982fdff4fb8d119fcaf to your computer and use it in GitHub Desktop.
Save swapnilpatil1682/f151a748219db982fdff4fb8d119fcaf to your computer and use it in GitHub Desktop.
{
"provisioners": [
{
"type":"file",
"source":"/var/lib/jenkins/workspace/XSuite-XConfig/xconfig-release/target/xconfig-release-1.0.0-SNAPSHOT.tar.gz",
"destination":"/tmp/"
},
{
"type":"file",
"source":"/var/lib/jenkins/workspace/XSuite-XConfig/xconfig-ambari/target/xconfig-ambari-1.0.0-SNAPSHOT.tar.gz",
"destination":"/tmp/"
},
{
"type":"file",
"source":"/var/lib/jenkins/workspace/XSuite-XConfig/xconfig-ranger/src/main/resources/xconfig.json",
"destination":"/tmp/"
},
{
"type":"file",
"source":"/var/lib/jenkins/workspace/XSuite-XConfig/xconfig-ranger/target/xconfig-ranger-1.0.0-SNAPSHOT.jar",
"destination":"/tmp/"
},
{
"type": "shell",
"execute_command": "echo 'root'|sudo -S sh '{{.Path}}'",
"override": {
"virtualbox-ovf": {
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/virtualbox.sh",
"scripts/cleanup.sh"
]
},
"vmware-vmx": {
"scripts": [
"scripts/base.sh",
"scripts/vagrant.sh",
"scripts/vmware.sh",
"scripts/cleanup.sh"
]
}
}
}
],
"post-processors": [
{
"type": "vagrant",
"override": {
"virtualbox": {
"output": "centos-7-0-x64-virtualbox.box"
},
"vmware": {
"output": "centos-7-0-x64-vmware.box"
}
}
}
],
"builders": [
{
"type": "virtualbox-ovf",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"http_directory": "http",
"source_path": "/home/deepak/Documents/centos_ambari_hdp_2.6_apache2.ova",
"ssh_username": "root",
"ssh_password": "root",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"post_shutdown_delay": "300s",
"shutdown_command": "echo '/sbin/halt -h -p' > /tmp/shutdown.sh; echo 'root'|sudo -S sh '/tmp/shutdown.sh'",
"guest_additions_path": "VBoxGuestAdditions_{{.Version}}.iso",
"virtualbox_version_file": ".vbox_version",
"vboxmanage": [
[ "modifyvm", "{{.Name}}", "--memory", "8192" ],
[ "modifyvm", "{{.Name}}", "--cpus", "1" ]
]
},
{
"type": "vmware-vmx",
"boot_command": [
"<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg<enter><wait>"
],
"boot_wait": "10s",
"http_directory": "http",
"source_path": "/home/deepak/Documents/centos_ambari_hdp_2.6_apache2.ova",
"ssh_username": "root",
"ssh_password": "root",
"ssh_port": 22,
"ssh_wait_timeout": "10000s",
"shutdown_command": "echo '/sbin/halt -h -p' > /tmp/shutdown.sh; echo 'root'|sudo -S sh '/tmp/shutdown.sh'",
"tools_upload_flavor": "linux",
"vmx_data": {
"memsize": "8192",
"numvcpus": "1",
"cpuid.coresPerSocket": "1"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment