From bdec135fc0aadeb4e943c70a2747dbfc9b2b56d7 Mon Sep 17 00:00:00 2001 From: Sebastian Engel Date: Mon, 5 Feb 2024 21:34:56 +0000 Subject: [PATCH] fix indentation in examples --- .brokignore | 1 + docs/topics/requisites.rst | 14 +++++++------- docs/topics/security.rst | 18 +++++++++--------- docs/topics/states.rst | 32 ++++++++++++++++---------------- 4 files changed, 33 insertions(+), 32 deletions(-) diff --git a/.brokignore b/.brokignore index 0de78fe..958f062 100644 --- a/.brokignore +++ b/.brokignore @@ -12,4 +12,5 @@ https://saltstack.gitlab.io/open/docs/salt-user-guide https://twitter.com/intent/follow?screen_name=Salt_Project_OS https://www.example.com https://www.example.org +https://www.reddit.com/r/saltstack/ https://your-GitLab-username.gitlab.io diff --git a/docs/topics/requisites.rst b/docs/topics/requisites.rst index 300a53e..3318532 100644 --- a/docs/topics/requisites.rst +++ b/docs/topics/requisites.rst @@ -137,13 +137,13 @@ to do this, set ``order: last`` update_status: module.function: - - name: http.query - - args: - - 'https://example.org/update-status' - - kwargs: - - method: POST - - params: 'keyA=valA&keyB=valB' - - order: last + - name: http.query + - args: + - 'https://example.org/update-status' + - kwargs: + - method: POST + - params: 'keyA=valA&keyB=valB' + - order: last install_app: pkg.installed: diff --git a/docs/topics/security.rst b/docs/topics/security.rst index 6fec6f7..275a310 100644 --- a/docs/topics/security.rst +++ b/docs/topics/security.rst @@ -312,15 +312,15 @@ Salt’s External Authentication System (eAuth) allows for Salt to pass through # examples of external authentication definitions external_auth: - auth_module: # the authentication system - some_user_or_group%: # a user or group given access - 'some_host': # a minion matching expressing - - exec_mod.function # access a specific function - - exec_mod.* # access to all module functions - - exec_mod.* # all access a specific function - - '@wheel' # access to all wheel modules - - '@runner' # access to all runner modules - - '@jobs' # access to the jobs runner and/or wheel module + auth_module: # the authentication system + some_user_or_group%: # a user or group given access + 'some_host': # a minion matching expressing + - exec_mod.function # access a specific function + - exec_mod.* # access to all module functions + - exec_mod.* # all access a specific function + - '@wheel' # access to all wheel modules + - '@runner' # access to all runner modules + - '@jobs' # access to the jobs runner and/or wheel module LDAP external authentication diff --git a/docs/topics/states.rst b/docs/topics/states.rst index db5b297..15582db 100644 --- a/docs/topics/states.rst +++ b/docs/topics/states.rst @@ -107,7 +107,7 @@ However, doing the same with a Salt state requires no check state, since the ins install_tree_now: pkg.installed: - pkgs: - - tree + - tree .. code-block:: bash @@ -240,21 +240,21 @@ The contents and layout of the files are intended to be as simple as possible, w :caption: /srv/salt/top.sls base: - '*': - - core - '^(app|web).(qa|prod).loc$': - - match: pcre - - httpd - - nagios.web - 'os:Ubuntu': - - match: grain - - repos.ubuntu - 'os_family:RedHat': - - match: grain - - repos.epel - 'nagios* or G@role:monitoring': - - match: compound - - nagios.server + '*': + - core + '^(app|web).(qa|prod).loc$': + - match: pcre + - httpd + - nagios.web + 'os:Ubuntu': + - match: grain + - repos.ubuntu + 'os_family:RedHat': + - match: grain + - repos.epel + 'nagios* or G@role:monitoring': + - match: compound + - nagios.server * ``base`` is the default environment to use as the ``file_roots``. * Targeting parameter is defined next.