Issue #5786 has been updated by Daniel Pittman.

Status changed from Accepted to Needs Decision
Assignee set to Nigel Kersten

Nigel, I don't think the specification is fully fleshed out yet.  Concretely, I 
would still have a question before I implemented this:

What is the behaviour over time, or with regards "keep the directory in sync 
with the tar.gz"?

 * if the tar file changed, download the new version, and unpack?
 * if the tar file is missing, download it, then sync the content with the 
directory?

That is, in the later case, if I delete a file in the unpacked location should 
Puppet notice?  Is it walking the content and doing a comparison to what is on 
disk, or is this just a wrapper around a file and refreshonly exec pair of 
resources?

Should it enforce the removal of files that are not mentioned, or should we 
expose a custom option for this provider only about that?

Should it just delete the target directory on `ensure => absent`, or should it 
leave that in place?  Should it just remove files found in the tarball?

Should this be a "tar" archive provider (optionally, with compression?  What 
about if the decompression tool is missing?), or should it be an "archive" 
provider that also supports zip, lzma/7z, and other formats beyond just tar/gz 
or tar/bz2?


----------------------------------------
Feature #5786: Develop "archive" (bz2/gz) package provider.
https://projects.puppetlabs.com/issues/5786

Author: Michael Knox
Status: Needs Decision
Priority: Normal
Assignee: Nigel Kersten
Category: fileserving
Target version: 
Affected Puppet version: 
Keywords: 
Branch: 


Many of my manifests for applications need to cover the following process:
1. Download <application>.tar.gz to host
1. Expand <application>.tar.gz
1. Whatever install process is required


As an example (assuming Feature Request#5783):
 file {"/srv/<application>":
   source => "<puppet|http>://<path>/<application>.tar.gz",
   expand => true,
   recurse => true,
   ensure  => directory,
 }

This would create a directory, and populate it with the contents of 
<application>.tar.gz
It would also keep the contents in sync with <application>.tar.gz.

Expand is a new option for file, but perhaps this could be inferred (and the 
option not needed) as ensure => directory and source is a file.


-- 
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.

Reply via email to