Trying to figure out how to debug puppet apply

146 views
Skip to first unread message

l...@leosnetsinger.com

unread,
Feb 8, 2018, 3:13:22 PM2/8/18
to Puppet Users
Hello all,

Thanks for the help in advance.

I am trying to understand where in my puppet run this error is coming from and how to debug.

Background information if helpful:
 - Moving this node from a Puppet Master infrastructure to master-less. 
-  Currently not using hiera


Command:
puppet apply /etc/puppetlabs/code/environments/production/manifests/site.pp  --environment=production --environmentpath=/etc/puppetlabs/code/environments/ --debug --verbose

Output:
Debug: Facter: resolving Xen facts.
Debug: Evicting cache entry for environment 'production'
Debug: Caching environment 'production' (ttl = 0 sec)
Debug: importing '/etc/puppetlabs/code/environments/production/site/role/manifests/hybrisapp.pp' in environment production
Debug: Automatically imported role::hybrisapp from role/hybrisapp into production
Debug: ModuleLoader: module 'role' has unknown dependencies - it will have all other modules visible
Debug: importing '/etc/puppetlabs/code/environments/production/site/profile/manifests/baseconfig.pp' in environment production
Debug: Automatically imported profile::baseconfig from profile/baseconfig into production
Debug: ModuleLoader: module 'profile' has unknown dependencies - it will have all other modules visible
Debug: importing '/etc/puppetlabs/code/environments/production/modules/yum/manifests/init.pp' in environment production
Error: Illegal expression. A Type-Name is unacceptable as function name in a Function Call at /etc/puppetlabs/code/environments/production/modules/yum/manifests/init.pp:151:20
Error: Illegal expression. A Type-Name is unacceptable as function name in a Function Call at /etc/puppetlabs/code/environments/production/modules/yum/manifests/init.pp:152:20
Error: Illegal expression. A Type-Name is unacceptable as function name in a Function Call at /etc/puppetlabs/code/environments/production/modules/yum/manifests/init.pp:160:7
Error: Found 3 errors. Giving up


It is not liking something about how I am using the yum module(https://forge.puppet.com/puppet/yum) module. 


This where it is being used:
class profile::baseconfig {
  include yum
  include ntp
  include wget
}

Any help on next steps to debug would be appreciated.

warron.french

unread,
Feb 8, 2018, 4:13:49 PM2/8/18
to puppet...@googlegroups.com
Post a copy of the yum.pp (baseconfig::yum), ntp.pp (baseconfig::ntp) and wget.pp (baseconfig::wget) files.

Or do you have all 3 classes in the same manifest - init.pp?

--------------------------
Warron French


--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/3e90d520-4604-4225-ab20-0b9770794c7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

l...@leosnetsinger.com

unread,
Feb 8, 2018, 4:58:42 PM2/8/18
to Puppet Users
Hello Warren,

All three of these are the standard modules from the Puppet Forge.  I am using the Roles and Profiles pattern so I have a site.pp 

node /app/ {
  include role::hybrisapp
}

that references roles:

class role::hybrisapp {
  include profile::baseconfig
  include profile::hybris
}

I attached the yum, wget and ntp init.pp files from the modules

Thanks much, Leo

--------------------------
Warron French


To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
init.pp
init.pp
init.pp
Reply all
Reply to author
Forward
0 new messages