{"id":18802152,"url":"https://github.com/oracle-quickstart/oci-datastax","last_synced_at":"2026-01-05T01:30:18.004Z","repository":{"id":106379990,"uuid":"162779343","full_name":"oracle-quickstart/oci-datastax","owner":"oracle-quickstart","description":"Terraform module to deploy DataStax Enterprise (DSE) on Oracle Cloud Infrastructure (OCI)","archived":false,"fork":false,"pushed_at":"2020-11-19T21:45:35.000Z","size":4720,"stargazers_count":1,"open_issues_count":4,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-12-29T20:15:47.744Z","etag":null,"topics":["cassandra","cloud","datastax","datastax-enterprise","dse","nosql","oci","oracle","partner-led","terraform"],"latest_commit_sha":null,"homepage":"","language":"HCL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/oracle-quickstart.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-12-22T03:45:38.000Z","updated_at":"2020-11-19T21:45:37.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ebe1706-f7aa-4c95-9d2e-ba8256ac7f74","html_url":"https://github.com/oracle-quickstart/oci-datastax","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-datastax","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-datastax/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-datastax/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/oracle-quickstart%2Foci-datastax/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/oracle-quickstart","download_url":"https://codeload.github.com/oracle-quickstart/oci-datastax/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239735263,"owners_count":19688262,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cassandra","cloud","datastax","datastax-enterprise","dse","nosql","oci","oracle","partner-led","terraform"],"created_at":"2024-11-07T22:26:47.785Z","updated_at":"2026-01-05T01:30:17.949Z","avatar_url":"https://github.com/oracle-quickstart.png","language":"HCL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oci-datastax\nThese are Terraform modules that deploy [DataStax Enterprise (DSE)](https://www.datastax.com/products/datastax-enterprise) on [Oracle Cloud Infrastructure (OCI)](https://cloud.oracle.com/en_US/cloud-infrastructure).  They are developed jointly by Oracle and DataStax.\n\n## Resource Manager Deployment\n\nThis Quick Start uses [OCI Resource Manager](https://docs.cloud.oracle.com/iaas/Content/ResourceManager/Concepts/resourcemanager.htm) to make deployment easy, sign up for an [OCI account](https://cloud.oracle.com/en_US/tryit) if you don't have one, and just click the button below:\n\n[![Deploy to Oracle Cloud](https://oci-resourcemanager-plugin.plugins.oci.oraclecloud.com/latest/deploy-to-oracle-cloud.svg)](https://cloud.oracle.com/resourcemanager/stacks/create?region=home\u0026zipUrl=https://github.com/oracle-quickstart/oci-datastax/archive/master.zip)\n\nAfter logging into the console you'll walk through the selection of variables for\nthe deployment. You'll then select `Terraform Actions -\u003e Apply` on the stack created, and be able\nto see the progress of resource creation in the logs in the console. Once that's\ncomplete follow the instructions in the [Login to DataStax Lifecycle Manager ](#login-to-datastax-lifecycle-manager)\nsection below. Note, these templates generate an ssh key pair on the fly for\nLCM -\u003e node connections. The private key is in the terraform state file, therefore\ntreat it as a secret.\n\nNote, if you fork this repo you'll need to change the link for the button to point at your repo.\n\n## Local Development\n\nIf you prefer to develop locally, ie by running the `terraform` command\nyou'll need to do some pre deploy setup. That's all detailed [here](https://github.com/oracle/oci-quickstart-prerequisites).\n\nNow, you'll want a local copy of this repo.  You can make that with the commands:\n\n    git clone https://github.com/oracle-quickstart/oci-datastax.git\n    cd oci-datastax\n    ls\n\n![](./images/01%20-%20git%20clone.png)\n\nYou need to rename `provider.tf.cli -\u003e provider.tf`. This is because\nauthentication works slightly differently in ORM vs the CLI.\n\nWe 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:\n\n    terraform init\n\nThis gives the following output:\n\n![](./images/02%20-%20terraform%20init.png)\n\n## Deploy\nNow for the main attraction.  Let's make sure the plan looks good:\n\n    terraform plan\n\nThat gives:\n\n![](./images/03%20-%20terraform%20plan.png)\n\nIf that's good, we can go ahead and apply the deploy:\n\n    terraform apply\n\nYou'll need to enter a password shared by the `cassandra` user and OpsCenter `admin` user,\nand then `yes` when prompted.  The apply should take about five minutes to run.  \nOnce complete, you'll see something like this:\n\n![](./images/04%20-%20terraform%20apply.png)\n\nWhen 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.\n\n## Login to DataStax Lifecycle Manager\nWhen 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.  \n\n![](./images/05%20-%20warning.png)\n\nThe username is `admin` and the password is whatever you specified in [variables.tf](simple/variables.tf).\n\n![](./images/06%20-%20login.png)\n\nIn 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.\n\n![](./images/07%20-%20cluster.png)\n\nSimilarly, if we check out the job, we see it hasn't run yet.\n\n![](./images/08%20-%20job.png)\n\nChecking back a few minutes later, we see the job is complete!\n\n![](./images/09%20-%20job%20done.png)\n\n## Login to DataStax OpsCenter\nNow 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.\n\n![](./images/10%20-%20opscenter.png)\n\nIf everything ran ok, you should see a ring with the number of nodes you specified in [variables.tf](simple/variables.tf).\n\n## View the Cluster in the Console\nYou can also login to the web console [here](https://console.us-phoenix-1.oraclecloud.com/a/compute/instances) to view the IaaS that is running the cluster.\n\n![](./images/11%20-%20console.png)\n\n## SSH to a Node\nThese machines are using Ubuntu 16.  The default login is ubuntu.  You can SSH into the machine with a command like this:\n\n    ssh -i ~/.ssh/oci ubuntu@\u003cPublic IP Address\u003e\n\nYou can debug deployments by investigating the cloud-init log file `/var/log/cloud-init-output.log`.\n\nIf you want to get started interacting with the database you can run `cqlsh` with the default user `cassandra` and whatever password you chose when prompted.  For instance:\n\n    cqlsh -u cassandra -p \u003cpassword you chose\u003e\n\nThis gives:\n\n![](./images/12%20-%20cqlsh.png)\n\n## Destroy the Deployment\nWhen you no longer need the DSE cluster, you can run this to delete the deployment:\n\n    terraform destroy\n\nYou'll need to enter `yes` when prompted.  Once complete, you'll see something like this:\n\n![](./images/13%20-%20terraform%20destroy.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-quickstart%2Foci-datastax","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foracle-quickstart%2Foci-datastax","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foracle-quickstart%2Foci-datastax/lists"}