Issue #16971 has been updated by eric sorenson.

Status changed from Unreviewed to Accepted
Assignee set to Henrik Lindberg
Target version changed from 2.7.x to 3.x
Keywords set to backlog

This looks like plusignment only works for resource attributes, not 
metaparameters like `require` (i also tried with a manifest that uses 
`subscribe` and got the same syntax error). 

Henrik -- can you please verify that's the case and please provide a 
tiny/medium/big level of effort estimation to make this operator work 
consistently?


----------------------------------------
Bug #16971: Add values to default resources with the plusignment
https://projects.puppetlabs.com/issues/16971#change-77647

Author: Julien Vaubourg
Status: Accepted
Priority: Normal
Assignee: Henrik Lindberg
Category: language
Target version: 3.x
Affected Puppet version: 2.7.18
Keywords: backlog
Branch: 


# Example #

Directly in site.pp:

    Package {
        require => File['/etc/apt/apt.conf.d/no-cache'],
    }

In the "blog" class:

    package { 'php5-cli':
        ensure  => present,
        require => Package['php5-cgi'],
    }

On the agent side, with the "*require => Package['php5-cgi']*" line:

    # puppet agent -t --noop -d | grep no-cache | grep -i blog
    #

Without it:

    # puppet agent -t --noop -d | grep no-cache | grep -i blog
    debug: /Stage[main]/Blog/Package[php5-cli]/require: requires 
File[/etc/apt/apt.conf.d/no-cache]
    #

And with "*require +> Package['php5-cgi']*":

    # puppet agent -t --noop -d | grep no-cache | grep -i blog
    err: Could not retrieve catalog from remote server: Error 400 on SERVER: 
Syntax error at '+>'; expected '}' at 
/etc/puppet/modules/blog/manifests/init.pp:5 on node xxxxx
    warning: Not using cache on failed catalog
    err: Could not retrieve catalog; skipping run

# Problem #

According to this example:

1. Define a resource set before as a default resource overwrite it.
1. The usage of the plusignment ("*+>*") operator is not recognized in this 
case.

How add values to default resources? The plusignment should work in this case.


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