Details
-
Bug
-
Status: Resolved
-
Normal
-
Resolution: Done
-
None
-
None
-
Night's Watch
-
3
-
ghost-9.09, ghost-16.09, ghost-23.09, ghost-30.09
-
Needs Assessment
-
Bug Fix
-
If a fact is present in two groups, and both of them have a ttls defined in facter.conf, the lowest ttls will be taken into account.
-
Needs Assessment
Description
`fact_groups.conf` contains predefined groups. e.g.
{
|
...
|
"operating system": [
|
"os",
|
...
|
],
|
...
|
}
|
and we can create our own groups in `facter.conf`
e.g.
facts : {
|
ttls : [
|
{ "my_groups" : 30 days },
|
]
|
}
|
|
fact-groups : {
|
my_groups: ["os.name"],
|
}
|
When both groups contain the same fact, the fact gets cached only if the first group has TTLS. On the other hand, if only the second group has ttls, the fact won't get cached (because it is found in the first group and the TTLS for the first groups does not exist)
FactGroups.get_fact_group is the method that detects the groups for a given fact.