Displaying 1 result from an estimated 1 matches for "myfqn".
Did you mean:
myfn
2009 Aug 28
0
string downcase or how to use downcase an hostname in puppet?
...be overwritten every 30 minutes
#
NETWORKING=yes
<% if lsbmajdistrelease == "5" %>
NETWORKING_IPV6=no
<% end %>
HOSTNAME="<%= myfqdn %>"
Class used :
$ cat rh-hostname.pp
class hostnameclean {
#$myfqdn = downcase ($fqdn)
$fqdn.downcase => $myfqn
case $operatingsystem {
"Redhat" : {
file { "/etc/sysconfig/network" :
ensure => present,
path => "/etc/sysconfig/network",
mode => 0644,...