Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe83c83

Browse files
xbezdickpurpleidea
authored andcommitted
Add support for setting ipa host ipaddress
1 parent 46aac87 commit fe83c83

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

manifests/server.pp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
class ipa::server(
1919
$hostname = $::hostname,
2020
$domain = $::domain,
21+
$ipa_ipaddress = '',
2122
$realm = '', # defaults to upcase($domain)
2223
$vip = '', # virtual ip of the replica master host
2324
$peers = {}, # specify the peering topology by fqdns
@@ -499,6 +500,14 @@
499500
},
500501
}
501502

503+
$args12 = $ipa_ipaddress ? {
504+
'' => '',
505+
default => $dns ? {
506+
true => "--ip-address=${ipa_ipaddress} --no-host-dns",
507+
default => "--ip-address=${ipa_ipaddress}",
508+
},
509+
}
510+
502511
$arglist = [
503512
"${args01}",
504513
"${args02}",
@@ -511,6 +520,7 @@
511520
"${args09}",
512521
"${args10}",
513522
"${args11}",
523+
"${args12}",
514524
]
515525
#$args = inline_template('<%= arglist.delete_if {|x| x.empty? }.join(" ") %>')
516526
$args = join(delete($arglist, ''), ' ')

0 commit comments

Comments
 (0)