Skip to content

Add the ability to configure the cache directory #2757

Open
@lollipopman

Description

@lollipopman

At present the cache directory is hard coded:

def self.setup_default_cache_dir
  windows_dir = windows_data_dir
  @facts_cache_dir = if windows_dir
			 File.join(windows_dir, 'PuppetLabs', 'facter', 'cache', 'cached_facts')
		       else
			 '/opt/puppetlabs/facter/cache/cached_facts'
		       end
end

It would nice to be able to set the cache directory in facter.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or enhancementhelp wantedIssue has been reviewed & PRs are welcome

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions