summaryrefslogtreecommitdiffstats
path: root/doc/plugins/probes.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/plugins/probes.txt')
-rw-r--r--doc/plugins/probes.txt14
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/plugins/probes.txt b/doc/plugins/probes.txt
index b6b69d754..a888b776d 100644
--- a/doc/plugins/probes.txt
+++ b/doc/plugins/probes.txt
@@ -6,7 +6,7 @@ Probes
At times you need to gather information from a client machine before you can generate its configuration. For example, if some of your machines have both a local scratch disk and a system disk while others only have the system disk, you would want to know this information to correctly generate an `/etc/auto.master` autofs config file for each type. Here we will look at how to do this.
-First you will need to set up the TCheetah plugin, as described on the [wiki:Plugins/TCheetah TCheetah Plugin] page.
+First you will need to set up the TCheetah plugin, as described on the :doc:`generators/tcheetah` page.
Next, we need to create a `Probes` directory in our toplevel repository location::
@@ -60,14 +60,18 @@ With all of these pieces in place, the following series of events will happen wh
#. Server hands `/etc/auto.master` down to the client
#. Client puts file contents in place.
-Now we have a nicely dynamic `/etc/auto.master` that can gracefully handle machines with different numbers of disks. All that's left to do is to add the `/etc/auto.master` to a Bundle::
+Now we have a nicely dynamic `/etc/auto.master` that can gracefully handle machines with different numbers of disks. All that's left to do is to add the `/etc/auto.master` to a Bundle:
+
+.. code-block:: xml
<ConfigFile name='/etc/auto.master'/>
Other examples
==============
-Dynamically assign a group based on the Ubuntu version::
+Dynamically assign a group based on the Ubuntu version:
+
+.. code-block:: sh
#!/bin/sh
@@ -75,7 +79,9 @@ Dynamically assign a group based on the Ubuntu version::
. /etc/lsb-release
echo group:$DISTRIB_CODENAME
-Detect if the server is a Linux-VServer host::
+Detect if the server is a Linux-VServer host:
+
+.. code-block:: sh
#!/bin/sh