summaryrefslogtreecommitdiffstats
path: root/lib/puppet
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2008-02-23 19:09:29 -0500
committerLuke Kanies <luke@madstop.com>2008-02-23 19:09:29 -0500
commit0323986acd3a288e77c54b5fde20b280fa92b90a (patch)
tree9b12a0bc61c2918beeafbd9fbe685304236c9d62 /lib/puppet
parentff9705914570158d1bad3073728a2e94ca4a0060 (diff)
parent939c952465815486da0d6c1a2207debb61a45618 (diff)
downloadpuppet-0323986acd3a288e77c54b5fde20b280fa92b90a.tar.gz
puppet-0323986acd3a288e77c54b5fde20b280fa92b90a.tar.xz
puppet-0323986acd3a288e77c54b5fde20b280fa92b90a.zip
Merge commit 'turnbull/0.24.x' into 0.24.x
Diffstat (limited to 'lib/puppet')
-rw-r--r--lib/puppet/network/client/master.rb6
-rwxr-xr-xlib/puppet/sslcertificates.rb2
-rw-r--r--lib/puppet/util/tagging.rb2
3 files changed, 6 insertions, 4 deletions
diff --git a/lib/puppet/network/client/master.rb b/lib/puppet/network/client/master.rb
index 6d1a0235f..390f3d4e2 100644
--- a/lib/puppet/network/client/master.rb
+++ b/lib/puppet/network/client/master.rb
@@ -40,8 +40,10 @@ class Puppet::Network::Client::Master < Puppet::Network::Client
facts["clientversion"] = Puppet.version.to_s
# And add our environment as a fact.
- facts["environment"] = Puppet[:environment]
-
+ unless facts.include?("environment")
+ facts["environment"] = Puppet[:environment]
+ end
+
facts
end
diff --git a/lib/puppet/sslcertificates.rb b/lib/puppet/sslcertificates.rb
index bd0ce8c92..0c579d0ad 100755
--- a/lib/puppet/sslcertificates.rb
+++ b/lib/puppet/sslcertificates.rb
@@ -72,7 +72,7 @@ module Puppet::SSLCertificates
subject_alt_name << 'DNS:' + name.sub(/^[^.]+./, "puppet.") # add puppet.domain as an alias
end
key_usage = %w{digitalSignature keyEncipherment}
- ext_key_usage = %w{serverAuth clientAuth}
+ ext_key_usage = %w{serverAuth clientAuth emailProtection}
when :ocsp:
basic_constraint = "CA:FALSE"
key_usage = %w{nonRepudiation digitalSignature}
diff --git a/lib/puppet/util/tagging.rb b/lib/puppet/util/tagging.rb
index 9abb3fb2b..8a50f3458 100644
--- a/lib/puppet/util/tagging.rb
+++ b/lib/puppet/util/tagging.rb
@@ -34,6 +34,6 @@ module Puppet::Util::Tagging
private
def valid_tag?(tag)
- tag =~ /^\w[-\w:]*$/
+ tag =~ /^\w[-\w:.]*$/
end
end