hi all,

I am wondering if I would like to retrieve the mount points values from the 
facter. From the facter -p, I can see that I do have the information. e.g.

partitions => {
"sda1"=>{
"mount"=>"/boot", 
"uuid"=>"4e5014d1-080a-4182-aa89-bc83159b85fb", 
"filesystem"=>"ext4", 
"size"=>"614400"}, 
"sda2"=>{
"mount"=>"/", 
"uuid"=>"edbab169-7983-4e38-9c71-24f0f88cccaa", 
"filesystem"=>"ext4", 
"size"=>"18257920"}, 
"sda3"=>{
"uuid"=>"b9674244-6686-49b0-b778-91052d78767f", 
"filesystem"=>"swap", 
"size"=>"2097152"}
}

And $mount is the one that I am looking for. Question: how can i loop 
through the $partitions data structure and harvest $mount and detect if 
there is a mount point call "/data". thanks!

-- 
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 puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/6fcab309-c77f-4f3c-935b-e8bb82a5b292%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to