Davíð Steinn Geirsson
2011-Jun-06 17:21 UTC
[Puppet Users] Unable to use types from modules
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I''m having some problems using modules which define their own types and providers. It seems the puppet client does not recognise them, even though they are set up according to the structure suggested in http://docs.puppetlabs.com/guides/plugins_in_modules.html I was initially trying to use the glassfish class from https://github.com/larstobi/puppet-glassfish. Since then I''ve tried some others, including this very simple VCS provider: https://github.com/jamtur01/puppet/commit/a1fcf677759858f22fccba0a383f2aa4e6a92e54 My module tree (/opt/puppet/etc/modules/subversiontest) is set up as follows: ./puppet/type/repo/repo.pp ./puppet/provider/repo/svn.pp ./puppet/provider/repo/git.pp ./manifests/init.pp My init.pp simply defines a basic resource from this: class subversiontest { repo { "wp": source => "http://core.svn.wordpress.org/trunk/", path => "/tmp/wp", ensure => present, } } I have set pluginsync = true under the [main] section of both the master and agent. Howver, when I try to apply this module, I always get an error regarding the type being unknown: err: Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find resource type repo at /opt/puppet/etc/modules/subversiontest/manifests/init.pp:6 on node rhel6test.skyrr.median.local My versions are: root@pmonitor02 ~ # puppetmasterd --version 0.25.4 root@rhel6test puppet # puppetd --version 0.25.5 I''m sure my mistake is very basic, but I''ve been stuck on this for a while. Can anyone provide suggestions on what could be wrong in my setup? Best regards, David -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3tDIUACgkQKXQCZqH9wfxVbwCePEvfHFQQUTNGSuYtLMt47YWk ya0An0ngLa0Ozrpf3LoqVd6ucozB7AiV =d9vP -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
David, Are you using environments? If so, you''re probably hitting bug #4409 ( https://projects.puppetlabs.com/issues/4409 ) If not, have you restarted your puppet master? Cheers 2011/6/7 Davíð Steinn Geirsson <david@basis.is>> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi all, > > I''m having some problems using modules which define their own types and > providers. It seems the puppet client does not recognise them, even > though they are set up according to the structure suggested in > http://docs.puppetlabs.com/guides/plugins_in_modules.html > > > I was initially trying to use the glassfish class from > https://github.com/larstobi/puppet-glassfish. Since then I''ve tried some > others, including this very simple VCS provider: > > > https://github.com/jamtur01/puppet/commit/a1fcf677759858f22fccba0a383f2aa4e6a92e54 > > My module tree (/opt/puppet/etc/modules/subversiontest) is set up as > follows: > > ./puppet/type/repo/repo.pp > ./puppet/provider/repo/svn.pp > ./puppet/provider/repo/git.pp > ./manifests/init.pp > > My init.pp simply defines a basic resource from this: > class subversiontest { > repo { "wp": > source => "http://core.svn.wordpress.org/trunk/", > path => "/tmp/wp", > ensure => present, > } > } > > > I have set > pluginsync = true > under the [main] section of both the master and agent. > > Howver, when I try to apply this module, I always get an error regarding > the type being unknown: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find resource type repo at > /opt/puppet/etc/modules/subversiontest/manifests/init.pp:6 on node > rhel6test.skyrr.median.local > > > My versions are: > root@pmonitor02 ~ # puppetmasterd --version > 0.25.4 > root@rhel6test puppet # puppetd --version > 0.25.5 > > > I''m sure my mistake is very basic, but I''ve been stuck on this for a while. > > Can anyone provide suggestions on what could be wrong in my setup? > > Best regards, > David > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.10 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ > > iEYEARECAAYFAk3tDIUACgkQKXQCZqH9wfxVbwCePEvfHFQQUTNGSuYtLMt47YWk > ya0An0ngLa0Ozrpf3LoqVd6ucozB7AiV > =d9vP > -----END PGP SIGNATURE----- > > -- > You received this message because you are subscribed to the Google Groups > "Puppet Users" group. > To post to this group, send email to puppet-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Davíð Steinn Geirsson
2011-Jun-07 09:06 UTC
Re: [Puppet Users] Unable to use types from modules
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi Michael, Thanks for your response. On 06/06/2011 09:32 PM, Michael Knox wrote:> David, > Are you using environments?This setup is not using environments yet (though it is planned).> > If so, you''re probably hitting bug #4409 ( > https://projects.puppetlabs.com/issues/4409 ) > > If not, have you restarted your puppet master?Yes, it does not seem to have any effect on this.> > Cheers > > 2011/6/7 Davíð Steinn Geirsson <david@basis.is> > > Hi all, > > I''m having some problems using modules which define their own types and > providers. It seems the puppet client does not recognise them, even > though they are set up according to the structure suggested in > http://docs.puppetlabs.com/guides/plugins_in_modules.html > > > I was initially trying to use the glassfish class from > https://github.com/larstobi/puppet-glassfish. Since then I''ve tried some > others, including this very simple VCS provider: > > > https://github.com/jamtur01/puppet/commit/a1fcf677759858f22fccba0a383f2aa4e6a92e54 > > My module tree (/opt/puppet/etc/modules/subversiontest) is set up as > follows: > > ./puppet/type/repo/repo.pp > ./puppet/provider/repo/svn.pp > ./puppet/provider/repo/git.pp > ./manifests/init.pp > > My init.pp simply defines a basic resource from this: > class subversiontest { > repo { "wp": > source => "http://core.svn.wordpress.org/trunk/", > path => "/tmp/wp", > ensure => present, > } > } > > > I have set > pluginsync = true > under the [main] section of both the master and agent. > > Howver, when I try to apply this module, I always get an error regarding > the type being unknown: > > err: Could not retrieve catalog from remote server: Error 400 on SERVER: > Could not find resource type repo at > /opt/puppet/etc/modules/subversiontest/manifests/init.pp:6 on node > rhel6test.skyrr.median.local > > > My versions are: > root@pmonitor02 ~ # puppetmasterd --version > 0.25.4 > root@rhel6test puppet # puppetd --version > 0.25.5 > > > I''m sure my mistake is very basic, but I''ve been stuck on this for a while. > > Can anyone provide suggestions on what could be wrong in my setup? > > Best regards, > David >>Best regards, David - -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.>> >>-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk3t6iYACgkQKXQCZqH9wfxY3ACghqobImDI2r8ggU/a7SdJ7vfP w28AnRolkNtP3Hx8pCkYCJrjTMr9NtyN =IV9C -----END PGP SIGNATURE----- -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.