On 9/20/12 6:33 AM, Andrey Kononov wrote:
> Hi all, I`m interesting to configure my service depending on count hard
> drives but facter haven`t any variable about disks, may be you now how i
> can do it ? For example I have 5 types of servers with 3, 4, 6, 8 disks
> if i have 3 disks I wan`t create config of my service with parameter
> "disks=3" if i have 4 disks than disks must be equal 4 etc. Thanks.

You could write a custom fact[1] that returns the number of disks.

[1] - http://docs.puppetlabs.com/guides/custom_facts.html

-g

-- 
Garrett Honeycutt

206.414.8658
http://puppetlabs.com

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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.

Reply via email to