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
Branches
No related tags found
No related merge requests found
...@@ -29,16 +29,17 @@ class aes::auth ( ...@@ -29,16 +29,17 @@ class aes::auth (
# Pick the right keytab for the current environment. We use the fqdn rather than # 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 since the keys are tied to the domain name rather than what
# environment the machine is configured in. # 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 # The AD service account for this key is: ida_sys002_srv
$auth_keytab_data = $keytab_production $auth_keytab_data = $keytab_production
$server_type = '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 # The AD service account for this key is: ida_sys004_srv
$auth_keytab_data = $keytab_devel $auth_keytab_data = $keytab_devel
$server_type = 'devel' $server_type = 'devel'
} else { } else {
$auth_keytab_data = undef $auth_keytab_data = undef
$server_type = 'devel'
} }
# Note: We rely on Boost being installed by the broker. It seems Puppet does not like # Note: We rely on Boost being installed by the broker. It seems Puppet does not like
......
...@@ -12,9 +12,9 @@ class aes::auth_keydb { ...@@ -12,9 +12,9 @@ class aes::auth_keydb {
$keydb_service = 'aes_auth_keydb' $keydb_service = 'aes_auth_keydb'
# Figure out which certificate to use based on the hostname. # 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' $server_type = 'production'
} elsif $facts[fqdn] == 'aes-devel.edu.liu.se' { } elsif $facts[networking][fqdn] == 'aes-devel.edu.liu.se' {
$server_type = 'devel' $server_type = 'devel'
} else { } else {
$server_type = undef $server_type = undef
......
...@@ -22,9 +22,9 @@ class aes::broker { ...@@ -22,9 +22,9 @@ class aes::broker {
} }
# Figure out which certificate to use based on the hostname. # 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' $server_type = 'production'
} elsif $facts[fqdn] == 'aes-devel.edu.liu.se' { } elsif $facts[networking][fqdn] == 'aes-devel.edu.liu.se' {
$server_type = 'devel' $server_type = 'devel'
} else { } else {
$server_type = undef $server_type = undef
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment