Looks like you're missing a question mark in the selector in your source
parameter. It should look like this:
source => $::architecture ? {
/(i386|i586|i686)/ => "puppet:///files/32/usr/local/nagios/libexec",
x86_64 => "puppet:///files/64/usr/local/nagios/libexec",
}
--
Peter
On Apr 17, 2012, at 7:44 PM, Geoff Davis wrote:
> Yup, I fat-fingered my response.
>
> On Apr 17, 2012, at 4:10 PM, Denmat <[email protected]> wrote:
>
>>> /(i386|i586|i686/) =>
>> should be
>>> /(i386|i586|i686)/ =>
>> shouldn't it?
>>
>> Den
>> On 18/04/2012, at 9:01, Forrie <[email protected]> wrote:
>>
>>> So, it's choking on this still at the line with the conditional:
>>>
>>> Apr 17 18:58:17 test-system puppet-agent[7590]: Could not retrieve
>>> catalog from remote server: Error 400 on SERVER: Could not parse for
>>> environment production: Syntax error at '{'; expected '}' at /etc/
>>> puppet/manifests/classes/nagios-client-test.pp:20 on node test-
>>> system.my-domain.com
>>>
>>> The brackets look balanced to me.
>>>
>>>
>>> file { "/usr/local/nagios/libexec":
>>> require => File['/usr/local/nagios'],
>>> ensure => directory,
>>> owner => 'root',
>>> group => 'root',
>>> mode => 655,
>>> recurse => true,
>>> source => $::architecture {
>>> /(i386|i586|i686/) => "puppet:///files/32/usr/local/
>>> nagios/libexec",
>>> x86_64 => "puppet:///files/64/usr/local/
>>> nagios/libexec",
>>> }
>>> }
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" 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-users?hl=en.