I'm a bit confused over how to access some Facter V3 information. Using Open Puppet and Facter version => 3.1.4
Specifically I want to access the value in memory -> system -> available_bytes to use in a calculation. I'm just missing something and nothing is working correctly for me.
$my_value = "The system available bytes value" ???
memory => {
swap => {
available => "32.00 GiB",
available_bytes => 34359734272,
capacity => "0%",
total => "32.00 GiB",
total_bytes => 34359734272,
used => "0 bytes",
used_bytes => 0
},
system => {
available => "28.39 GiB",
available_bytes => 30487240704,
capacity => "9.41%",
total => "31.34 GiB",
total_bytes => 33653538816,
used => "2.95 GiB",
used_bytes => 3166298112
}
}
↧