Report abuse

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
yaml
---
svnpresent : -   "true"


ruby -r yaml -e 'p YAML.load_file("test.yaml")' 
{"svnpresent"=>["true"]}


define processwebsites 
  {
    $website = $name
    $svnpresent = hiera ("svnpresent")
    notify { " SVN $svnpresent": }
    if $svnpresent == "true"  {
      notify { " Running $website": }
      $svnrepourl = hiera("svnrepourl")
    } #if svn
    else {
      #notify { " SVN not enabled for site : $website ": }
    } #no svn
  }