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}"
}
}
|