Issue #21284 has been updated by Jason Birch.

Charlie Sharpsteen wrote:
> Thanks for reporting this. However, pre-empting possible misuses of file 
> replacement is a very large problem surface and attempts at detection may be 
> incomplete or unreliable. A better solution may be to provide an option that 
> minimizes Puppet's use of the `statedir`.

Right - I agree that it's a large problem area. Indeed a case could be made 
about whether it's even Puppet's domain to stop you shooting yourself in the 
foot just because you don't know how to use the gun. If you want to output to 
/bin/sh, go for your life. Such caveats come with things like `dd`, for 
example. People don't (well, shouldn't) kick up a stink if they `dd` over their 
hard drive, but I think people might kick up a stink if `dd` replaced /dev/null 
with a regular file. I mean the behaviour shown here isn't even something I'd 
know how to do on the command line. I'm half tempted to point it at /dev/mem 
and see what happens.

----------------------------------------
Bug #21284: puppet apply --lastrunfile=/dev/null does bad things to special 
devices
https://projects.puppetlabs.com/issues/21284#change-94244

* Author: Jason Birch
* Status: Needs Decision
* Priority: Low
* Assignee: eric sorenson
* Category: 
* Target version: 
* Affected Puppet version: 3.1.1
* Keywords: 
* Branch: 
----------------------------------------
I don't need puppet reports right now, and am working on a system with a 
limited /var partition. I thought I could work around this temporarily by doing 
something like:

puppet apply --no-report --lastrunfile=/dev/null --lastrunreport=/dev/null 
--postrun_command='rm -rf /var/lib/puppet' ....

Unfortunately, due to changes introduced at 
https://github.com/puppetlabs/puppet/commit/e40439196af14f90d8a321999b782f24a3fa59f6,
 my /dev/null is turned into a regular file.

It would be good if puppet could fail fast in the case of options like 
lastrunfile taking parameters that don't make sense, or to not change 
permissions on that file if they are something else? I'm sure the real solution 
is more nuanced.

Regards,
JB


-- 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to