Browse Source

Update README.rst

tags/2017.4.1
Aleš Komárek 7 years ago
parent
commit
6357299ee2
1 changed files with 8 additions and 6 deletions
  1. +8
    -6
      README.rst

+ 8
- 6
README.rst View File

=====
Linux
=====
============
Linux Fomula
============


Linux Operating Systems. Linux Operating Systems.


* Fedora * Fedora
* Arch * Arch


Sample pillars
Sample Pillars
============== ==============


Linux system

Linux System
------------ ------------


Basic Linux box Basic Linux box
This ways ``linux.system.sudo`` pillar map to actual sudo attributes: This ways ``linux.system.sudo`` pillar map to actual sudo attributes:


.. code-block:: jinja .. code-block:: jinja

# simplified template: # simplified template:
Cmds_Alias {{ alias }}={{ commands }} Cmds_Alias {{ alias }}={{ commands }}
{{ user }} {{ hosts }}=({{ runas }}) NOPASSWD: {{ commands }} {{ user }} {{ hosts }}=({{ runas }}) NOPASSWD: {{ commands }}
# when rendered: # when rendered:
saltuser1 ALL=(ALL) NOPASSWD: ALL saltuser1 ALL=(ALL) NOPASSWD: ALL



.. code-block:: yaml .. code-block:: yaml

linux: linux:
system: system:
sudo: sudo:

Loading…
Cancel
Save