Sha256: a2d97557efacdf82c7f0925da2e7e8edbb07ddeb51916d8f1ed8e455e1b7e41e
Contents?: true
Size: 917 Bytes
Versions: 6
Compression:
Stored size: 917 Bytes
Contents
module PoolParty module Resources =begin rdoc == Ssh Key The sshkey resource specifies an ssh key that should be distributed on all the nodes == Usage has_sshkey(:key => '...') do # More options. # This block is optional end == Options * <tt>key</tt> The key content for the ssh key * <tt>target</tt> The location of the ssh key == Examples has_sshkey(:key => "ABIGLONGSTRINGOFDIGETS", :target => "/root/.ssh/key_file") =end class Sshkey < Resource dsl_methods(:key, :keypath, :name) default_options(:type => 'rsa') def initialize(opts={}, extra_opts={}, &block) super(opts, extra_opts, &block) @key = Key.new(keypath ? keypath : nil) self.key = @key.content end def enctype(i=nil) i ? self.type = i : type end end end end
Version data entries
6 entries across 6 versions & 1 rubygems