Is there any ready way / custom fact / etc to be able to have Puppet respond differently if a given host and port isn't available from the managed system?
For example I have some products that use multiple directories for reading user information.
Generally I'd want the fastest and closest server listed first. If it isn't available I'd like my module to be able to rewrite the config file to go to the lower entries on the list.