Skip to content

Commit 94d9cfe

Browse files
committed
Add FreeBSD custom_facts directory
On FreeBSD, third party software configuration is found in `/usr/local/etc`. We have patches in the port, but it makes sense to upsteam it.
1 parent b8bb503 commit 94d9cfe

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

lib/facter/custom_facts/util/config.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ def self.setup_default_ext_facts_dirs
4545
[
4646
'/etc/puppetlabs/facter/facts.d',
4747
'/etc/facter/facts.d/',
48+
'/usr/local/etc/facter/facts.d/',
4849
'/opt/puppetlabs/facter/facts.d'
4950
]
5051
end

spec/custom_facts/util/config_spec.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
.to eq [
5959
'/etc/puppetlabs/facter/facts.d',
6060
'/etc/facter/facts.d/',
61+
'/usr/local/etc/facter/facts.d/',
6162
'/opt/puppetlabs/facter/facts.d'
6263
]
6364
end

0 commit comments

Comments
 (0)