Jira (FACT-475) Default external-dir should be exposed as a core fact

2 views
Skip to first unread message

Maggie Dreyer (JIRA)

unread,
May 17, 2017, 12:41:03 PM5/17/17
to puppe...@googlegroups.com
Maggie Dreyer updated an issue
 
Facter / New Feature FACT-475
Default external-dir should be exposed as a core fact
Change By: Maggie Dreyer
Labels: triaged
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.14#64029-sha1:ae256fe)
Atlassian logo

Branan Riley (JIRA)

unread,
May 17, 2017, 12:41:04 PM5/17/17
to puppe...@googlegroups.com
Branan Riley commented on New Feature FACT-475
 
Re: Default external-dir should be exposed as a core fact

We've supported pluginsync of external facts for a while (though I think we didn't back when you filed this). If there are use-cases that doesn't cover, feel free to re-open this.

Steve Traylen (JIRA)

unread,
May 30, 2017, 11:23:03 AM5/30/17
to puppe...@googlegroups.com
Steve Traylen commented on New Feature FACT-475

Hi,

Yes we have a use case.We calculate facts within manifests to deploy static files. e.g.

 
$bar = some_function($::fqdn)
 
file{'/etc/facter/facts.d/myfact.txt':
  ensure => present,
  content => "foo=${bar}\n"
}

Having a fact for /etc/facter/facts.d would avoid us having to hard code that path.

The obvious question is why bother to write the fact foo given we already have it's value during the compilation. We use the
fact value from puppetdb for inventory calculations.

Steve Traylen (JIRA)

unread,
May 30, 2017, 11:27:03 AM5/30/17
to puppe...@googlegroups.com
Steve Traylen commented on New Feature FACT-475

Currently not even '/etc/puppetlabs' is available as a fact, that would probably do.

Branan Riley (JIRA)

unread,
May 30, 2017, 11:31:03 AM5/30/17
to puppe...@googlegroups.com
Branan Riley commented on New Feature FACT-475

Steve Traylen Do you mind adding your use-case to FACT-1640? That seems like a good place to centralize this sort of thing.

Claudia Petty (Jira)

unread,
Jun 21, 2023, 8:44:04 AM6/21/23
to puppe...@googlegroups.com
Claudia Petty updated an issue
 
Change By: Claudia Petty
Labels: new-feature
This message was sent by Atlassian Jira (v8.20.21#820021-sha1:38274c8)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages