diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-09-06 13:42:49 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-09-06 13:42:49 +0000 |
commit | 1129b7cc324b4ba6bd9fde06cb1ee1078f4ce5ca (patch) | |
tree | 2230a6f29a0274e2ff4d77f8c70f669daa14a3ed /lib/facter | |
parent | c7c0c4a297c46651806219fd232254aa163e2029 (diff) | |
parent | 784a2aa0c8180da9e229df155c4f13c3cdddf962 (diff) |
Merge "Map ctlplane network to management fqdn"
Diffstat (limited to 'lib/facter')
-rw-r--r-- | lib/facter/alt_fqdns.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/facter/alt_fqdns.rb b/lib/facter/alt_fqdns.rb index 89c4b6a..216beef 100644 --- a/lib/facter/alt_fqdns.rb +++ b/lib/facter/alt_fqdns.rb @@ -31,3 +31,14 @@ end end end +# map ctlplane network to management fqdn +Facter.add('fqdn_ctlplane') do + setcode do + hostname_parts = [ + Facter.value(:hostname), + 'management', + Facter.value(:domain), + ].reject { |part| part.nil? || part.empty? } + hostname_parts.join(".") + end +end |