Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change template.config to template.config.default #166

Open
noelmcloughlin opened this issue Sep 12, 2019 · 1 comment
Open

Change template.config to template.config.default #166

noelmcloughlin opened this issue Sep 12, 2019 · 1 comment

Comments

@noelmcloughlin
Copy link
Member

noelmcloughlin commented Sep 12, 2019

Instead of

  config: '/etc/template'

Can we instead have:

  config: 
    default: '/etc/template'

I want formulas to support multiple providers/implementations of a technology.
Basically I want {{ template.config[provider] }} to evaluate to correct config file name.

@noelmcloughlin
Copy link
Member Author

noelmcloughlin commented Sep 12, 2019

Thinking about it, this is more useful because it is clearer and scales better.

  config: 
    name:
      default: /etc/template/default.conf
      custom: /etc/template/custom.conf
    source:
      default: salt://template/jinja/default.jinja
      custom: salt://template/jinja/custom.jinja
    servicename:
       default_client: defaultClientDaemon
       default_server: defaultServerDaemon
       custom_client_a: customDaemonA
       custom_server_b: customServerA

I added service because the configuration files are typically used by services.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant