Ask Your Question
0

How to install system package and gem with the same name? [closed]

asked 2013-09-08 03:17:22 -0500

deric gravatar image

I would like to install redis debian package and ruby wrapper for redis, unfortunately both have same name.

Basically the code looks like this:

  package { 'redis':
    ensure   => 'installed',
    name     => 'redis',
  }

  package { 'redis-gem':
    ensure   => 'installed',
    name     => 'redis',
    provider => 'gem',
  }

I wasn't able to convince puppet, that those are different resources:

Puppet::Parser::AST::Resource failed with error ArgumentError: Cannot alias Package[redis-gem] to ["redis"]; resource ["Package", "redis"] already declared

Is there a way how to bypass this?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by GregLarkin
close date 2013-09-09 15:16:30.303520

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-09-08 07:26:27 -0500

deric gravatar image

updated 2016-02-16 04:04:43 -0500

Best way is using stdlib module:

ensure_resource('package', ['redis'], { 'provider' => 'gem', 'ensure' => 'present', } )

edit flag offensive delete link more
0

answered 2013-09-08 05:04:43 -0500

Willi gravatar image
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-09-08 03:17:22 -0500

Seen: 1,489 times

Last updated: Feb 16 '16