simondeziel/puppet-apparmor

Syntax Error in init.pp

Closed this issue · 1 comments

I just tried executing this module via puppet agent --test --noop and got the following error:

# puppet agent --version
3.8.7
# puppet agent --test --noop
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Syntax error at 'Boolean'; expected ')' at /etc/puppet/environments/production/modules/apparmor/manifests/init.pp:30 on node puppet01
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

The offending code is here:

class apparmor (
  Boolean $package_manage       = true, /* THIS LINE */
  String  $service_ensure       = 'running',
  Boolean $service_manage       = true,
  String  $profile_default_base = "puppet:///modules/apparmor/aa-profiles/${::lsbdistrelease}",
  Hash    $profiles             = {},
) {

@nerdcorenet, this error is because your old puppet version doesn't support data types (puppet 4+). I just tagged a v1.0.0 version that you may want to give a try. It should be compatible with your older version.