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

[fix] update pillar example per comments #31

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

[fix] update pillar example per comments #31

noelmcloughlin opened this issue Oct 12, 2019 · 1 comment

Comments

@noelmcloughlin
Copy link
Member

Describe the solution you'd like

See comments in #30

@noelmcloughlin noelmcloughlin changed the title [FIX] update pillar example per comments [fix] update pillar example per comments Oct 24, 2019
@noelmcloughlin
Copy link
Member Author

One thing I noticed that I didn't get time to resolve is the missing tofs block in pillar.example. Something like:

tofs:
# The files_switch key serves as a selector for alternative
# directories under the formula files directory. See TOFS pattern
# doc for more info.
# Note: Any value not evaluated by config.get will be used literally.
# This can be used to set custom paths, as many levels deep as required.
# files_switch:
# - any/path/can/be/used/here
# - id
# - roles
# - osfinger
# - os
# - os_family
# All aspects of path/file resolution are customisable using the options below.
# This is unnecessary in most cases; there are sensible defaults.
# Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
# I.e.: salt://template/files/default
# path_prefix: template_alt
# dirs:
# files: files_alt
# default: default_alt
# The entries under source_files are prepended to the default source files
# given for the state
source_files:
template-config-file-file-managed:
- 'example_alt.tmpl'
- 'example_alt.tmpl.jinja'
The source_files would need to be updated for all uses of files_switch throughout this formula.

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

No branches or pull requests

1 participant