Bug #2137
closedUnable to parse class with default parameters
Description
1.1 RC4. I have the following class definition which my proxy (1.1 RC1) is unable to import:
class pbis_open(
$domain = 'na.lan',
$ou = 'Resources/CRP/UnixServers/Linux',
$options = '--disable hostname',
$joinuser = 'unixdom',
$joinpassword = 'pass',
$requiremembershipof = '"na\\EITUnixAdmins" "wheel"',
) {
class {'pbis_open::install': } ->
class {'pbis_open::domainjoin': } ->
Class['pbis_open']
}
Updated by Ohad Levy over 11 years ago
which version of the proxy are you using?
Updated by Greg Sutcliffe over 11 years ago
- Category set to Puppet integration
This imports fine for me on the same setup as listed (Foreman rc4, Proxy rc1). Josh, what version of Puppet are you on?
Updated by Josh Baird over 11 years ago
- Status changed from New to Closed
Using IRB, it was determined that Puppet was showing a syntax error due to the trailing comma on the last paramater. This was hard to find, because my PM has two versions of puppet (to satisfy dependencies - see #1588). The proxy was using the non PE version of puppet which all of my clients use, so the error wasn't visible using puppet --debug on clients.