Issue #16971 has been reported by Julien VAUBOURG.

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

Author: Julien VAUBOURG
Status: Unreviewed
Priority: Normal
Assignee: 
Category: language
Target version: 2.7.x
Affected Puppet version: 2.7.18
Keywords: 
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