File: cf3_variables.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 (30 lines) | stat: -rw-r--r-- 872 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>Variables in cfengine 3</title>
  </head>

  <body>
    <h1>Variables in cfengine 3</h1>

Here is an important distinction.

All variables are defined in bundles, because a variable assignment is a promise
for a container to hold a value.

There are no variable declarations in bodies, so the following

email => "mark@cfengine.com";

is not a variable declaration, but represents the setting of a static attribute
email to a value. If you want to think of this as a reserved variable that is okay,
but you cannot use the value of this in an expression.

    <hr>
    <address><a href="mailto:mark@atlas">Mark Burgess</a></address>
<!-- Created: Thu Jan  3 08:44:33 CET 2008 -->
<!-- hhmts start -->
Last modified: Thu Jan  3 08:47:50 CET 2008
<!-- hhmts end -->
  </body>
</html>