Please review pull request #526: yumrepo module adds sslverify, sslclientcert, and sslclientkey options opened by (tdawson)
Description:
This adds the sslverify, sslclientcert, and sslclientkey options to the yumrepo module.
These options are needed when using yum repositories that require ssl certificates for authentication.
- Opened: Thu Feb 23 15:53:16 UTC 2012
- Based on: puppetlabs:master (70677b25f85bb9b0721e327770c5fb2c18208a59)
- Requested merge: tdawson:patch-1 (09abf19c1548bf87e7bedcf0f970eff5b862217c)
Diff follows:
diff --git a/lib/puppet/type/yumrepo.rb b/lib/puppet/type/yumrepo.rb
index b6120e4..9f56a55 100644
--- a/lib/puppet/type/yumrepo.rb
+++ b/lib/puppet/type/yumrepo.rb
@@ -357,5 +357,26 @@ def flush
newvalue(:absent) { self.should = :absent }
newvalue(/.*/) { }
end
+
+ newproperty(:sslverify, :parent => Puppet::IniProperty) do
+ desc "Whether to verify SSL certificates/hosts at all.
+ Possible values are '0', and '1'. \n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(%r{(0|1)}) { }
+ end
+
+ newproperty(:sslclientcert, :parent => Puppet::IniProperty) do
+ desc "Path to the SSL client certificate yum should use
+ to connect to repos/remote sites.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(/.*/) { }
+ end
+
+ newproperty(:sslclientkey, :parent => Puppet::IniProperty) do
+ desc " Path to the SSL client key yum should use to connect
+ to repos/remote sites.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(/.*/) { }
+ end
end
end
-- You received this message because you are subscribed to the Google Groups "Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to [email protected].
For more options, visit this group at http://groups.google.com/group/puppet-dev?hl=en.
