Re: [Puppet Users] Puppet filters

2022-12-18 Thread Nir Fishler
Perfect! Thanks Martin. On Sunday, December 18, 2022 at 10:35:59 AM UTC+2 Martin Alfke wrote: > Hi Nir, > > do you only need the capacity from the root file system? > > You can access the data hash directly: > $facts['mountpoints']['/']['capacity'] > > hth, > Martin > > > > On 18. Dec 2022, at

Re: [Puppet Users] Puppet filters

2022-12-18 Thread Martin Alfke
Hi Nir, do you only need the capacity from the root file system? You can access the data hash directly: $facts['mountpoints']['/']['capacity'] hth, Martin > On 18. Dec 2022, at 08:44, Nir Fishler wrote: > > Hey Guys, > > I'm trying to pull data from an array using the 'mountpoints' facter

[Puppet Users] Puppet filters

2022-12-17 Thread Nir Fishler
Hey Guys, I'm trying to pull data from an array using the 'mountpoints' facter $root_partition = $mountpoints.filter |$values| { $values[0] =~ "/$" } the results I get are: Notice: {/ => {device => /dev/mapper/ubuntu--vg-ubuntu--lv, filesystem => ext4, options => [rw, relatime], size_bytes =>