2024-05-12 13:43:53 +00:00
|
|
|
######## vars to change as per env
|
2024-05-13 08:25:36 +00:00
|
|
|
variable cloud {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "home-maas"
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable num_units {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = number
|
|
|
|
default = 3
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable controller_ids {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = list(string)
|
2024-05-12 20:58:33 +00:00
|
|
|
default = ["100", "101", "102",
|
2024-05-12 13:43:53 +00:00
|
|
|
"103", "104", "105"]
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable compute_ids {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = list(string)
|
2024-05-12 20:58:33 +00:00
|
|
|
default = ["1000", "1001", "1002", "1003",
|
2024-05-12 13:43:53 +00:00
|
|
|
"1004", "1005", "1006", "1007"]
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable sdn_ids {
|
2024-05-12 20:58:33 +00:00
|
|
|
type = list(string)
|
|
|
|
default = ["400", "401", "402"]
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable apt_mirror {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "192.168.1.12"
|
|
|
|
}
|
|
|
|
|
2024-06-05 17:20:18 +00:00
|
|
|
variable "all_services" {
|
|
|
|
type = list(string)
|
|
|
|
default = [
|
|
|
|
"easyrsa",
|
|
|
|
"etcd",
|
2024-11-19 22:25:01 +00:00
|
|
|
# "ceilometer",
|
2024-06-05 17:20:18 +00:00
|
|
|
"ceph-mon",
|
|
|
|
# "ceph-osd",
|
|
|
|
"ceph-radosgw",
|
|
|
|
"cinder",
|
|
|
|
"glance",
|
2024-11-19 22:25:01 +00:00
|
|
|
# "gnocchi",
|
2024-06-05 17:20:18 +00:00
|
|
|
"heat",
|
|
|
|
"keystone",
|
|
|
|
"memcached",
|
|
|
|
"mysql-innodb-cluster",
|
|
|
|
"neutron-api",
|
|
|
|
"neutron-gateway",
|
|
|
|
"nova-compute-kvm",
|
|
|
|
"nova-cloud-controller",
|
|
|
|
"openstack-dashboard",
|
|
|
|
"placement",
|
|
|
|
"rabbitmq-server",
|
|
|
|
"vault",
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2024-05-12 13:43:53 +00:00
|
|
|
######## vars unlikely to be changed
|
2024-01-02 18:18:39 +00:00
|
|
|
variable "machines" {
|
|
|
|
type = list(object({
|
|
|
|
machine_id = number
|
|
|
|
constraints = string
|
2024-06-07 19:15:23 +00:00
|
|
|
base = optional(string)
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "lma-machines" {
|
|
|
|
type = list(object({
|
|
|
|
machine_id = number
|
|
|
|
constraints = string
|
|
|
|
base = optional(string)
|
2024-01-02 18:18:39 +00:00
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
2024-11-19 22:25:01 +00:00
|
|
|
variable "infra-machines" {
|
|
|
|
type = list(object({
|
|
|
|
machine_id = number
|
|
|
|
name = string
|
|
|
|
}))
|
|
|
|
}
|
|
|
|
|
|
|
|
variable openstack-model-name {
|
2024-05-07 16:12:07 +00:00
|
|
|
type = string
|
|
|
|
default = "openstack"
|
|
|
|
}
|
|
|
|
|
2024-06-07 19:15:23 +00:00
|
|
|
variable lma-model-name {
|
|
|
|
type = string
|
|
|
|
default = "lma"
|
|
|
|
}
|
|
|
|
|
2024-11-19 22:25:01 +00:00
|
|
|
variable infra-model-name {
|
|
|
|
type = string
|
|
|
|
default = "infra"
|
|
|
|
}
|
|
|
|
|
2023-10-27 17:18:20 +00:00
|
|
|
variable openstack-origin {
|
|
|
|
type = string
|
|
|
|
default = "distro"
|
|
|
|
}
|
|
|
|
|
2024-05-06 16:44:43 +00:00
|
|
|
variable openstack-region {
|
|
|
|
type = string
|
|
|
|
default = "RegionOne"
|
|
|
|
}
|
|
|
|
|
2024-05-07 19:23:43 +00:00
|
|
|
variable openstack-channel {
|
|
|
|
type = string
|
|
|
|
default = "ussuri/stable"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable default-base {
|
|
|
|
type = string
|
|
|
|
default = "ubuntu@20.04"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable mysql-channel {
|
|
|
|
type = string
|
|
|
|
default = "8.0/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-12 13:43:53 +00:00
|
|
|
variable mysql-router-channel {
|
|
|
|
type = string
|
|
|
|
default = "8.0/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-12 20:58:33 +00:00
|
|
|
variable hacluster-channel {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "2.0.3/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-12 20:58:33 +00:00
|
|
|
variable rabbitmq-server-channel {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "3.8/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-12 20:58:33 +00:00
|
|
|
variable ceph-channel {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "octopus/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable lxd-snap-channel {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "5.0/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable "sysconfig_channel" {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
|
|
|
default = "latest/stable"
|
|
|
|
}
|
|
|
|
|
2024-05-13 08:25:36 +00:00
|
|
|
variable "sysconfig_revision" {
|
2024-05-12 13:43:53 +00:00
|
|
|
type = string
|
2024-05-14 11:20:30 +00:00
|
|
|
default = "22"
|
2024-05-12 13:43:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "ubuntu_channel" {
|
|
|
|
type = string
|
|
|
|
default = "latest/stable"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "ubuntu_revision" {
|
|
|
|
type = string
|
|
|
|
default = "24"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "vault_channel" {
|
|
|
|
type = string
|
|
|
|
default = "1.7/stable"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "etcd_channel" {
|
|
|
|
type = string
|
|
|
|
default = "latest/stable"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "etcd_revision" {
|
|
|
|
type = string
|
2024-11-19 22:25:01 +00:00
|
|
|
default = ""
|
2024-05-12 13:43:53 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable "easyrsa_channel" {
|
|
|
|
type = string
|
|
|
|
default = "latest/stable"
|
|
|
|
}
|
|
|
|
|
2023-10-27 17:18:20 +00:00
|
|
|
variable osd-devices {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
2023-11-29 10:40:29 +00:00
|
|
|
variable customize-failure-domain {
|
|
|
|
type = string
|
|
|
|
default = "true"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable reserved-host-memory {
|
2024-05-07 19:23:43 +00:00
|
|
|
type = number
|
|
|
|
default = 512
|
2023-11-29 10:40:29 +00:00
|
|
|
}
|
2023-12-15 16:35:17 +00:00
|
|
|
|
|
|
|
variable worker-multiplier {
|
2024-05-07 19:23:43 +00:00
|
|
|
type = number
|
|
|
|
default = 0.25
|
2023-12-15 16:35:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable bridge-mappings {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
|
|
|
|
}
|
|
|
|
variable data-port {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable dns-servers {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
2024-05-06 16:44:43 +00:00
|
|
|
|
|
|
|
variable nagios-context {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable mysql-connections {
|
2024-05-07 19:23:43 +00:00
|
|
|
type = number
|
|
|
|
default = 4000
|
2024-05-06 16:44:43 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
variable mysql-tuning-level {
|
|
|
|
type = string
|
|
|
|
default = "safest"
|
|
|
|
}
|
2024-05-07 19:23:43 +00:00
|
|
|
|
|
|
|
variable vips {
|
|
|
|
type = map(string)
|
|
|
|
default = {}
|
|
|
|
}
|
|
|
|
|
|
|
|
variable oam-space {
|
|
|
|
type = string
|
|
|
|
default = "oam"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable admin-space {
|
|
|
|
type = string
|
|
|
|
default = "admin"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable public-space {
|
|
|
|
type = string
|
|
|
|
default = "public"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable internal-space {
|
|
|
|
type = string
|
|
|
|
default = "internal"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable ceph-public-space {
|
|
|
|
type = string
|
|
|
|
default = "ceph-public"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable ceph-cluster-space {
|
|
|
|
type = string
|
|
|
|
default = "ceph-cluster"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable overlay-space {
|
|
|
|
type = string
|
|
|
|
default = "overlay"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable external-network-gateway {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable cpu-allocation-ratio {
|
|
|
|
type = number
|
|
|
|
default = 16.0
|
|
|
|
}
|
|
|
|
|
|
|
|
variable ram-allocation-ratio {
|
|
|
|
type = number
|
|
|
|
default = 2.0
|
|
|
|
}
|
|
|
|
|
|
|
|
variable ntp-source {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable external-network-cidr {
|
|
|
|
type = string
|
|
|
|
default = ""
|
|
|
|
}
|
|
|
|
|
|
|
|
variable expected-osd-count {
|
|
|
|
type = number
|
|
|
|
default = 0
|
|
|
|
}
|
|
|
|
|
|
|
|
variable expected-mon-count {
|
|
|
|
type = number
|
|
|
|
default = 3
|
|
|
|
}
|