Displaying 1 result from an estimated 1 matches for "hostnameclean".
Did you mean:
hostname_len
2009 Aug 28
0
string downcase or how to use downcase an hostname in puppet?
....erb
# WARNING this file is autogenered by puppet. Any change there will
# 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/...