Alexander Swen
unread,Jan 26, 2012, 10:55:12 AM1/26/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to puppet...@googlegroups.com
hi,
in the logs of our 2.7.10 puppet master we find messages like these:
Dynamic lookup of $functie at /etc/puppet/manifests/server_classes.pp:52 is deprecated. Support will be removed in Puppet 2.8. Use a fully-qualified variable name (e.g., $classname::variable) or parameterized classes.
However, I'm a bit worried that a key functionality will be removed in 2.8: we set a param/value in every node telling the node what it's funtion is and use that in a variety of manifests to decide how to configure the server.
we use something like:
node servera {
$function = 'webserver'
include function_dependent_services
}
node serverb {
$function = 'dbserver'
include function_dependent_services
}
class function_dependent_services {
include iptables
include motd
}
class iptables {
file {
"/etc/iptables/cfg-firewall":
content => template("iptables/cfg-firewall.erb");
}
}
and then, somewhere in the erb we evaluate <%= function %>
will this be broken in 2.8?
and, if yes: how should we tell the erb the param that changes for a lot of nodes?
or should I file this as a bug for v2.8?
please help us out, thanks in advance
Alex