This message was deleted.
# puppet
s
This message was deleted.
c
so that should also work with a selector statement?
b
I'm not sure if you can use
in
in a selector statement
c
the docs say this should work, though, so I'm trying it now:
Copy code
$activate_ensure = $elligible_hosts.any |$host| { $facts[networking][fqdn] == $host } ? {
    true => file,
    default => absent,
  }
yep, looks like that did it! just have to remember that in this case it evaluates to a bool