Sign in
apache
/
puppet-backuppc
/
e5fcb2d12209549e3077b4858120d9295a974152
/
.
/
lib
/
facter
/
backuppc_hosts.rb
blob: 44db8ac982efb08afd7bb5a0f2cd004436e1b7b9 [
file
] [
log
] [
blame
]
Facter
.
add
(
'backuppc_hosts'
)
do
setcode
do
if
File
.
exists
?(
'/etc/backuppc/hosts'
)
data
=
File
.
open
(
'/etc/backuppc/hosts'
).
read
.
split
(
/\n/
)
data
.
shift
data
.
map
{|
it
|
it
.
split
(
' '
)[
0
]
}
end
end
end