@@ -18,7 +18,10 @@ def self.load(config_file = nil)
1818 :submit_only_server_urls => "" ,
1919 :command_broadcast => false ,
2020 :sticky_read_failover => false ,
21- :verify_client_certificate => true
21+ :verify_client_certificate => true ,
22+ :verify_client_certificate => true ,
23+ :fact_names_blacklist => "" ,
24+ :fact_names_blacklist_regex => ""
2225 }
2326
2427 config_file ||= File . join ( Puppet [ :confdir ] , "puppetdb.conf" )
@@ -71,7 +74,9 @@ def self.load(config_file = nil)
7174 :submit_only_server_urls ,
7275 :command_broadcast ,
7376 :sticky_read_failover ,
74- :verify_client_certificate ] . include? ( k ) )
77+ :verify_client_certificate ,
78+ :fact_names_blacklist ,
79+ :fact_names_blacklist_regex ] . include? ( k ) )
7580 end
7681
7782 parsed_urls = config_hash [ :server_urls ] . split ( "," ) . map { |s | s . strip }
@@ -108,6 +113,10 @@ def self.load(config_file = nil)
108113 "or equal to the number of server_urls (#{ config_hash [ :server_urls ] . length } )"
109114 end
110115
116+ config_hash [ :fact_names_blacklist ] = config_hash [ :fact_names_blacklist ] . split ( "," ) . map { |s | s . strip }
117+
118+ config_hash [ :fact_names_blacklist_regex ] = config_hash [ :fact_names_blacklist_regex ] . split ( "," ) . map { |s | s . strip }
119+
111120 self . new ( config_hash )
112121 rescue => detail
113122 Puppet . log_exception detail , "Could not configure PuppetDB terminuses: #{ detail . message } " , { level : :warning }
@@ -160,6 +169,15 @@ def verify_client_certificate
160169 config [ :verify_client_certificate ]
161170 end
162171
172+ def fact_names_blacklist
173+ config [ :fact_names_blacklist ]
174+ end
175+
176+ def fact_names_blacklist_regex
177+ config [ :fact_names_blacklist_regex ]
178+ end
179+
180+
163181 # @!group Private instance methods
164182
165183 # @!attribute [r] count
0 commit comments