On 5/21/2010 5:33 PM, Ashley Penney wrote:
As as an example for what I do in nodes.pp and what is hard for me to do
is things like this:
node "hlslinutil1.law.harvard.edu" {
$ip = "10.241.209.118"
$broadcast = "10.241.209.255"
$netmask = "255.255.255.0"
$network = "10.241.209.0"
$gateway = "10.241.209.1"
$hlsenvironment = "testing"
# Must be before other modules!
nagios::target{ "$fqdn": notification_period => "24x7" }
include nagios
defaultclass{$environment:}
include commvault
include puppetmaster
include splunk4::client
include foreman
include foreman::passenger
include mcollective::client
include users::developers
include users::cms
filemounts::nfsmount { "/home":
location => "10.241.209.97:/vol/nfspub/home",
}
filemounts::nfsmount { "/mnt/media":
location => "10.241.209.96:/vol/media",
}
filemounts::nfsmount { "/srv/www":
location => "10.241.209.97:/vol/nfsmaster/sun1www",
}
filemounts::nfsmount { "/mnt/cms":
location => "10.241.209.97:/vol/nfspub/www/cms",
}
filemounts::nfsmount { "/mnt/testcms":
location => "10.241.209.97:/vol/nfspub/www/testcms",
}
filemounts::nfsmount { "/share":
location => "10.241.209.97:/vol/nfsmaster/share",
}
}
The biggest issue for me is finding a way to represent these
filemount::nfsmount defines. They are not easily determined by any
automated source and I'm restricted to just putting them in place by
hand. There are other defines above that can be converted into classes
easily, but things like this that belong to a specific node represent a
hassle. I either have to find a way to use variables and setup a loop
over these variables, or make a giant class with all these seperated by
if $hostname, or even a class per node. I just bring this up as an
example of something difficult to do with the existing external node
classifier system.
A simple first step would be to convert all nodes to classes and let the
classifier just include $fqdn. Then you can start moving information bit
by bit into the classifier and in the end you are left with the
resources that really have to be per-node.
Best Regards, David
--
dasz.at OG Tel: +43 (0)664 2602670 Web: http://dasz.at
Klosterneuburg UID: ATU64260999
FB-Nr.: FN 309285 g FB-Gericht: LG Korneuburg
--
You received this message because you are subscribed to the Google Groups "Puppet
Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.