Hi
It may have been answered earlier but I could not find anywhere. My
requirement is that I want to copy a file from server to agent in few
conditions but don't want to touch file in rest of the condition
class example {
case $hostname {
node1 : {$conf_file = 'file1'}
node2: {$conf_file = 'file2'}
}
file { '/etc/network/test':
ensure => file,
source => "puppet:///modules/example/
$conf_file",
}
}
It is working but I want that in case none of the above condition is
true then 'test' file should not be touched.
But what is happening here that, if hostname is different from node1
or 2 then puppet creates a empty test directory in /etc/network/
folder.
Any suggestion ?
thanks
Kashif
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.