-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Brad wrote:
> On Jun 4, 4:26 pm, Thomas Bellman <[email protected]> wrote:
>> I would probably do it with something like this:
>>
>>      class node::compute { ... }
>>      class node::database { ... }
>>
>>      node default
>>      {
>>          include "node::$nodetype"
>>      }
>>
>> and get myself a custom fact 'nodetype' that gets set in some suitable
>> way.
> 
> Thanks for the suggestion. I wish there was a simpler approach, like
> specifying the "type" on the puppetd command-line. In large server
> farms it seems like it would be a really common need to specify nodes
> by purpose rather than machine name.

What about tags?

http://reductivelabs.com/trac/puppet/wiki/UsingTags

Also Facter 1.5.5+ has some dedicated EC2 facts much like those at:

http://reductivelabs.com/trac/puppet/wiki/Recipes/AmazonEC2

Regards

James Turnbull

- --
Author of:
* Pro Linux Systems Administration
(http://www.amazon.com/gp/product/1430219122/)
* Pulling Strings with Puppet
(http://www.amazon.com/gp/product/1590599780/)
* Pro Nagios 2.0
(http://www.amazon.com/gp/product/1590596099/)
* Hardening Linux
(http://www.amazon.com/gp/product/1590594444/)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoopl8ACgkQ9hTGvAxC30Dc9QCginKEpoDmIj1On6AOriOp/MRZ
ke0An3e2tzP8Vo8CrI4d3wbj46RIaUc2
=AUIw
-----END PGP SIGNATURE-----

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to