mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 09:23:56 +00:00
added grains state instructions
This commit is contained in:
parent
4feda14159
commit
c6c62bc55b
@ -1,5 +1,20 @@
|
|||||||
'''
|
'''
|
||||||
Manage grains on the minion. This state allows for grains to be set and unset
|
Manage grains on the minion.
|
||||||
|
============================
|
||||||
|
|
||||||
|
This state allows for grains to be set. If a grain with the
|
||||||
|
given name exists, its value is updated to the new value. If
|
||||||
|
a grain does not yet exist, a new grain is set to the given
|
||||||
|
value. Grains set or altered this way are stored in the 'grains'
|
||||||
|
file on the minions, by default at: /etc/salt/grains
|
||||||
|
|
||||||
|
Note: This does NOT override any grains set in the minion file.
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
cheese:
|
||||||
|
grain.present:
|
||||||
|
- value: edam
|
||||||
'''
|
'''
|
||||||
|
|
||||||
def present(name, value):
|
def present(name, value):
|
||||||
|
Loading…
Reference in New Issue
Block a user