In this part of the tutorial, you will:
-
Deploy the SIMPL VM.
-
Upload the CSAR to SIMPL VM and unpack it.
-
Create a Cassandra node to act as a Configuration Data Store (CDS).
Steps
Expand each section below to view the detailed steps.
To deploy the SIMPL VM, follow the instructions in the SIMPL VM Deployment Guide for your platform.
Deploy the SIMPL VM
You will now upload the CSAR that you built in the previous part. As part of deploying the SIMPL VM, you should have created and provisioned a key
for connecting to the SIMPL VM.
You need to use this key to connect to the SIMPL VM. To upload the image, ensure you are in the where Connect to the SIMPL VM over SSH: You next need to unpack the CSAR so it is ready for the SIMPL VM to deploy. Run: Verify the CSAR has been unpacked correctly:
Upload and unpack the CSAR
resources
directory and run:scp -i <path to SIMPL VM key> target/images/http-example-0.1.0-<platform>-csar.zip admin@<IP of SIMPL VM>:/home/admin
<platform>
can be openstack
or vsphere
.ssh -i <path to SIMPL VM key> admin@<IP of SIMPL VM>
csar unpack http-example-0.1.0-<platform>-csar.zip
[admin@simpl-vm ~]$ csar list
http-example/0.1.0 (vSphere)
The VMs require access to a Cassandra node that has been configured to act as a CDS. If you do not yet have Cassandra deployed, follow the instructions in the Cassandra documentation
at https://cassandra.apache.org/doc/latest/cassandra/getting_started/installing.html
to install Cassandra.
For a lab deployment, one Cassandra node suffices.
For a production environment, a minimum of 3 nodes is required, while a minimum of 5 nodes is highly recommended. Once Cassandra is installed, you will need to provision the appropriate keyspaces.
Connect to one of the VMs running Cassandra, and run Then verify Cassandra has been set up correctly.
To do that, connect to your SIMPL VM and run the commands below.
If CDS has been set up correctly, the output should match.
Create a Cassandra node to act as CDS
cqlsh
.
Then, one by one, copy the CQL statements from the
Create keyspace and tables section
and paste them into your CQL prompt.[admin@simpl-vm ~]$ cdcsars
[admin@simpl-vm csar]$ http-example/0.1.0/resources/rvtconfig maintenance-window-status --cds-addresses <IP of a Cassandra node> --deployment-id test-deployment --site-id DC1
No maintenance window is currently active.
Next step
In the next step, you will prepare configuration files and upload them to the SIMPL VM and to the CDS. Click here to progress to the next step.