Hi,
>> load host.fqdn.pp to find a node
it will search hostname and fqdn but not hostname.fqdn.
This all sounds like a lot of work to me. How do you intend to manage changes
that effect 300 nodes?
What I do is that I create a custom that assigns a role to certain node types.
I then have a roles class that queries that fact and goes off and load whatever
it needs (from general to specific).
So all I need in nodes.pp is:
node default { include roles }
Then in roles module I add users, sort of distros and load specific modules
with the data coming in from hiera.
I'm not seeing a need to make it more complicated than that in you scenario.
But you may have your valid reasons.
Cheers
Den
On 03/05/2012, at 4:28, Christopher Wood <[email protected]> wrote:
> At the bottom of my site.pp I have:
>
> import "nodes/*"
>
> I haven't heard of this autoload thing, but then I'm newish.
>
> On Wed, May 02, 2012 at 11:06:17AM -0700, Philip Brown wrote:
>> I vaguely recall some kind of reference mentioning that as a fallback,
>> puppet master would attempt to load host.fqdn.pp to find a node
>> definition. Is that a false memory?
>> In practice, it does not seem to do that.
>>
>> Along those lines, is it possible to MAKE it do that?
>>
>> I've tried
>>
>> import "nodes/$hostname.pp"
>> but puppet doesnt seem happy with that.
>> I'd like to keep things simple and file-based, rather than going to a
>> separate external database or LDAP server. So yes I know about those, but
>> would prefer not to go there.
>> I prefer the "one service, one process to babysit" methodology :)
>>
>> The closest method I've found so far, is creating my own custom *class*,
>> autohost, and then using
>>
>> include "autohost::$hostname"
>>
>> Comments on this?
>>
>> I'm not sure what the effective difference between nodes and classes are,
>> at this point.Other than the fact that you can wildcard node definitions,
>> which is nice. Seems like they are practically equivalent. both can
>> "inherit". both can include other classes. etc, etc.
>>
>> Currently, I'm liking the idea of 300 separate files, one per host, under
>> autohost, where only ONE gets loaded... vs the old brute-force method of
>> import "nodes/*.pp"
>>
>> It disturbs my sense of efficiency to read in 300 files, when 299 of them
>> will be unneeded.
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Puppet Users" group.
>> To view this discussion on the web visit
>> [1]https://groups.google.com/d/msg/puppet-users/-/QF_o0kR7w5IJ.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected].
>> For more options, visit this group at
>> http://groups.google.com/group/puppet-users?hl=en.
>>
>> References
>>
>> Visible links
>> 1. https://groups.google.com/d/msg/puppet-users/-/QF_o0kR7w5IJ
>
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/puppet-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.