summaryrefslogtreecommitdiffstats
path: root/examples/code/facts
blob: fcfec2c0db0f82bf4fa530b6361e94855f3d262e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# $Id$

# DISABLED

# facts are now added to the top scope (e.g., operatingsystem and macaddress)

# these facts have to get defined by the server onto the client before
# we can retrieve their values
#fact { "videocard":
#    interpreter => "/bin/sh",
#    code => "lspci  | grep VGA",
#    os => "Linux"
#}
$testing = "value"
$operatingsystem = fact("operatingsystem")
$fact = addfact(
    name => "videocard",
    interpreter => "/bin/sh",
    code => "lspci  | grep VGA",
    os => "Linux"
)
$card = fact("videocard")