SHOW:
|
|
- or go back to the newest paste.
| 1 | #I have 3 nodes: puppet (master), source_node and target_node | |
| 2 | #Source_node runs OK | |
| 3 | #Target_node returns: | |
| 4 | #Error: /Stage[main]/Main/Node[default]/File[/tmp/output]: Could not evaluate: Could not retrieve information from environment production #source(s) file:/tmp/input | |
| 5 | ||
| 6 | node 'puppet' {
| |
| 7 | class { 'puppetdb':}
| |
| 8 | class { 'puppetdb::master::config':
| |
| 9 | puppet_service_name => 'apache2', | |
| 10 | } | |
| 11 | } | |
| 12 | ||
| 13 | node 'source_node' {
| |
| 14 | @@file { "/tmp/output":
| |
| 15 | ensure => "present", | |
| 16 | source => "/tmp/input", | |
| 17 | tag => "test", | |
| 18 | } | |
| 19 | } | |
| 20 | ||
| 21 | - | node default {
|
| 21 | + | node 'target_node' {
|
| 22 | - | if $fqdn != 'source_node' {
|
| 22 | + | File <<| tag == "test" |>> |
| 23 | } |