}
],
"provisioners": [
+ {
+ "type": "shell",
+ "inline": [
+ "sudo mkdir -p /opt/rapid",
+ "sudo chmod 0777 /opt/rapid" ]
+ },
{
"type": "file",
"source": "./check_prox_system_setup.sh",
- "destination": "~/"
+ "destination": "/opt/rapid/"
},
{
"type": "file",
"source": "./check-prox-system-setup.service",
- "destination": "~/"
+ "destination": "/opt/rapid/"
},
{
"type": "file",
"source": "./sharkproxlog.sh",
- "destination": "~/"
+ "destination": "/opt/rapid/"
},
{
"type": "file",
"source": "./deploycentostools.sh",
- "destination": "~/"
+ "destination": "/opt/rapid/"
},
{
"type": "shell",
"inline": [
- "chmod a+x ~/deploycentostools.sh",
- "~/deploycentostools.sh -u deploy" ]
+ "chmod a+x /opt/rapid/deploycentostools.sh",
+ "/opt/rapid/deploycentostools.sh -u deploy" ]
}
]
}
MAXCOREID="$((NCPUS-1))"
filename="/etc/tuned/realtime-virtual-guest-variables.conf"
-#logfile="/home/centos/prox_system_setup.log"
logfile="/opt/rapid/prox_system_setup.log"
if [ -f "$filename" ]
then
# Install the check_tuned_params service to make sure that the grub cmd line has the right cpus in isolcpu. The actual number of cpu's
# assigned to this VM depends on the flavor used. We don't know at this time what that will be.
- ${SUDO} chmod +x ${HOME}/check_prox_system_setup.sh
- ${SUDO} mv ${HOME}/check_prox_system_setup.sh /usr/local/libexec/
- ${SUDO} mv ${HOME}/check-prox-system-setup.service /etc/systemd/system/
+ ${SUDO} chmod +x ${BUILD_DIR}/check_prox_system_setup.sh
+ ${SUDO} mv ${BUILD_DIR}/check_prox_system_setup.sh /usr/local/libexec/
+ ${SUDO} mv ${BUILD_DIR}/check-prox-system-setup.service /etc/systemd/system/
${SUDO} systemctl daemon-reload
${SUDO} systemctl enable check-prox-system-setup.service
# Following lines are added to fix the following issue: When the VM gets
# Compile PROX
pushd ${BUILD_DIR}/samplevnf/VNFs/DPPD-PROX
make -j`getconf _NPROCESSORS_ONLN`
- ${SUDO} cp ${BUILD_DIR}/samplevnf/VNFs/DPPD-PROX/build/app/prox ${HOME}/prox
+ ${SUDO} cp ${BUILD_DIR}/samplevnf/VNFs/DPPD-PROX/build/app/prox ${BUILD_DIR}/prox
popd > /dev/null 2>&1
}
'screenloglevel' : 'INFO', # sets log level for writing to screen
'runtime' : 10, # time in seconds for 1 test run
'configonly' : False, # If True, the system will upload all the necessary config fiels to the VMs, but not start PROX and the actual testing
- 'rundir' : '~', # Directory where to find the tools in the machines running PROX
+ 'rundir' : '/opt/rapid', # Directory where to find the tools in the machines running PROX
'lat_percentile' : 0.99
}