summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-22 19:52:50 +0000
committerajax <ajax@980ebf18-57e1-0310-9a29-db15c13687c0>2006-09-22 19:52:50 +0000
commit515f3ccf6c9a7993bba61cdc358a7101c158c1aa (patch)
tree2f3588d41eb3ca5b36f231d25a1d636c6089cb7a /lib/puppet
parent7b5604b200048e0314f408055e7bb54876c4e0ce (diff)
downloadpuppet-515f3ccf6c9a7993bba61cdc358a7101c158c1aa.tar.gz
puppet-515f3ccf6c9a7993bba61cdc358a7101c158c1aa.tar.xz
puppet-515f3ccf6c9a7993bba61cdc358a7101c158c1aa.zip
Harded-coded pathname to OSX's ssh_known_hosts as a work-around until the ssh pathnames are user-configurable.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@1668 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'lib/puppet')
-rwxr-xr-xlib/puppet/type/parsedtype/sshkey.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/puppet/type/parsedtype/sshkey.rb b/lib/puppet/type/parsedtype/sshkey.rb
index d12d4c697..d8fb6cda3 100755
--- a/lib/puppet/type/parsedtype/sshkey.rb
+++ b/lib/puppet/type/parsedtype/sshkey.rb
@@ -61,7 +61,13 @@ module Puppet
@instances = []
# FIXME This should be configurable.
- @path = "/etc/ssh/ssh_known_hosts"
+ # Adding at least hard-coded alternative placement for Darwin - ajax
+ case Facter.value("operatingsystem")
+ when "Darwin":
+ @path = "/etc/ssh_known_hosts"
+ else
+ @path = "/etc/ssh/ssh_known_hosts"
+ end
@fields = [:name, :type, :key]
@filetype = Puppet::FileType.filetype(:flat)