Skip to content
Snippets Groups Projects
Commit b4c889e7 authored by Filip Strömbäck's avatar Filip Strömbäck
Browse files

Fixed issues notified by Thomas.

parent c311f911
No related branches found
No related tags found
2 merge requests!50Fix: Puppet Defining "data_provider": "hiera" in metadata.json is deprecated....,!40Merge from devel. Commits related to RHEL9 upgrade and pdk cleanup.
Pipeline #103200 passed
......@@ -29,16 +29,17 @@ class aes::auth (
# Pick the right keytab for the current environment. We use the fqdn rather than
# $environment since the keys are tied to the domain name rather than what
# environment the machine is configured in.
if $facts[fqdn] == 'aes.edu.liu.se' {
if $facts[networking][fqdn] == 'aes.edu.liu.se' {
# The AD service account for this key is: ida_sys002_srv
$auth_keytab_data = $keytab_production
$server_type = 'production'
} elsif $facts[fqdn] == 'aes-devel.edu.liu.se' {
} elsif $facts[networking][fqdn] == 'aes-devel.edu.liu.se' {
# The AD service account for this key is: ida_sys004_srv
$auth_keytab_data = $keytab_devel
$server_type = 'devel'
} else {
$auth_keytab_data = undef
$server_type = 'devel'
}
# Note: We rely on Boost being installed by the broker. It seems Puppet does not like
......
......@@ -12,9 +12,9 @@ class aes::auth_keydb {
$keydb_service = 'aes_auth_keydb'
# Figure out which certificate to use based on the hostname.
if $facts[fqdn] == 'aes.edu.liu.se' {
if $facts[networking][fqdn] == 'aes.edu.liu.se' {
$server_type = 'production'
} elsif $facts[fqdn] == 'aes-devel.edu.liu.se' {
} elsif $facts[networking][fqdn] == 'aes-devel.edu.liu.se' {
$server_type = 'devel'
} else {
$server_type = undef
......
......@@ -22,9 +22,9 @@ class aes::broker {
}
# Figure out which certificate to use based on the hostname.
if $facts[fqdn] == 'aes.edu.liu.se' {
if $facts[networking][fqdn] == 'aes.edu.liu.se' {
$server_type = 'production'
} elsif $facts[fqdn] == 'aes-devel.edu.liu.se' {
} elsif $facts[networking][fqdn] == 'aes-devel.edu.liu.se' {
$server_type = 'devel'
} else {
$server_type = undef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment