redisio icon indicating copy to clipboard operation
redisio copied to clipboard

Support to use default_release for package install

Open ukcuf opened this issue 5 years ago • 2 comments

Hello, do we have any way or plan to specify the default_release for installation when package_install == true?

On Debian/Ubuntu system, it is useful to pick up latest Redis released version from backports instead of stable repository.

A rough change of supporting this thought is like this commit https://github.com/ukcuf/redisio/commit/dbda53a665c378eaf0e3c93e6ed5b81a07b2e567

Not sure if I can file a PR like above?

Thanks.

ukcuf avatar Oct 08 '18 02:10 ukcuf

+1 I get errors with just default attributes:

Recipe: redisio::install
  * apt_package[redisio_package_name] action install
    
    ================================================================================
    Error executing action `install` on resource 'apt_package[redisio_package_name]'
    ================================================================================
    
    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '100'
    ---- Begin output of ["apt-get", "-q", "-y", "--allow-downgrades", "-o", "Dpkg::Options::=--force-confdef", "-o", "Dpkg::Options::=--force-confold", "install", "redis-server=2.8.20"] ----
    STDOUT: Reading package lists...
    Building dependency tree...
    Reading state information...
    STDERR: E: Version '2.8.20' for 'redis-server' was not found
    ---- End output of ["apt-get", "-q", "-y", "--allow-downgrades", "-o", "Dpkg::Options::=--force-confdef", "-o", "Dpkg::Options::=--force-confold", "install", "redis-server=2.8.20"] ----
    Ran ["apt-get", "-q", "-y", "--allow-downgrades", "-o", "Dpkg::Options::=--force-confdef", "-o", "Dpkg::Options::=--force-confold", "install", "redis-server=2.8.20"] returned 100
    

Ubuntu 18.04.1 LTS

should be possible. i will have a look

salsa-dev avatar Aug 29 '19 19:08 salsa-dev

Marking stale due to inactivity. Remove stale label or comment or this will be closed in 7 days. Alternatively drop by the #sous-chefs channel on the Chef Community Slack and we'll be happy to help! Thanks, Sous-Chefs.

github-actions[bot] avatar Sep 30 '20 00:09 github-actions[bot]