File: site.pp

package info (click to toggle)
ruby-rspec-puppet 4.0.2%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ruby: 6,377; makefile: 6
file content (50 lines) | stat: -rw-r--r-- 766 bytes parent folder | download | duplicates (3)
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
node default {
  notify { 'test': }
}

node 'testhost_a' {
  file { '/tmp/a': }
}

node /testhost/ {
  include sysctl::common
}

node 'good_dep_host' {
  file { 'tmpdir':
    alias => '/tmp',
    path  => '/tmp',
  }
  file { '/tmp/deptest1':
    require => File['tmpdir'],
  }
  file { '/tmp/deptest2':
    require => File['/tmp'],
  }
}

node 'facts.acme.com' {
  file { 'environment':
    path => $environment
  }
  if $::environment == 'test_env' {
    file { 'conditional_file':
      path => 'ignored'
    }
  }
  file { 'clientversion':
    path => $clientversion
  }
  file { 'fqdn':
    path => $fqdn
  }
  file { 'hostname':
    path => $hostname
  }
  file { 'domain':
    path => $domain
  }
  file { 'clientcert':
    path => "cert ${clientcert}"
  }
}