Project

General

Custom queries

Profile

Actions

Bug #2878

closed

Import Classes fails when using parser = future

Added by Tomas Edwardsson over 11 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Puppet
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

I have manifests which use the 3.2 experimental features described in http://docs.puppetlabs.com/puppet/3/reference/lang_experimental_3_2.html using parser=future in the [master] section.

Version: foreman-proxy-1.2.0-1.el6.noarch

I'm getting the following error in the smart proxy access.log

Error while parsing /etc/puppet/modules/ok_development/servicedesk/manifests/mail/config.pp: Syntax error at '.'; expected '}' at line 11
Error while parsing /etc/puppet/modules/ok_development/ssl_cert/manifests/init.pp: Syntax error at '.'; expected '}' at line 2

Line 11 contains:

        $map_emails.each |$index, $value| {

One of the manifests that fail looks like this:

class servicedesk::mail::config( $apikey, $apiurl, $ignore_senders, $save_all_mails, $map_emails) {
        file { "/etc/servicedesk/mail.ini":
                owner => root,
                group => mail,
                mode => 640,
                content => template("servicedesk/mail.ini.erb"),
        }

        include mtr

        $map_emails.each |$index, $value| {
                $alias = regsubst($index, '@', '-')
                mtr::sendmail::config::map_entry { $index:
                        recipient => "servicedesk-mail-${alias}",
                        entry_type => 'virtusertable' }
                mailalias { "servicedesk-mail-${alias}":
                        recipient => "| /etc/smrsh/servicedesk-mail ${value}" }
        }
}

#1

Updated by Dominic Cleal over 11 years ago

  • Project changed from Foreman to Smart Proxy
  • Category set to Puppet
  • Target version set to 1.3.0
#5

Updated by Lukas Zapletal over 11 years ago

  • Target version deleted (1.3.0)
#16

Updated by Dominic Cleal over 11 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 1.9.3
#17

Updated by Dominic Cleal over 11 years ago

  • Translation missing: en.field_release set to 2
#18

Updated by Rickard von Essen over 11 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF