/usr/share/puppet/modules.available/camptocamp-openssl/lib/puppet/type/ssl_pkey.rb is in puppet-module-camptocamp-openssl 1.5.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | require 'pathname'
Puppet::Type.newtype(:ssl_pkey) do
desc 'An SSL private key'
ensurable
newparam(:path, :namevar => true) do
desc 'The path to the key'
validate do |value|
path = Pathname.new(value)
unless path.absolute?
raise ArgumentError, "Path must be absolute: #{path}"
end
end
end
newparam(:authentication) do
desc "The authentication algorithm: 'rsa' or 'dsa'"
newvalues /[dr]sa/
defaultto :rsa
end
newparam(:size) do
desc 'The key size'
newvalues /\d+/
defaultto 2048
end
newparam(:password) do
desc 'The optional password for the key'
end
end
|