fine tuning the landscape bits

This commit is contained in:
Arif Ali 2024-06-05 18:20:18 +01:00
parent 92995e5ebc
commit 62831a4e81
Signed by: arif
GPG Key ID: 369608FBA1353A70
2 changed files with 28 additions and 40 deletions

View File

@ -31,6 +31,33 @@ variable apt_mirror {
default = "192.168.1.12"
}
variable "all_services" {
type = list(string)
default = [
"easyrsa",
"etcd",
"ceilometer",
"ceph-mon",
# "ceph-osd",
"ceph-radosgw",
"cinder",
"glance",
"gnocchi",
"heat",
"keystone",
"memcached",
"mysql-innodb-cluster",
"neutron-api",
"neutron-gateway",
"nova-compute-kvm",
"nova-cloud-controller",
"openstack-dashboard",
"placement",
"rabbitmq-server",
"vault",
]
}
######## vars unlikely to be changed
variable "machines" {
type = list(object({

View File

@ -72,47 +72,8 @@ resource "juju_application" "landscape-client" {
}
}
variable "openstack_services" {
type = list(string)
default = [
"ceilometer",
"ceph-mon",
"ceph-radosgw",
"cinder",
"glance",
"gnocchi",
"heat",
"keystone",
"memcached",
"mysql-innodb-cluster",
"neutron-api",
"neutron-gateway",
"nova-cloud-controller",
"openstack-dashboard",
"placement",
"rabbitmq-server",
"vault",
]
}
resource "juju_integration" "landscape-nova-compute-kvm" {
model = var.model-name
application {
name = juju_application.landscape-client.name
endpoint = "container"
}
application {
name = juju_application.nova-compute-kvm.name
endpoint = "juju-info"
}
}
resource "juju_integration" "landscape-client-integration" {
for_each = toset(var.openstack_services)
for_each = toset(var.all_services)
model = var.model-name