summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2008-08-13 10:06:28 +1000
committerJames Turnbull <james@lovedthanlost.net>2008-08-13 10:34:19 +1000
commit18dda20b4167cb24ecd0d8b2029aaabb60b79936 (patch)
tree92fc608fd51b5b2f0f9aa869f5bd24a6f865f78b /lib
parentab4cb6a6acaa6f045bdceb93eb105617d42b23b2 (diff)
downloadpuppet-18dda20b4167cb24ecd0d8b2029aaabb60b79936.tar.gz
puppet-18dda20b4167cb24ecd0d8b2029aaabb60b79936.tar.xz
puppet-18dda20b4167cb24ecd0d8b2029aaabb60b79936.zip
Fixed $1456 - add proxy configuration to yum repo
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/type/yumrepo.rb20
1 files changed, 18 insertions, 2 deletions
diff --git a/lib/puppet/type/yumrepo.rb b/lib/puppet/type/yumrepo.rb
index d19b5a470..15e031945 100644
--- a/lib/puppet/type/yumrepo.rb
+++ b/lib/puppet/type/yumrepo.rb
@@ -346,7 +346,23 @@ module Puppet
newvalue(%r{[1-9][0-9]?}) { }
end
-
-
+ newproperty(:proxy, :parent => Puppet::IniProperty) do
+ desc "URL to the proxy server for this repository.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ # Should really check that it's a valid URL
+ newvalue(/.*/) { }
+ end
+
+ newproperty(:proxy_username, :parent => Puppet::IniProperty) do
+ desc "Username for this proxy.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(/.*/) { }
+ end
+
+ newproperty(:proxy_password, :parent => Puppet::IniProperty) do
+ desc "Password for this proxy.\n#{ABSENT_DOC}"
+ newvalue(:absent) { self.should = :absent }
+ newvalue(/.*/) { }
+ end
end
end