Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown resource type: 'google_cloud_ops::agent' #18

Open
pandrian opened this issue Feb 4, 2022 · 4 comments
Open

Unknown resource type: 'google_cloud_ops::agent' #18

pandrian opened this issue Feb 4, 2022 · 4 comments

Comments

@pandrian
Copy link

pandrian commented Feb 4, 2022

Running on CentOS Linux release 7.9.2009 (Core) on puppet 6.21.0
Followed documentation and manually installed the module, it installed to
'/etc/puppetlabs/code/environments/production/site-modules'

tried with a node but getting this error:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Unknown resource type: 'google_cloud_ops::agent' (file: /etc/puppetlabs/code/environments/ops_agent_check/site-modules/profile/manifests/stackdriver/opsagent.pp, line: 9, column: 1) on node testing-00_8234155039306228246

maybe I'm doing something wrong? anybody has any clues to spare?

Thanks

@pandrian
Copy link
Author

pandrian commented Feb 9, 2022

seems that when you build the module, it generates "google-cloud_ops_agents-0.1.0.tar.gz" when installed the module it is google-cloud_ops_agents but in manifest you are asking this

`google_cloud_ops::agent {'ops-agent'::

I think for puppet 6 the names must be matching in order for this to work?

@arjunasokan-bc
Copy link

@pandrian did you ever get this working?

@pandrian
Copy link
Author

Hey @arjunasokan-bc yeah had to rename the module being installed on puppet server to match the class manifest that calls it, at least on centOS that worked YMMV.

@arjunasokan-bc
Copy link

@pandrian worked for me thanks!

ltitus210 added a commit to ltitus210/google_cloud_ops that referenced this issue Mar 21, 2024
Module name should match the code otherwise Puppet run results in an unknown resource type error. GoogleCloudPlatform#18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants