1 # Get an array of all postgresql clusters on this system
4 # Copyright 2019, Peter Palfrader
6 Facter.add(:postgresql_clusters) do
10 IO.popen(['pg_lsclusters', '-h']) do |f|
12 (version, cluster, port, status, owner, datadir, logfile, _) = line.split()
16 'port' => port.to_i(),
17 'status' => status.split(',').product([true]).to_h(),