Re: [Puppet Users] Puppet and disks

34 views
Skip to first unread message

Garrett Honeycutt

unread,
Sep 20, 2012, 10:45:46 AM9/20/12
to puppet...@googlegroups.com
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

Andrey Kononov

unread,
Sep 21, 2012, 12:29:07 AM9/21/12
to puppet...@googlegroups.com
четверг, 20 сентября 2012 г., 18:45:54 UTC+4 пользователь Garrett Honeycutt написал:
Reply all
Reply to author
Forward
0 new messages