File: CollectingDefinitions.html

package info (click to toggle)
cfengine3 3.0.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 10,452 kB
  • ctags: 6,615
  • sloc: ansic: 62,933; sh: 9,712; yacc: 347; makefile: 287; sql: 23
file content (36 lines) | stat: -rw-r--r-- 777 bytes parent folder | download | duplicates (2)
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>