Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't use /tmp folder in java.pp #58

Open
TheKrizz opened this issue Aug 16, 2023 · 1 comment
Open

Don't use /tmp folder in java.pp #58

TheKrizz opened this issue Aug 16, 2023 · 1 comment

Comments

@TheKrizz
Copy link

Affected Puppet, Ruby, OS and module versions/distributions

  • Puppet: 7.25.0
  • Ruby: ruby 2.7.7p221 (2022-11-24 revision 168ec2b1e5) [x86_64-linux]
  • Distribution: Ubuntu 20.04 / 22.04
  • Module version: v5.0.0 (also older tags)

How to reproduce (e.g Puppet code you use)

If you reboot your system (e.g. Ubuntu 22.04) the /tmp folder will be cleaned with systemd-tmpfiles-clean.
After that the created files in java.pp are deleted and Puppet would recreate them.
In my opinion this behaviour is not right.

What behaviour did you expect instead

It would be better when those files are not created in /tmp
They should be created in /var/tmp (for example)

@ekohl
Copy link
Member

ekohl commented Aug 22, 2023

I opened #60 which at least cleans it up a bit, but I agree the directory is a bad place. Perhaps it should look in the Puppet settings and use some temporary directory there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants