I am creating a manifest to get an Agent's partition name.
The fact $partitions
shows the detail of the partition info.
{"xvda1"=>{"uuid"=>"d1697425-49d0-4c9f-9901-5f9260be8196", "size"=>"83859300", "mount"=>"/", "label"=>"cloudimg-rootfs", "filesystem"=>"ext4"}}
But, I just want to get the name part (xvda1
) and use it as a variable for a configuration file.
Is there any way to filter the output in Puppet?