Page Menu
Home
ClusterLabs Projects
Search
Configure Global Search
Log In
Files
F3155598
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/src/pacemaker/doc/index.php b/src/pacemaker/doc/index.php
index 8843be1..51e59eb 100644
--- a/src/pacemaker/doc/index.php
+++ b/src/pacemaker/doc/index.php
@@ -1,169 +1,169 @@
---
layout: pacemaker
title: Pacemaker Documentation
---
<section id="main">
<p>
Most of the documentation listed here was generated from the Pacemaker
sources.
</p>
<header class="major">
<h2>Where to Start</h2>
</header>
<p>
If you're new to Pacemaker or clustering in general, the best place to
start is <b>Clusters from Scratch</b>, which walks you step-by-step through
the installation and configuration of a high-availability cluster with
Pacemaker. It even makes common configuration mistakes so that it can
demonstrate how to fix them.
</p>
<p>
On the other hand, if you're looking for an exhaustive reference of all
of Pacemaker's options and features, try <b>Pacemaker Explained</b>. It's
dry, but should have the answers you're looking for.
</p>
<p>
There is also a <a href="https://wiki.clusterlabs.org/wiki">project wiki</a>
with examples, how-to guides, and other information that doesn't make it
into the manuals.
</p>
<header class="major">
<h2>Unversioned documentation</h2>
</header>
<section class="docset">
<h3 class="docversion">General Concepts</h3>
<table class="publican-doc">
<tr>
<td>Ordering Explained</td>
<td>[<a class="doclink" href="Ordering_Explained.pdf">pdf</a>]</td>
<td>[<a class="doclink" href="Ordering_Explained_White.pdf">print</a>]</td>
</tr>
<tr>
<td>Colocation Explained</td>
<td>[<a class="doclink" href="Colocation_Explained.pdf">pdf</a>]</td>
<td>[<a class="doclink" href="Colocation_Explained_White.pdf">print</a>]</td>
</tr>
<tr>
<td>Configuring Fencing with crmsh</td>
<td>[<a class="doclink" href="crm_fencing.html">html</a>]</td>
</tr>
<tr>
<td>ACL Guide</td>
<td>[<a class="doclink" href="acls.html">html</a>]</td>
</tr>
</table>
</section>
<?php
function get_versions($base) {
$versions = array();
foreach (glob("$base/*/Pacemaker/*") as $item)
if ($item != '.' && $item != '..' && is_dir($item) && !is_link($item))
$versions[] = basename($item);
return array_unique($versions);
}
function docs_for_version($base, $version) {
echo "<section class='docset'>";
echo "<h3 class='docversion'>";
foreach (glob("title-$version.txt") as $filename) {
readfile($filename);
}
echo "</h3>";
foreach (glob("desc-$version.txt") as $filename) {
readfile($filename);
}
echo "<br/>";
foreach (glob("build-$version.txt") as $filename) {
readfile($filename);
}
echo "<br/>";
$langs = array();
// for now, show only US English; other translations haven't been maintained
//foreach (glob("$base/*/Pacemaker/$version") as $item) {
// $langs[] = basename(dirname(dirname($item)));
//}
$langs[] = "en-US";
$books = array();
foreach (glob("$base/en-US/Pacemaker/$version/pdf/*") as $filename) {
$books[] = basename($filename);
}
echo '<table class="publican-doc">';
foreach ($books as $b) {
foreach ($langs as $lang) {
if (glob("$base/$lang/Pacemaker/$version/pdf/$b/*-$lang.pdf")) {
echo '<tr><td>'.str_replace("_", " ", $b)." ($lang)</td>";
echo '<td>';
foreach (glob("$base/$lang/Pacemaker/$version/epub/$b/*.epub") as $filename) {
echo " [<a class='doclink' href=$filename>epub</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/pdf/$b/*.pdf") as $filename) {
echo " [<a class='doclink' href=$filename>pdf</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/html/$b/index.html") as $filename) {
echo " [<a class='doclink' href=$filename>html</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/html-single/$b/index.html") as $filename) {
echo " [<a class='doclink' href=$filename>html-single</a>]";
}
foreach (glob("$base/$lang/Pacemaker/$version/txt/$b/*.txt") as $filename) {
echo " [<a class='doclink' href=$filename>txt</a>]";
}
echo "</td></tr>";
}
}
}
echo "</table>";
echo "</section>";
}
$docs = array();
foreach (glob("*.html") as $file) {
$fields = explode(".", $file, -1);
$docs[] = implode(".", $fields);
}
foreach (glob("*.pdf") as $file) {
$fields = explode(".", $file, -1);
$docs[] = implode(".", $fields);
}
- echo "<header class="major">\n<h2>Versioned documentation</h2>\n</header>";
+ echo "<header class='major'>\n<h2>Versioned documentation</h2>\n</header>";
foreach(get_versions(".") as $v) {
docs_for_version(".", $v);
}
?>
<header class="major">
<h2>Deprecated Documentation</h2>
</header>
<section class="docset">
<h3 class="docversion">Pacemaker 1.0 with OpenAIS</h3>
<table class="publican-doc">
<tr>
<td>Clusters from Scratch - Pacemaker 1.0 & GFS2</td>
<td>[<a class="doclink" href="Clusters_from_Scratch-1.0-GFS2.pdf">pdf</a>]</td>
</tr>
<tr>
<td>Clusters from Scratch - Pacemaker 1.0 & OCFS2</td>
<td>[<a class="doclink" href="Clusters_from_Scratch-1.0-OCFS2.pdf">pdf</a>]</td>
</tr>
</table>
</section>
</section>
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Wed, Feb 26, 11:55 PM (11 h, 8 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1465900
Default Alt Text
(5 KB)
Attached To
Mode
rW ClusterLabs-www
Attached
Detach File
Event Timeline
Log In to Comment