Sign in
apache
/
puppet-backuppc
/
e2836441fcb7abd366e6eb15e5eda509c333c6b7
/
.
/
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