Score:0

My cloud config template file does not seem to be working when I use it to boot up a droplet in Digital Ocean?

cn flag

I'm using Terraform to spin up a DO droplet, using an Ubuntu and Docker image. Checkout below:

resource "digitalocean_droplet" "web" {

  image  = "docker-20-04"
  name   = "web"
  region = "nyc3"
  size   = "s-1vcpu-1gb"

  ssh_keys = [digitalocean_ssh_key.default.id]
  user_data = "I2Nsb3Vk #.....etc......"
  
 }

user_data is my cloud-config template encoded in base64.

I ssh into the droplet and notice that the packages listed in the template below are not getting installed.

#cloud-config
package_upgrade: true
package_update: true
packages:
  - build-essential
  - libmariadbclient-dev
  - libjpeg62-turbo-dev
  - zlib1g-dev
  - libwebp-dev
  - libpq-dev
  - postgresql
  - postgresql-contrib

Is there something wrong with my cloud config file above?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.