From 9667754f9527a45b09a5342d8e5ee0c8bc3dd3b1 Mon Sep 17 00:00:00 2001 From: kuyan Date: Thu, 13 Jun 2013 00:55:17 -0700 Subject: [PATCH] Code block type is 'console', not 'bash'. --- docs/scenarios/admin.rst | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/scenarios/admin.rst b/docs/scenarios/admin.rst index 3397d66..481b341 100644 --- a/docs/scenarios/admin.rst +++ b/docs/scenarios/admin.rst @@ -4,13 +4,14 @@ Systems Administration Fabric ------ -`Fabric `_ is a library for simplifying system administration tasks. While Chef -and Puppet tend to focus on managing servers and system libraries, -fabric is more focused on application level tasks such as deployment. +`Fabric `_ is a library for simplifying system +administration tasks. While Chef and Puppet tend to focus on managing servers +and system libraries, fabric is more focused on application level tasks such +as deployment. Install Fabric: -.. code-block:: bash +.. code-block:: console $ pip install fabric @@ -40,7 +41,7 @@ server. With the previous code saved in a file named fabfile.py, we can check memory usage with: -.. code-block:: bash +.. code-block:: console $ fab memory_usage [my_server1] Executing task 'memory' @@ -59,7 +60,7 @@ usage with: and we can deploy with: -.. code-block:: bash +.. code-block:: console $ fab deploy @@ -78,7 +79,7 @@ multiple servers using simple template files. Salt supports python versions 2.6 and 2.7 and can be installed via pip: -.. code-block:: bash +.. code-block:: console $ pip install salt @@ -87,7 +88,7 @@ shell commands or use pre-built modules of complex commands on our minions. The following command lists all available minion hosts, using the ping module. -.. code-block:: bash +.. code-block:: console $ salt '*' test.ping @@ -98,7 +99,7 @@ provide a host taxonomy for the salt modules. The following command lists all available minions running CentOS using the grains system: -.. code-block:: bash +.. code-block:: console $ salt -G 'os:CentOS' test.ping