puppet-portage icon indicating copy to clipboard operation
puppet-portage copied to clipboard

automatically convert old package.* files to dirs

Open tampakrap opened this issue 13 years ago • 2 comments

The portage module on its first run should:

  1. Check if /etc/portage/package.$type exists
  2. If it doesn't exist, create a dir, else check if it is a file or dir
  3. If it is a file, then replace it with a dir and put the old content to /etc/portage/package.$type/old

Let's skip that for the next major version though

tampakrap avatar Feb 14 '13 00:02 tampakrap

I've given a thought on this, and I think the cleanest way to do it is by creating facts. The truth is that I don't want to create facts though for this case, so we could just write a bash script and link it in the README and a blog post. I don't even want to include the bash script in this repo :P Opinions?

tampakrap avatar Feb 21 '13 09:02 tampakrap

this would be handy as I'm trying to bring a slew of Gentoo servers under Puppet and they all have package.* files. As it is now, the files are not changed to directories until late in the the so I get many errors initially. The following run, everything works as it should.

walkamongus avatar Sep 09 '13 20:09 walkamongus

This will be very hard - won't do.

robbat2 avatar Jul 29 '24 07:07 robbat2