-
Notifications
You must be signed in to change notification settings - Fork 238
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(maint) Allow not applying settings catalog on startup
On initialization of a JRuby instance, Puppet will compile and apply a catalog containing resources for the configured directories specified in the appropriate settings sections. The goal of this is to ensure any directories Puppet requires exist. In practice this should be managed by our packages. Attempting to apply a catalog every time a JRuby instance is unnecessary, slow, and causes race conditions when attempting to instantiate JRuby instances in parallel. Puppet has a setting "settings_catalog" that controls this behavior. This PR addresses issues that arise when we set "settings_catalog" to `false`: 1. In code the process of compiling a settings catalog brings most of Puppet's ruby code into scope. When not compiling a settings catalog we must actually declare our dependencies. 2. The $cachedir/yaml/facts directory is not created by packages despite being used by default.
- Loading branch information
1 parent
e7b9b2b
commit bd45334
Showing
8 changed files
with
53 additions
and
90 deletions.
There are no files selected for viewing
20 changes: 0 additions & 20 deletions
20
dev-resources/puppetlabs/services/master/master_service_test/ca_files_test/puppet.conf
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'puppet/util/log' | ||
|
||
module Puppet | ||
module Server | ||
# Log to an array, just for testing. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'puppet' | ||
require 'puppet/util' | ||
require 'puppet/server' | ||
require 'java' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
require 'puppet' | ||
require 'puppet/util/log' | ||
require 'puppet/server/log_collector' | ||
|
||
module Puppet | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters