Feature #2140

Add support for external data files

Added by Luke Kanies almost 3 years ago. Updated almost 2 years ago.

Status:Duplicate Start date:04/06/2009
Priority:High Due date:
Assignee:Luke Kanies % Done:

0%

Category:plumbing
Target version:2.6.0
Affected Puppet version:0.24.7 Branch:
Keywords:
Votes: 0

Description

See http://groups.google.com/group/puppet-users/browse_thread/thread/b439cd34803ed5a1

We would support a data file for any given class, stored in the module, and this data file would get loaded automatically when a class was loaded.

This requires #2139 to be fully-functional, and definitely should support data files in multiple module directories.


Related issues

duplicates Puppet - Feature #2953: Puppet should support a data loading system Closed 12/18/2009

History

Updated by R.I. Pienaar almost 3 years ago

Just throwing in somethig here that I added feature wise for my own data lookup tool.

Inside a data file I found I needed a way to reference variables that’s in scope at run time, for example.

I have data files for hosts, countries, locations etc, but I also need a fallback, example:

common.csv:resolver_search,%{domain}

or

common.csv:ntpservers,1.%{country}.pool.ntp.org,2.%{country}.pool.ntp.org,3.%{country}.pool.ntp.org

where $country and $domain are facts available at compile time.

Would be important if this external data sources has a similar ability

Updated by Markus Roberts over 2 years ago

On further consideration, Luke says this does NOT require #2139 to be fully-functional.

Updated by Markus Roberts over 2 years ago

  • Priority changed from Normal to High

Updated by Luke Kanies almost 2 years ago

  • Status changed from Accepted to Duplicate

Closing in favor of #2953, since it has more information.

Also available in: Atom PDF