From 711768ddecc7670eda529463bca1fafbeda8da66 Mon Sep 17 00:00:00 2001 From: Pedro Algarvio Date: Thu, 29 Nov 2012 05:23:55 +0000 Subject: [PATCH] Using code blocks. --- README.rst | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) diff --git a/README.rst b/README.rst index 36ca34a..e8a3545 100644 --- a/README.rst +++ b/README.rst @@ -12,7 +12,9 @@ Adding support for other operating systems ------------------------------------------ In order to install salt for a distribution you need to define: -* To Install Dependencies, which is required, one of:: +* To Install Dependencies, which is required, one of + +.. code:: sh install____deps install___deps install___deps @@ -20,12 +22,14 @@ In order to install salt for a distribution you need to define: * To install salt, which, of course, is required, one of:: + install___ install__ * Optionally, define a minion configuration function, which will be called if the ``-c|config-dir`` option is passed. One of:: + config____minion config___minion config___minion @@ -34,6 +38,7 @@ In order to install salt for a distribution you need to define: * Also optionally, define a post install function, one of:: + install____post install___post install___post @@ -42,20 +47,24 @@ In order to install salt for a distribution you need to define: Below is an example for Ubuntu Oneiric: - install_ubuntu_1110_deps() { - apt-get update - apt-get -y install python-software-properties - add-apt-repository -y 'deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe' - add-apt-repository -y ppa:saltstack/salt - } +.. code:: sh + install_ubuntu_1110_deps() { + apt-get update + apt-get -y install python-software-properties + add-apt-repository -y 'deb http://us.archive.ubuntu.com/ubuntu/ oneiric + universe' + add-apt-repository -y ppa:saltstack/salt + } - install_ubuntu_1110_post() { - add-apt-repository -y --remove 'deb http://us.archive.ubuntu.com/ubuntu/ oneiric universe' - } + install_ubuntu_1110_post() { + add-apt-repository -y --remove 'deb http://us.archive.ubuntu.com/ubuntu/ + oneiric universe' + } + + install_ubuntu_stable() { + apt-get -y install salt-minion + } - install_ubuntu_stable() { - apt-get -y install salt-minion - } Since there is no ``install_ubuntu_1110_stable()`` it defaults to the unspecified version script.