Skip to content
This repository was archived by the owner on May 14, 2021. It is now read-only.

Conversation

@joshuaspence
Copy link

Currently it is not possible to update the extracted tarball once it exists. Specifically, the following does not work:

s3file { '/tmp/my_archive.tar.gz':
  ensure => 'latest',
  bucket => 'my_s3_bucket',
  key    => 'my_archive.tar.gz',
  notify => Archive::Extract['my_archive'],
}
archive::extract { 'my_archive':
  ensure     => 'present',
  target     => '/mnt/my_archive',
  src_target => '/tmp',
}

This change allows ensure => latest, which removes the target directory and extracts the latest tarball.

Currently it is not possible to update the extracted tarball once it exists. Specifically, the following does not work:

```
s3file { '/tmp/my_archive.tar.gz':
  ensure => 'latest',
  bucket => 'my_s3_bucket',
  key    => 'my_archive.tar.gz',
  notify => Archive::Extract['my_archive'],
}
archive::extract { 'my_archive':
  ensure     => 'present',
  target     => '/mnt/my_archive',
  src_target => '/tmp',
}
```

This change allows `ensure => latest`, which removes the target directory and extracts the latest tarball.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant