Issue #4386 has been updated by Nick Lewis.
Status changed from Needs design decision to Needs more information
Assignee set to Nick Lewis
Tom,
I'm having trouble reproducing this. My understanding is that the issue is with
sourcing from a non-existent module file. Is that correct, or is there any more
detail you can give me?
The messages I get when trying to do this are:
notice: DEPRECATION NOTICE: Files found in modules without specifying
'modules' in file path will be deprecated in the next major release. Please
fix module 'sudo' when no 0.24.x clients are present
info: Could not find file_metadata for 'sudo/sudoers'
----------------------------------------
Bug #4386: Absent files should not be treated as empty when fileserving
http://projects.puppetlabs.com/issues/4386
Author: Tom Vachon
Status: Needs more information
Priority: Normal
Assignee: Nick Lewis
Category: file
Target version:
Affected version: 2.6.0
Keywords:
Branch:
I am seeing inconstant behavior with file copies. I have pasted my code below
and some proof. One all except one node (all worked prior to 2.6.0 upgrade),
the /tmp/sudoers.tmp gets copied from the proper source. When run on the "bad"
node, the /tmp/sudoers.tmp is copied over empty and hoses my sudoers file
(somehow a empty file passed the visudo smoketest).
### executing every time (and null'ing the file) ###
[r...@pbsec01 tmp]# wc -l sudoers.tmp
0 sudoers.tmp
### executing properly (only when changed, etc) ###
[r...@pbjump01 tmp]# wc -l sudoers.tmp
63 sudoers.tmp
### module config ###
class sudo {
file { "sudoers":
name => "/etc/sudoers",
source => "/tmp/sudoers.tmp",
owner => "root",
group => "root",
mode => "440",
require => Exec['check_sudo'],
}
file { "sudo_tmp":
name => "/tmp/sudoers.tmp",
source => "puppet:///sudo/sudoers",
before => Exec['check_sudo'],
}
exec { "check_sudo":
command => "visudo -c -f /tmp/sudoers.tmp",
unless => "diff /tmp/sudoers.tmp /etc/sudoers",
}
}
I have attached the output of a run on the "bad" client with verbose and test
enabled.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" 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-bugs?hl=en.