Skip to content

Commit 7b34e65

Browse files
author
Felix Frank
committed
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).
1 parent 7e61f81 commit 7b34e65

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
@@ -28,6 +28,7 @@ def save(instance, key = nil, options = {})
2828
attr_accessor :name, :values, :timestamp
2929

3030
def add_local_facts
31+
values["implementation"] = "openvox"
3132
values["clientcert"] = Puppet.settings[:certname]
3233
values["clientversion"] = Puppet.version.to_s
3334
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)