Puppet: System Administration Automated

Support

Ticket #1137: diff2

File diff2, 459 bytes (added by whaymand, 10 months ago)

Better patch switching hostname to fqdn

Line 
1 --- master.rb.ORIG      2008-03-18 08:16:26.000000000 +0000
2 +++ master.rb   2008-03-18 08:20:34.000000000 +0000
3 @@ -77,7 +77,7 @@
4          # Manipulate the client name as appropriate.
5          def clientname(name, ip, facts)
6              # Always use the hostname from Facter.
7 -            client = facts["hostname"]
8 +            client = facts["fqdn"]
9              clientip = facts["ipaddress"]
10              if Puppet[:node_name] == 'cert'
11                  if name