thank you John,
changed to line definition, easier to read.
I found one node listed twice, the last one.
in this case reg-ex is easy to setup, the names are inventory numbers. Not
all PCs have the same software installed.
Regards,
Romain
On Wednesday, 15 May 2013 16:04:53 UTC+2, jcbollinger wrote:
>
>
>
> On Wednesday, May 15, 2013 6:33:59 AM UTC-5, Romain Gales wrote:
>>
>> Hi all,
>>
>> I have strange thing with a node definition.
>> i have:
>> node 'xxx1.sub.domain.com','xxx2.sub.domain.com'.......... inherits
>> default
>> {
>> include .....
>> }
>> the node line now has 1172 characters (+-50 hostnames). I can add any
>> node name but the pc only gets the default catalog, but when I change the
>> last node name to any other hostname new hostname it gets the catalog?
>> so is there a limitation?
>>
>> I am using 2.7.17.
>>
>>
> There is no intentional design limitation there, but you could be tickling
> a bug in Puppet or its underlying Ruby.
>
> Do note that Puppet manifests are stream-based, not line-based, so you
> don't have to put all the node names on the same line. Personally, I
> prefer to write one per line:
>
> node
> 'xxx1.sub.domain.com',
> 'xxx2.sub.domain.com',
> ...
> 'xxxN.sub.domain.com'
> inherits default {
> ...
> }
>
> If there is some kind of underlying line-length related bug, then the
> multiline format might work around it.
>
> You may also find that regex-based node matching would simplify your node
> declarations. For example, you could conceivably replace the 50-node
> explicit node list with something like:
>
> node /.*\.sub\.domain\.com/ inherits default {
> ...
> }
>
>
> John
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.