{
-"_Copyright": "Copyright (c) 2010-2019 Intel Corporation",
+"_Copyright": "Copyright (c) 2010-2020 Intel Corporation",
"_License": "SPDX-License-Identifier: Apache-2.0",
"builders": [
{
"type": "openstack",
"ssh_username": "centos",
"image_name": "rapidVM",
-"source_image": "09ada6c0-21aa-49aa-ad7b-d364f279ee92",
-"flavor": "2d198ea9-7cbc-4211-9983-531493b07a96",
-"networks": "2d2bb4ec-58ae-47a4-8af9-f58f14533337",
-"use_floating_ip": true,
-"floating_ip_pool": "ff966059-9dd2-4ed1-ad9a-5fae516eb0fa",
-"security_groups": "1da93e77-29c2-42d7-b611-f2ae094aa8df",
+"source_image_name": "CentOS",
+"flavor": "packer_flavor",
+"network_discovery_cidrs":"10.6.6.0/24",
+"floating_ip_network": "admin_floating_net",
+"security_groups": "prox_security_group",
"ssh_timeout":"1000s",
"ssh_pty":"true"
}
],
"provisioners": [
+ {
+ "type": "shell",
+ "inline": [
+ "sudo mkdir -p /opt/rapid",
+ "sudo chmod 0777 /opt/rapid" ]
+ },
{
"type": "file",
"source": "./check_prox_system_setup.sh",
- "destination": "/home/centos/"
+ "destination": "/opt/rapid/"
},
{
"type": "file",
"source": "./check-prox-system-setup.service",
- "destination": "/home/centos/"
+ "destination": "/opt/rapid/"
},
{
"type": "file",
"source": "./sharkproxlog.sh",
- "destination": "/home/centos/"
+ "destination": "/opt/rapid/"
},
{
"type": "file",
"source": "./deploycentostools.sh",
- "destination": "/home/centos/"
+ "destination": "/opt/rapid/"
},
{
"type": "shell",
- "script": "deploycentostools.sh"
+ "inline": [
+ "chmod a+x /opt/rapid/deploycentostools.sh",
+ "/opt/rapid/deploycentostools.sh -u deploy" ]
}
]
}