Skip to content

Commit 2b82f63

Browse files
Felix Frankgithub-actions[bot]
authored andcommitted
Add 'implementation' fact to agent and server.
As specified in OpenVoxProject/planning#39, the agent will now make its implementation flavor known to the compiler through a built-in fact, as will the server (through a server fact). (cherry picked from commit 7b34e65)
1 parent c3395ce commit 2b82f63

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

lib/puppet/node/facts.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ def save(instance, key = nil, options={})
2727
attr_accessor :name, :values, :timestamp
2828

2929
def add_local_facts
30+
values["implementation"] = "openvox"
3031
values["clientcert"] = Puppet.settings[:certname]
3132
values["clientversion"] = Puppet.version.to_s
3233
values["clientnoop"] = Puppet.settings[:noop]

lib/puppet/node/server_facts.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ class Puppet::Node::ServerFacts
44
def self.load
55
server_facts = {}
66

7+
# Add implementation information
8+
server_facts["implementation"] = "openvox"
9+
710
# Add our server Puppet Enterprise version, if available.
811
pe_version_file = '/opt/puppetlabs/server/pe_version'
912
if File.readable?(pe_version_file) and !File.zero?(pe_version_file)

0 commit comments

Comments
 (0)