mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Specify usage of lookup
key in formulas pillars
This commit is contained in:
parent
fb842ae208
commit
1f0c7496fc
1 changed files with 15 additions and 0 deletions
|
@ -777,6 +777,21 @@ state file using the following syntax:
|
|||
service.running:
|
||||
- name: {{ mysql.service }}
|
||||
|
||||
Organizing Pillar data
|
||||
``````````````````````
|
||||
|
||||
It is considered a best practice to make formulas expect **all**
|
||||
formula-related parameters to be placed under second-level ``lookup`` key,
|
||||
within a main namespace designated for holding data for particular
|
||||
service/software/etc, managed by the formula:
|
||||
|
||||
.. code-block:: yaml
|
||||
|
||||
mysql:
|
||||
lookup:
|
||||
version: 5.7.11
|
||||
...
|
||||
|
||||
Collecting common values
|
||||
````````````````````````
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue