diff --git a/juju/home-maas/00-variables.tf b/juju/home-maas/00-variables.tf index 8e719fe..f066b15 100644 --- a/juju/home-maas/00-variables.tf +++ b/juju/home-maas/00-variables.tf @@ -1,32 +1,32 @@ ######## vars to change as per env -variable "cloud" { +variable cloud { type = string default = "home-maas" } -variable "num_units" { +variable num_units { type = number default = 3 } -variable "controller_ids" { +variable controller_ids { type = list(string) default = ["100", "101", "102", "103", "104", "105"] } -variable "compute_ids" { +variable compute_ids { type = list(string) default = ["1000", "1001", "1002", "1003", "1004", "1005", "1006", "1007"] } -variable "sdn_ids" { +variable sdn_ids { type = list(string) default = ["400", "401", "402"] } -variable "apt_mirror" { +variable apt_mirror { type = string default = "192.168.1.12" } @@ -39,7 +39,7 @@ variable "machines" { })) } -variable "model-name" { +variable model-name { type = string default = "openstack" } @@ -89,17 +89,17 @@ variable ceph-channel { default = "octopus/stable" } -variable "lxd_snap_channel" { +variable lxd-snap-channel { type = string default = "5.0/stable" } -variable "sysconfig_compute_channel" { +variable "sysconfig_channel" { type = string default = "latest/stable" } -variable "sysconfig_compute_revision" { +variable "sysconfig_revision" { type = string default = "19" } @@ -258,4 +258,3 @@ variable expected-mon-count { type = number default = 3 } - diff --git a/juju/home-maas/01-cloud.tf b/juju/home-maas/01-cloud.tf index 01e057e..69acb0c 100644 --- a/juju/home-maas/01-cloud.tf +++ b/juju/home-maas/01-cloud.tf @@ -9,7 +9,7 @@ resource "juju_model" "openstack" { cloudinit-userdata = file("user-data.yaml") apt-mirror = "http://${var.apt_mirror}/archive.ubuntu.com/ubuntu" - lxd-snap-channel = var.lxd_snap_channel + lxd-snap-channel = var.lxd-snap-channel container-image-metadata-url = "http://${var.apt_mirror}/lxd/" container-image-stream = "released" diff --git a/juju/home-maas/06-nova-compute.tf b/juju/home-maas/06-nova-compute.tf index f37f1d5..7af4f94 100644 --- a/juju/home-maas/06-nova-compute.tf +++ b/juju/home-maas/06-nova-compute.tf @@ -104,8 +104,8 @@ resource "juju_application" "sysconfig-compute" { charm { name = "sysconfig" - channel = var.sysconfig_compute_channel - revision = var.sysconfig_compute_revision + channel = var.sysconfig_channel + revision = var.sysconfig_revision } units = 0 diff --git a/juju/home-maas/07-controllers.tf b/juju/home-maas/07-controllers.tf index f4ecc62..3453d5f 100644 --- a/juju/home-maas/07-controllers.tf +++ b/juju/home-maas/07-controllers.tf @@ -25,8 +25,8 @@ resource "juju_application" "sysconfig-control" { charm { name = "sysconfig" - channel = var.sysconfig_compute_channel - revision = var.sysconfig_compute_revision + channel = var.sysconfig_channel + revision = var.sysconfig_revision } units = 0