amanda: Confine facts to linux
This commit is contained in:
parent
e8e9a2a54e
commit
d497fb05d1
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
|||
Facter.add('amanda_serverkey') do
|
||||
confine :kernel => :linux
|
||||
setcode do
|
||||
begin
|
||||
match = File.read('/var/lib/amanda/.ssh/id_rsa_amdump.pub')[/^ssh-rsa ([^ ]+)/, 1]
|
||||
|
@ -13,6 +14,7 @@ Facter.add('amanda_serverkey') do
|
|||
end
|
||||
|
||||
Facter.add('amanda_clientkey') do
|
||||
confine :kernel => :linux
|
||||
setcode do
|
||||
begin
|
||||
match = File.read('/var/lib/amanda/.ssh/id_rsa_amrecover.pub')[/^ssh-rsa ([^ ]+)/, 1]
|
||||
|
|
Loading…
Add table
Reference in a new issue