1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Collecting Definitions</title>
</head>
<body>
<h1>Collecting Definitions</h1>
To make global definitions that can be used in all of your cfengine components,
use a bundle that is typed "common".
Note that classes are always global, but variables have scope. Use a simple
scope label like "G" for global to keep the references short:
<pre>
bundle common G
{
vars:
"myvariable" string => "Refer to me as \$(G.myvariable)";
classes:
}
</pre>
<hr>
<address><a href="mailto:mark@atlas">Mark Burgess</a></address>
<!-- Created: Thu May 1 13:35:56 CEST 2008 -->
<!-- hhmts start -->
Last modified: Thu May 1 13:38:16 CEST 2008
<!-- hhmts end -->
</body>
</html>
|