Skip to content

Commit 28cc45d

Browse files
committed
Do not require target/certname == hostname
This commit removes the hard check that target names be equal to hostnames. This commit is in support of other changes added to allow the use of certnames which are not the hostname.
1 parent c02b0fb commit 28cc45d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plans/action/install.pp

+4-1
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,10 @@
115115
# the configured hostname, and that all systems return the same platform
116116
$precheck_results.each |$result| {
117117
if $result.target.name != $result['hostname'] {
118-
fail_plan("Hostname / DNS name mismatch: target ${result.target.name} reports '${result['hostname']}'")
118+
warning(@("HEREDOC"))
119+
WARNING: Target name / hostname mismatch: target ${result.target.name} reports ${result['hostname']}
120+
Certificate name will be set to target name. Please ensure target name is correct and resolvable
121+
|-HEREDOC
119122
}
120123
if $result['platform'] != $platform {
121124
fail_plan("Platform mismatch: target ${result.target.name} reports '${result['platform']}; expected ${platform}'")

0 commit comments

Comments
 (0)