summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJacob Helwig <jacob@puppetlabs.com>2011-07-08 11:25:03 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:48:28 -0700
commit9ebe500c496f76c5678fcde9c52d65c8282c9fe6 (patch)
treebccce5333a81fa5137a50228aa45182bb9067e5a /lib
parent7467a08368b09e8e36c40b5013e3774c76123b85 (diff)
downloadpuppet-9ebe500c496f76c5678fcde9c52d65c8282c9fe6.tar.gz
puppet-9ebe500c496f76c5678fcde9c52d65c8282c9fe6.tar.xz
puppet-9ebe500c496f76c5678fcde9c52d65c8282c9fe6.zip
Disable the master on Windows instead of blowing up with failed resources
Running the Puppet master on Windows is not supported, so instead of failing with what can be cryptic error messages about failed resources we fail with an explicit error message about the master on Windows not being supported. This way a user isn't mistakenly given the impression that running a master on Windows will work, and they just have something mis-configured. Signed-off-by: Jacob Helwig <jacob@puppetlabs.com> Reviewed-by: Max Martin <max@puppetlabs.com> (cherry picked from commit 3a70503b60f9fd51177df4e9267c5ac28b06fb2d)
Diffstat (limited to 'lib')
-rw-r--r--lib/puppet/application/master.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/puppet/application/master.rb b/lib/puppet/application/master.rb
index 18425c8bc..b4da770f0 100644
--- a/lib/puppet/application/master.rb
+++ b/lib/puppet/application/master.rb
@@ -206,6 +206,8 @@ Copyright (c) 2011 Puppet Labs, LLC Licensed under the Apache 2.0 License
end
def setup
+ raise Puppet::Error.new("Puppet master is not supported on Microsoft Windows") if Puppet.features.microsoft_windows?
+
# Handle the logging settings.
if options[:debug] or options[:verbose]
if options[:debug]