Skip to content

Commit

Permalink
Merge pull request #21 from AxonIQ/20-use-autocluster-only-when-there…
Browse files Browse the repository at this point in the history
…-is-a-license

Use autocluster if a license file is provided
  • Loading branch information
checco authored Aug 28, 2024
2 parents 5a28eb4 + fe24afe commit ab5d89f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

```terraform
module "as_demo" {
source = "[email protected]:AxonIQ/terraform-axonserver-k8s.git?ref=v1.10"
source = "[email protected]:AxonIQ/terraform-axonserver-k8s.git?ref=v1.11"
axonserver_release = "2024.1.1"
java_version = "17"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.

#axoniq.axonserver.autocluster.first=${first_name}.${namespace}.svc.cluster.local
#axoniq.axonserver.autocluster.contexts=_admin,default
%{ if console_authentication == "" }
axoniq.axonserver.autocluster.first=${first_name}.${namespace}.svc.cluster.local
axoniq.axonserver.autocluster.contexts=_admin,default

axoniq.axonserver.enterprise.licenseDirectory=./license
%{ endif }

axoniq.axonserver.domain=${public_domain}
axoniq.axonserver.internal-domain=${namespace}.svc.cluster.local
Expand Down
13 changes: 7 additions & 6 deletions configmap.tf
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@ locals {
}

data "template_file" "axonserver_properties" {
template = file("${path.module}/conf/axonserver.properties.tmpl")
template = file("${path.module}/conf/axonserver.properties.tftpl")

vars = {
first_name = "${var.cluster_name}-1"
public_domain = var.public_domain
namespace = kubernetes_namespace.as_demo.id
internal_token = random_uuid.internal_token.result
devmode_enabled = var.devmode_enabled
first_name = "${var.cluster_name}-1"
public_domain = var.public_domain
namespace = kubernetes_namespace.as_demo.id
internal_token = random_uuid.internal_token.result
devmode_enabled = var.devmode_enabled
console_authentication = var.console_authentication
}
}

Expand Down

0 comments on commit ab5d89f

Please sign in to comment.