Skip to content

Commit

Permalink
feat: added example configurations
Browse files Browse the repository at this point in the history
Signed-off-by: leonsteinhaeuser <leon.steinhaeuser@tagesspiegel.de>
  • Loading branch information
leonsteinhaeuser committed Feb 2, 2024
1 parent 264f38b commit fd17188
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,7 @@ override.tf.json
# Ignore CLI configuration files
.terraformrc
terraform.rc

# ignore examples terraform dependency management files and directories
examples/.terraform
examples/.terraform.lock.hcl
39 changes: 39 additions & 0 deletions examples/with_openstack_subnet_cidr.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module "with_openstack_subnet_cidr" {
source = "../"

cluster_name = "example-cluster"
openstack_application_credential_id = "abc"
openstack_application_credential_secret = "abc"

openstack_network_config = {
subnet_cidr = "10.0.0.0/24"
}

cluster_rbac = {
"name" = [ {
kind = "value"
name = "value"
} ]
}

syseleven_auth_realm = "example"

metakube_project_id = "example"

node_pools = {
"example" = {
node_config = {
flavor = "example"
use_floating_ip = false
}
os_config = {
auto_update = false
image = "example"
}
replicas = {
max = 0
min = 0
}
}
}
}
40 changes: 40 additions & 0 deletions examples/with_opentstack_subnet_id.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
module "with_opentstack_subnet_id" {
source = "../"

cluster_name = "example-cluster"
openstack_application_credential_id = "abc"
openstack_application_credential_secret = "abc"

openstack_network_config = {
network_name = "example"
subnet_id = "example"
}

cluster_rbac = {
"name" = [{
kind = "value"
name = "value"
}]
}

syseleven_auth_realm = "example"

metakube_project_id = "example"

node_pools = {
"example" = {
node_config = {
flavor = "example"
use_floating_ip = false
}
os_config = {
auto_update = false
image = "example"
}
replicas = {
max = 0
min = 0
}
}
}
}

0 comments on commit fd17188

Please sign in to comment.