I'm trying to write a custom fact for Puppet, but I have next to no Ruby 
experience. I think what I'm trying to do is straightforward, but because 
of Facter's key => value pairs model, it's kind of difficult.

Each hosts I want the fact for has websites in /var/www/html/ - I want to 
be able to do the following:

Have a fact called "websites" that will tell me how many folders there are 
under /var/www/html

Have a list of facts called website_1, website_2, website_3 which will tell 
me the names of these sites. Either that or have an array (if that's even 
possible) called website_names which will then list all the websites under 
that key.

If possible, I'd like the fact to be able to figure out how many websites 
there are with the original "websites" fact and limit the number of 
websites underneath.

Any help gratefully appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/puppet-users/-/XBkAAkifbZ4J.
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