2019-02-10 22:47:43 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
# vim: ft=yaml
|
|
|
|
---
|
2019-11-22 22:45:32 +00:00
|
|
|
TEMPLATE:
|
2014-03-11 08:50:55 -07:00
|
|
|
lookup:
|
|
|
|
master: template-master
|
2019-02-06 16:12:02 +01:00
|
|
|
|
2019-02-17 20:55:55 -03:00
|
|
|
# Using bash package and udev service as an example. This allows us to
|
|
|
|
# test the template formula itself. You should set these parameters to
|
|
|
|
# examples that make sense in the contexto of the formula you're writing.
|
2019-06-05 22:35:46 +01:00
|
|
|
pkg:
|
|
|
|
name: bash
|
2019-02-17 20:55:55 -03:00
|
|
|
service:
|
2020-03-23 12:16:35 +00:00
|
|
|
name: systemd-journald
|
2019-05-08 20:50:47 +01:00
|
|
|
config: /etc/template-formula.conf
|
2019-02-17 20:55:55 -03:00
|
|
|
|
|
|
|
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
|
2019-07-24 12:13:53 +02:00
|
|
|
- roles
|
2019-02-17 20:55:55 -03:00
|
|
|
- osfinger
|
|
|
|
- os
|
2019-02-27 03:52:36 +00:00
|
|
|
- os_family
|
2021-09-15 11:06:43 +02:00
|
|
|
|
2019-02-17 20:55:55 -03:00
|
|
|
# All aspects of path/file resolution are customisable using the options below.
|
|
|
|
# This is unnecessary in most cases; there are sensible defaults.
|
2019-10-03 19:25:14 +01:00
|
|
|
# Default path: salt://< path_prefix >/< dirs.files >/< dirs.default >
|
2021-09-15 11:06:43 +02:00
|
|
|
# I.e.: salt://TEMPLATE/files/default
|
2019-02-17 20:55:55 -03:00
|
|
|
# path_prefix: template_alt
|
|
|
|
# dirs:
|
|
|
|
# files: files_alt
|
|
|
|
# default: default_alt
|
2019-07-23 17:08:08 +01:00
|
|
|
# The entries under `source_files` are prepended to the default source files
|
|
|
|
# given for the state
|
2019-05-15 18:30:27 +02:00
|
|
|
source_files:
|
2019-11-22 22:45:32 +00:00
|
|
|
TEMPLATE-config-file-file-managed:
|
2021-09-15 11:06:43 +02:00
|
|
|
- 'example_alt.tmpl'
|
|
|
|
- 'example_alt.tmpl.jinja'
|