forked from sensu/sensu-puppet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
By default the backend will be configured to use SSL and agents will communicate using SSL. The certificates and CA used are from Puppet. Update acceptance tests to properly use sensu_backend role
- Loading branch information
Showing
80 changed files
with
1,613 additions
and
716 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
require 'puppet' | ||
|
||
module SensuPuppetFacts | ||
def self.add_facts | ||
SensuPuppetFacts.init_settings | ||
Facter.add(:puppet_hostcert) do | ||
setcode do | ||
::Puppet[:hostcert].to_s | ||
end | ||
end | ||
|
||
Facter.add(:puppet_hostprivkey) do | ||
setcode do | ||
::Puppet[:hostprivkey].to_s | ||
end | ||
end | ||
|
||
Facter.add(:puppet_localcacert) do | ||
setcode do | ||
::Puppet[:localcacert].to_s | ||
end | ||
end | ||
end | ||
|
||
def self.init_settings | ||
if ! ::Puppet.settings.global_defaults_initialized? | ||
::Puppet.initialize_settings | ||
end | ||
end | ||
end | ||
|
||
SensuPuppetFacts.add_facts | ||
|
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
Oops, something went wrong.