@@ -18,7 +18,9 @@ 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+ :fact_names_blacklist => "" ,
23+ :fact_names_blacklist_regex => ""
2224 }
2325
2426 config_file ||= File . join ( Puppet [ :confdir ] , "puppetdb.conf" )
@@ -71,7 +73,9 @@ def self.load(config_file = nil)
7173 :submit_only_server_urls ,
7274 :command_broadcast ,
7375 :sticky_read_failover ,
74- :verify_client_certificate ] . include? ( k ) )
76+ :verify_client_certificate ,
77+ :fact_names_blacklist ,
78+ :fact_names_blacklist_regex ] . include? ( k ) )
7579 end
7680
7781 parsed_urls = config_hash [ :server_urls ] . split ( "," ) . map { |s | s . strip }
@@ -108,6 +112,10 @@ def self.load(config_file = nil)
108112 "or equal to the number of server_urls (#{ config_hash [ :server_urls ] . length } )"
109113 end
110114
115+ config_hash [ :fact_names_blacklist ] = config_hash [ :fact_names_blacklist ] . split ( "," ) . map { |s | s . strip }
116+
117+ config_hash [ :fact_names_blacklist_regex ] = config_hash [ :fact_names_blacklist_regex ] . split ( "," ) . map { |s | s . strip }
118+
111119 self . new ( config_hash )
112120 rescue => detail
113121 Puppet . log_exception detail , "Could not configure PuppetDB terminuses: #{ detail . message } " , { level : :warning }
@@ -160,6 +168,15 @@ def verify_client_certificate
160168 config [ :verify_client_certificate ]
161169 end
162170
171+ def fact_names_blacklist
172+ config [ :fact_names_blacklist ]
173+ end
174+
175+ def fact_names_blacklist_regex
176+ config [ :fact_names_blacklist_regex ]
177+ end
178+
179+
163180 # @!group Private instance methods
164181
165182 # @!attribute [r] count
0 commit comments