summaryrefslogtreecommitdiffstats
path: root/examples/facts
diff options
context:
space:
mode:
authorLuke Kanies <luke@madstop.com>2005-04-22 18:43:50 +0000
committerLuke Kanies <luke@madstop.com>2005-04-22 18:43:50 +0000
commita1a7ae4cf77b4161b6874e60ab06078bf4e6f081 (patch)
treef52e4417fcb65c84a0b103bee2925a0f23a781f8 /examples/facts
parent85b9f915e96241eb8ccb44d7b963b44fc44baa08 (diff)
moving to the language tree
git-svn-id: https://reductivelabs.com/svn/puppet/library/trunk@212 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'examples/facts')
-rw-r--r--examples/facts47
1 files changed, 0 insertions, 47 deletions
diff --git a/examples/facts b/examples/facts
deleted file mode 100644
index de8d83e6e..000000000
--- a/examples/facts
+++ /dev/null
@@ -1,47 +0,0 @@
-platform? {
- :sunos => { thing("name"){ :param => "value" } }
-}
-
-thing("name") {
- :param => platform{
- :sunos => "sunosvalue"
- :aix => "aixvalue"
- :default => "defaultvalue"
- }
-}
-
-thing("name") {
- :param => test ? true : false
- :param => platform? <
- :sunos => "sunosvalue"
- :aix => "aixvalue"
- hostname?(:myhost) => "hostvalue"
- >
- true : false
-}
-
-string = case platform
- when :sunos then "sunosvalue"
- when :aix then "aixvalue"
- when :aix then "aixvalue"
-end
-
-string = platform ? {
- :sunos => :value1
- :aix => :value2
- :hpux => :value3
-}
-
-if platform == :sunos then "sunosvalue"
-string = Fact["platform"] ? {
- :sunos => "sunosvalue"
-}
-
-platform = retrieve("platform")
-
- -----------------------
- / :sunos => :sunosvalue \
-string = platform? < :aix => :aixvalue >
- \ :hpux => :hpuxvalue /
- -----------------------
-