Ask Your Question

How to declare modules in site.pp in my case

asked 2015-11-23 15:57:55 -0600

sandeep gravatar image

i am trying to trigger a file named instance.pp which is in following path /etc/puppet/modules/websphere/manifests/ihs/instance.pp

i am trying to call the module from site.pp as follow

node 'yyzcpa5002'{ class { 'websphere:ihs:instance': } }

i am facing an error : Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Puppet::Parser::AST::Resource failed with error ArgumentError: Could not find declared class websphere:ihs:instance at /etc/puppet/manifests/site.pp:2 on on node yyzcpa5002.

Can someone please help to resolve the issue. i downloded the ihs module from puppet-forge.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-11-24 02:56:07 -0600

ramindk gravatar image

updated 2015-11-24 11:47:38 -0600

Stop creating comments on other forum posts that have nothing to do with your question. If you want your question answered quicker, try formatting your question using the editing tools so that it is readable. I will continue to delete comments that don't add information.

Next, if someone has actually answered your question, mark it answered. Or edit your question with more detail. The harder you make it to answer your question the less likely anyone will bother.

Lastly the proper syntax is two colons,as separators, not one.

class { 'websphere::ihs::instance': }

or check the file to see if it really is a class. Assuming it's a define then the syntax is

websphere::ihs::instance { 'somename': }
edit flag offensive delete link more


Sorry about that.. I tried with two colons, but still no luck. Facing same error.

sandeep gravatar imagesandeep ( 2015-11-24 07:26:45 -0600 )edit

/etc/puppet/modules ├── helloworld (???) ├── hkhan2-ibmwasihs (v0.1.18) ├── hkhan2-ojdk7 (v1.0.5) ├── joshbeard-ibm_installation_manager (v0.1.1) ├── joshbeard-websphere (v0.1.1) ├── nanliu-staging (v1.0.3) ├── puppetlabs-apache (v1.7.0) ├── puppetlabs-concat (v1.2.4) └── puppetlabs-stdlib (v4.9.0

sandeep gravatar imagesandeep ( 2015-11-24 07:35:24 -0600 )edit

After declaring it as a define type, Now i don't find any errors. Thanks.

sandeep gravatar imagesandeep ( 2015-11-24 14:34:34 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-11-23 15:57:55 -0600

Seen: 145 times

Last updated: Nov 24 '15