Support for xtesting
[samplevnf.git] / VNFs / DPPD-PROX / helper-scripts / rapid / centos.json
index 237a648..51784c0 100644 (file)
@@ -1,33 +1,52 @@
 {
-"_Copyright": "Copyright (c) 2010-2018 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": "06101dd4-f162-49c0-a072-2fe32ac446a9",
-"flavor": "3ea20ea9-855c-4a6e-b454-63ad6e8e0db9",
-"networks": "451a030a-eb1e-4c74-85b8-782ef8a6ad38",
-"use_floating_ip": true,
-"floating_ip_pool": "d629619f-8f96-4f32-9b90-1b62e5ea3809",
-"security_groups": "460b7929-c6de-4b1c-ae83-901c2042a894"
+"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": "/opt/rapid/"
+   },
+   {
+   "type": "file",
+   "source": "./deploycentostools.sh",
+   "destination": "/opt/rapid/"
    },
    {
    "type": "shell",
-   "script": "deploycentos.sh"
+   "inline": [
+     "chmod a+x /opt/rapid/deploycentostools.sh",
+     "/opt/rapid/deploycentostools.sh -u deploy" ]
    }
 ]
 }