summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts/rapid/README
diff options
context:
space:
mode:
authorIllia Polliul <ipolliul@juniper.net>2019-10-24 16:00:05 +0200
committerIllia Polliul <ipolliul@juniper.net>2019-11-25 15:43:50 +0100
commit21c3b7f054e34055654a9ca94058deefb51c25e6 (patch)
tree29629bcaecb4d99cbcc1c00dfe4eaca141434b07 /VNFs/DPPD-PROX/helper-scripts/rapid/README
parentf456ab65201f5fa6b7bad2f0f95ec15d5c3827e1 (diff)
Update RAPID readme about packer details
Change-Id: Ieff72073fff06818a5c5bc8fb9116461c95c2901 Signed-off-by: Illia Polliul <ipolliul@juniper.net>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts/rapid/README')
-rw-r--r--VNFs/DPPD-PROX/helper-scripts/rapid/README36
1 files changed, 31 insertions, 5 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/README b/VNFs/DPPD-PROX/helper-scripts/rapid/README
index 602346da..75ba30e3 100644
--- a/VNFs/DPPD-PROX/helper-scripts/rapid/README
+++ b/VNFs/DPPD-PROX/helper-scripts/rapid/README
@@ -31,19 +31,45 @@ The default name of the qcow2 file is rapidVM.qcow2
When using the packer tool, the first step is to upload an
existing CentOS cloud image from the internet into OpenStack.
Check out: https://cloud.centos.org/centos/7/images/
-You should now source the proper .rc file so Packer can connect to your OpenStack.
+You should now create proper clouds.yaml file so Packer can connect to your OpenStack.
+Sample clouds.yaml could look like this:
+
+client:
+ force_ipv4: true
+clouds:
+ overcloud:
+ verify: False
+ interface: "public"
+ auth:
+ username: "admin"
+ password: "your_password"
+ project_name: "admin"
+ tenant_name: "admin"
+ auth_url: "https://192.168.1.1:5000/v3"
+ user_domain_name: "Default"
+ domain_name: "Default"
+ identity_api_version: "3"
+
+Packer could be run from docker image, you will need to create following alias:
+
+alias packer='docker run -it -v "$PWD":/root/project -w /root/project hashicorp/packer:light $@'
+
+
There are 2 files: centos.json and deploycentostools.sh, allowing you to create
an image automatically. Run
# packer build centos.json
Edit centos.json to reflect the settings of your environment: The following fields need to
be the ID's of your system:
- - "source_image": Needs to be the id of the Centos cloud image
- - "flavor": Needs to be the ID of the flavor existing in your OpenStack environment that will be used
+ - "source_image_name": Needs to be the name of the Centos cloud image
+ - "flavor": Needs to be the ID or name of the flavor existing in your OpenStack environment that will be used
to start the VM in which we will install all tools
- "networks": ID of the network that will be used for the VM
- "use_floating_ip": true or false
- - "floating_ip_pool": ID of the floating ip pool in case floating ip are being used
- - "security_groups": ID of the security group being used
+ - "floating_ip_network": ID of the floating ip network in case floating ip are being used
+ - "security_groups": ID or name of the security group being used
+
+Refer to Packer docs for more details:
+https://www.packer.io/docs/builders/openstack.html
Note that this procedure is not only installing the necessary tools to run PROX,
but also does some system optimizations (tuned). Check deploycentostools.sh for more details.