Skip to content

Terraform module to deploy DataStax Enterprise (DSE) on Oracle Cloud Infrastructure (OCI)

License

Notifications You must be signed in to change notification settings

oci-portfolio/oci-quickstart-datastax

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oci-quickstart-datastax

These are Terraform modules that deploy DataStax Enterprise (DSE) on Oracle Cloud Infrastructure (OCI). They are developed jointly by Oracle and DataStax.

Prerequisites

First off you'll need to do some pre deploy setup. That's all detailed here.

Clone the Module

Now, you'll want a local copy of this repo. You can make that with the commands:

git clone https://github.com/oracle/oci-quickstart-datastax.git
cd oci-quickstart-datastax/terraform
ls

We now need to initialize the directory with the module in it. This makes the module aware of the OCI provider. You can do this by running:

terraform init

This gives the following output:

Deploy

Now for the main attraction. Let's make sure the plan looks good:

terraform plan

That gives:

If that's good, we can go ahead and apply the deploy:

terraform apply

You'll need to enter yes when prompted. The apply should take about five minutes to run. Once complete, you'll see something like this:

When the apply is complete, the infrastructure will be deployed, but cloud-init scripts will still be running. Those will wrap up asynchronously. OpsCenter and Lifecycle Manager (LCM) will probably be up five minutes after you run apply. The cluster might take another ten minutes to build after that. Now is a good time to get a coffee.

Login to DataStax Lifecycle Manager (LCM)

When the terraform apply completed, it printed out the URLs for OpsCenter and LCM. Let's check out LCM first. Open a browser to the URL from the output.

The username is admin and the password is whatever you specified in variables.tf.

In this case, the job isn't done yet. If we drill down on clusters we can see that the nodes have been added but LCM hasn't yet SSH'd into them to install DSE.

Similarly, if we check out the job, we see it hasn't run yet.

Checking back a few minutes later, we see the job is complete!

Login to DataStax OpsCenter

Now that the LCM job is all done, let's take a look at OpsCenter. Open up a browser to that URL. It was printed as output when terraform apply completed.

If everything ran ok, you should see a ring with the number of nodes you specified in variables.tf.

View the Cluster in the Console

You can also login to the web console here to view the IaaS that is running the cluster.

SSH to a Node

These machines are using Ubuntu 16. The default login is ubuntu. You can SSH into the machine with a command like this:

ssh -i ~/.ssh/oci ubuntu@<Public IP Address>

You can debug deployments by investigating the cloud-init log file /var/log/cloud-init-output.log.

If you want to get started interacting with the database you can run cqlsh with the default user cassandra and whatever password you specified in variables.tf. For instance:

cqlsh -u cassandra -p admin

This gives:

Destroy the Deployment

When you no longer need the DSE cluster, you can run this to delete the deployment:

terraform destroy

You'll need to enter yes when prompted. Once complete, you'll see something like this:

About

Terraform module to deploy DataStax Enterprise (DSE) on Oracle Cloud Infrastructure (OCI)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 67.6%
  • Shell 32.4%