Issue #7267 has been reported by Philip Gardner. ---------------------------------------- Bug #7267: Ruby DSL definitions must have required parameters at the beginning or a syntax error occurs https://projects.puppetlabs.com/issues/7267
Author: Philip Gardner Status: Unreviewed Priority: Normal Assignee: Category: Target version: Affected Puppet version: Keywords: Branch: Order seems to matter when declaring a new definition in the Ruby DSL: This: <pre> define "instance", :ensure => "present", :owner => "owner", :group => "group", :platform => "jdk", :platform_version => "1.6.0_11", :platform_arch => "x86_64", :appserver => "resin", :appserver_version => "3.1.0", :appserver_arch => "x86_64", :family => "services", :ip, :parentdir => "/usr/local/someplace/" do </pre> cause this error: <pre> err: Could not retrieve catalog from remote server: Error 400 on SERVER: (eval):227:in `parse_ruby_file': compile error (eval):125: syntax error define "instance", :ensure => "present", :owner => "owner", :group => "owner", :platform => "jdk", :platform_version => "1.6.0_11", :platform_arch => "x86_64", :appserver => "resin", :appserver_version => "3.1.0", :appserver_arch => "x86_64", :ip, :family => "services", :parentdir => "/usr/local/someplace/" do </pre> However, if you move the :ip parameter to the beginning of the list, `define "instance", :ip, :ensure => "present"...`, there is no reported error and catalog compilation succeeds. -- 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.
