stdlib module causes puppet failure

39 views
Skip to first unread message

Michael Watters

unread,
Jun 20, 2019, 1:45:02 PM6/20/19
to Puppet Users
I'm having an issue with the puppetlabs-stdlib module causing compilation failures using the puppet apply command.  

> Error: Class 'stdlib' is already defined (file: /mnt/live/puppeteer/conf.d/puppet/modules/stdlib/manifests/init.pp, line: 16); cannot redefine (file: /mnt/live/puppeteer/conf.d/puppet/modules/stdlib/manifests/init.pp, line: 16) on node host.example.com

The command used to apply our manifest is as follows.

puppet apply -d --noop --modulepath=puppet/modules --hiera_config=hiera.yaml ./



This node is running Fedora 29 with the puppet-headless package.  No changes have been made to the manifest and I'm able to apply the same code on other nodes with an older version of puppet.  Does anybody know how to resolve this or what would cause puppet to include the same class twice?

Josh Cooper

unread,
Jun 21, 2019, 2:28:10 PM6/21/19
to puppet...@googlegroups.com
You may be running into
https://tickets.puppetlabs.com/browse/PUP-9602. Try deleting
/mnt/live/puppeteer/conf.d/puppet/.resource_types

Josh

>
> --
> 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...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/e93ac4af-6e04-4aae-96dc-0362b4290f50%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Michael Watters

unread,
Jun 26, 2019, 1:19:05 PM6/26/19
to Puppet Users
Thanks.  Unfortunately that doesn't seem to be the issue.  There is no file named .resource_types within the puppet configuration dir.



You may be running into
https://tickets.puppetlabs.com/browse/PUP-9602. Try deleting
/mnt/live/puppeteer/conf.d/puppet/.resource_types

Josh

>
> --
> 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...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages