Skip to content
This repository was archived by the owner on Jun 17, 2022. It is now read-only.
This repository was archived by the owner on Jun 17, 2022. It is now read-only.

Module throws an error on puppetserver when running environment isolation #36

@andylytical

Description

@andylytical

Describe the Bug

When running environment isolation, the following error is thrown:
Failed to load custom type 'mysql_login_path' from '/etc/puppetlabs/code/environments/production/modules/mysql/lib/puppet/type/mysql_login_path.rb': cannot load such file -- puppet/resource_api

Expected Behavior

Puppet environment isolation should run without errors.

Steps to Reproduce

Steps to reproduce the behavior:

  1. Add to Puppetfile: mod 'puppetlabs-resource_api', '1.1.0'
  2. On puppet master machine, run r10k deploy environment -p -v debug2
  3. On puppet master machine, run puppet generate types --environment production

Environment

  • puppet --version: 5.5.20
  • puppetserver version: 5.3.13
  • CentOS Linux release 7.8.2003

Additional Context

This module is included as a dependency for puppetlabs/mysql, which also throws a similar error during environment isolation:
Error: Failed to load custom type 'mysql_login_path' from '/etc/puppetlabs/code/environments/production/modules/mysql/lib/puppet/type/mysql_login_path.rb': cannot load such file -- puppet/resource_api

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions