瀏覽代碼

Update README.rst

tags/2017.4.1
Aleš Komárek 7 年之前
父節點
當前提交
6357299ee2
共有 1 個檔案被更改,包括 8 行新增6 行删除
  1. +8
    -6
      README.rst

+ 8
- 6
README.rst 查看文件

@@ -1,6 +1,6 @@
=====
Linux
=====
============
Linux Fomula
============

Linux Operating Systems.

@@ -10,10 +10,11 @@ Linux Operating Systems.
* Fedora
* Arch

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

Linux system

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

Basic Linux box
@@ -57,6 +58,7 @@ Configure sudo for users and groups under ``/etc/sudoers.d/``.
This ways ``linux.system.sudo`` pillar map to actual sudo attributes:

.. code-block:: jinja

# simplified template:
Cmds_Alias {{ alias }}={{ commands }}
{{ user }} {{ hosts }}=({{ runas }}) NOPASSWD: {{ commands }}
@@ -65,8 +67,8 @@ This ways ``linux.system.sudo`` pillar map to actual sudo attributes:
# when rendered:
saltuser1 ALL=(ALL) NOPASSWD: ALL


.. code-block:: yaml

linux:
system:
sudo:

Loading…
取消
儲存