From e0df4d0993fe524b0d3b7a9b5f203aaa3ab1d7b3 Mon Sep 17 00:00:00 2001 From: Sol Jerome Date: Mon, 11 Jan 2010 02:05:30 +0000 Subject: doc: Rearrange document structure and add client tools Signed-off-by: Sol Jerome git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@5669 ce84e21b-d406-0410-9b95-82705330c041 --- doc/plugins/probes.txt | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'doc/plugins/probes.txt') 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 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 -- cgit v1.2.3-1-g7c22