Don't have an account?

Sign up and get a 30 day free trial. No credit card required.

1.2

Configuring Storage

We'll need to configure the DigitalOcean spaces storage bucket that will be used by Opsmaru to store build artifacts and various other assets for the clusters to operate successfully.

Click on customize to create an empty blueprint. Then add the storage block to your configuration.

Configuring space storage

Give it a name and description and click next.

The code generator will output the following code

variable "do_region" {}
variable "identifier" {}
module "digitalocean_storage_centaurus_rxr" {
  source  = "upmaru/instellar/digitalocean//modules/storage"
  version = "0.6.0"

  bucket_name = var.identifier
  region      = var.do_region
}

The above is the content of storages.tf you can see that it's referenceing the storage module. There is another important file here called links.tf

Open sourced modules

If you'd like to see the source code for our modules you can check it out here.

// Generated by insterra

module "instellar_link_centaurus_vfb" {
  source  = "upmaru/bootstrap/instellar//modules/storage"
  version = "0.8.2"

  access_key            = var.do_access_key
  bucket                = module.digitalocean_storage_centaurus_rxr.name
  host                  = module.digitalocean_storage_centaurus_rxr.host
  insterra_component_id = 476
  region                = var.do_region
  secret_key            = var.do_secret_key
}

The resources in links.tf is how storage credentials are passed to Opsmaru. This will attach the storage to the organization on Opsmaru.

Creating and updating the repository

Once you click next you'll be asked to create a repository on github. Enter a name for your repository and click create. If you are making edits to your blueprint you will see an update repository button. This will create a pull request.

Create or update repository


Instructor

Zack's profile picture

Zack Siri

Founder

Zack is the creator of Opsmaru. He's worked as CTO in many companies across many industries, everything from hospitality to fin-tech.

He's currently building Opsmaru and loves help customers simplify their DevOps journey. He's happy to share his knowledge and experience to empower customers to get the most out of Opsmaru.