Bug #4459

alias for resource can't be used with realize

Added by Kjetil Torgrim Homme over 1 year ago. Updated over 1 year ago.

Status:Accepted Start date:08/03/2010
Priority:Normal Due date:
Assignee:- % Done:

0%

Category:functions
Target version:2.7.x
Affected Puppet version:0.25.5 Branch:
Keywords:
Votes: 0

Description

It seems a resource alias is only usable in dependencies. Example:

@package {"coreutils": alias => "foo", ensure => installed }
realize Package["foo"]

Result:

Failed to realize virtual resources Package[foo] on node feh

I would expect it to work. Testing was done on 0.25.5.

History

Updated by Joe McDonagh over 1 year ago

I can tell you that this will work:

@file { "/tmp/foo": ensure => "present", alias => "foobar" }
File <| alias == "foobar" |>

It’s the specific syntax of using ‘alias’ in place of ‘name’ that doesn’t work.

Updated by Nick Lewis over 1 year ago

  • Affected Puppet version set to 0.25.5

Updated by James Turnbull over 1 year ago

  • Category set to functions
  • Status changed from Unreviewed to Accepted
  • Target version set to 2.7.x

Also available in: Atom PDF