Greetings, I am getting a perplexing message on a client: Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet configuration client: Could not find dependency Class[Matlab] for File[/usr/local/MATLAB/R2012a/etc/license.dat] at /etc/puppet/manifests/debian/matlab.pp:24 In my node manifest I have the "include matlab" line: root@neptune:/etc/puppet/modules# cat /etc/puppet/manifests/debian/matlab.pp node matlab { include base include nfs_systeam_client include libnss_db include set_root_environment include postfix include sun_java6 include matlab # This package is needed so that certain executables will work. # Such as: /usr/local/MATLAB/R2012a/etc/glnxa64/lmhostid package { "lsb": ensure => present, } file { "/usr/tmp": owner => "daemon", ensure => directory, mode => 0755, } file { "/usr/local/MATLAB/R2012a/etc/license.dat": source => "puppet:///private/usr/local/MATLAB/R2012a/etc/license.dat", require => Class["matlab"], notify => Service["matlab"], } file { "/etc/fw-skel/start.d/700-allow-matlab-flex-lm": source => "puppet:///private/etc/fw-skel/start.d/700-allow-matlab-flex-lm", require => Class["fw_skel::install"], notify => Service["fw-skel"], } } And my module seems simple enough: root@neptune:/etc/puppet/modules# cat /etc/puppet/modules/matlab/manifests/init.pp # Install the proprietary software outside of puppet. class matlab::install { file { "/etc/init.d/matlab": mode => 0755, source => "puppet:///modules/matlab/etc/init.d/matlab", } exec { "install_matlab_service": command => "insserv matlab", unless => "grep --quiet matlab /etc/init.d/.depend.*", require => File["/etc/init.d/matlab"], } } class matlab::service { service { "matlab": ensure => running, enable => true, hasrestart => true, # This is needed because we are "ensuring that matlab is ''running''". # I believe that this version of puppet (currently 2.6) greps the ps # table for the service name, but the actual matlab binary is the # following. # TODO check to see if the following pattern line is needed for puppet # 2.7. pattern => "/var/tmp/lm_TMW.ld", require => Class["matlab::install"], } } class matlab { include matlab::install include matlab::service } Is there something I am missing? I am running: Debian Testing for puppetmaster: 2.7.18-2 Debian Stable for puppet: 2.6.2-5+squeeze6 Thanks for any help! -mz -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Stefan Goethals
2013-Mar-08 18:42 UTC
Re: [Puppet Users] include statement not being "seen"
I think you might have a conflict problem between the node and class name as they are both the same.... Stefan - Zipkid - Goethals On Fri, Mar 8, 2013 at 6:54 PM, Matt Zagrabelny <mzagrabe@d.umn.edu> wrote:> Greetings, > > I am getting a perplexing message on a client: > > Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet > configuration client: Could not find dependency Class[Matlab] for > File[/usr/local/MATLAB/R2012a/etc/license.dat] at > /etc/puppet/manifests/debian/matlab.pp:24 > > In my node manifest I have the "include matlab" line: > > root@neptune:/etc/puppet/modules# cat > /etc/puppet/manifests/debian/matlab.pp > node matlab { > include base > include nfs_systeam_client > include libnss_db > include set_root_environment > include postfix > > include sun_java6 > include matlab > > # This package is needed so that certain executables will work. > # Such as: /usr/local/MATLAB/R2012a/etc/glnxa64/lmhostid > package { "lsb": ensure => present, } > > file { "/usr/tmp": > owner => "daemon", > ensure => directory, > mode => 0755, > } > file { "/usr/local/MATLAB/R2012a/etc/license.dat": > source => > "puppet:///private/usr/local/MATLAB/R2012a/etc/license.dat", > require => Class["matlab"], > notify => Service["matlab"], > } > file { "/etc/fw-skel/start.d/700-allow-matlab-flex-lm": > source => > "puppet:///private/etc/fw-skel/start.d/700-allow-matlab-flex-lm", > require => Class["fw_skel::install"], > notify => Service["fw-skel"], > } > > } > > And my module seems simple enough: > > root@neptune:/etc/puppet/modules# cat > /etc/puppet/modules/matlab/manifests/init.pp > # Install the proprietary software outside of puppet. > class matlab::install { > file { "/etc/init.d/matlab": > mode => 0755, > source => "puppet:///modules/matlab/etc/init.d/matlab", > } > exec { "install_matlab_service": > command => "insserv matlab", > unless => "grep --quiet matlab /etc/init.d/.depend.*", > require => File["/etc/init.d/matlab"], > } > } > > class matlab::service { > service { "matlab": > ensure => running, > enable => true, > hasrestart => true, > # This is needed because we are "ensuring that matlab is > ''running''". > # I believe that this version of puppet (currently 2.6) greps the > ps > # table for the service name, but the actual matlab binary is the > # following. > # TODO check to see if the following pattern line is needed for > puppet > # 2.7. > pattern => "/var/tmp/lm_TMW.ld", > require => Class["matlab::install"], > } > } > > class matlab { > include matlab::install > include matlab::service > } > > Is there something I am missing? > > I am running: > > Debian Testing for puppetmaster: 2.7.18-2 > Debian Stable for puppet: 2.6.2-5+squeeze6 > > Thanks for any help! > > -mz > > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On Friday, March 8, 2013 12:42:21 PM UTC-6, Stefan Goethals wrote:> > I think you might have a conflict problem between the node and class name > as they are both the same.... >It''s #1372. http://projects.puppetlabs.com/issues/1372 It''s a nasty one, and a few ideas are being discussed to fix it, but it''ll likely be 3.2 or 3.3, and possibly 4.x before it can be addressed.> > Stefan - Zipkid - Goethals > > > On Fri, Mar 8, 2013 at 6:54 PM, Matt Zagrabelny <mzag...@d.umn.edu<javascript:> > > wrote: > >> Greetings, >> >> I am getting a perplexing message on a client: >> >> Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet >> configuration client: Could not find dependency Class[Matlab] for >> File[/usr/local/MATLAB/R2012a/etc/license.dat] at >> /etc/puppet/manifests/debian/matlab.pp:24 >> >> In my node manifest I have the "include matlab" line: >> >> root@neptune:/etc/puppet/modules# cat >> /etc/puppet/manifests/debian/matlab.pp >> node matlab { >> include base >> include nfs_systeam_client >> include libnss_db >> include set_root_environment >> include postfix >> >> include sun_java6 >> include matlab >> >> # This package is needed so that certain executables will work. >> # Such as: /usr/local/MATLAB/R2012a/etc/glnxa64/lmhostid >> package { "lsb": ensure => present, } >> >> file { "/usr/tmp": >> owner => "daemon", >> ensure => directory, >> mode => 0755, >> } >> file { "/usr/local/MATLAB/R2012a/etc/license.dat": >> source => >> "puppet:///private/usr/local/MATLAB/R2012a/etc/license.dat", >> require => Class["matlab"], >> notify => Service["matlab"], >> } >> file { "/etc/fw-skel/start.d/700-allow-matlab-flex-lm": >> source => >> "puppet:///private/etc/fw-skel/start.d/700-allow-matlab-flex-lm", >> require => Class["fw_skel::install"], >> notify => Service["fw-skel"], >> } >> >> } >> >> And my module seems simple enough: >> >> root@neptune:/etc/puppet/modules# cat >> /etc/puppet/modules/matlab/manifests/init.pp >> # Install the proprietary software outside of puppet. >> class matlab::install { >> file { "/etc/init.d/matlab": >> mode => 0755, >> source => "puppet:///modules/matlab/etc/init.d/matlab", >> } >> exec { "install_matlab_service": >> command => "insserv matlab", >> unless => "grep --quiet matlab /etc/init.d/.depend.*", >> require => File["/etc/init.d/matlab"], >> } >> } >> >> class matlab::service { >> service { "matlab": >> ensure => running, >> enable => true, >> hasrestart => true, >> # This is needed because we are "ensuring that matlab is >> ''running''". >> # I believe that this version of puppet (currently 2.6) greps the >> ps >> # table for the service name, but the actual matlab binary is the >> # following. >> # TODO check to see if the following pattern line is needed for >> puppet >> # 2.7. >> pattern => "/var/tmp/lm_TMW.ld", >> require => Class["matlab::install"], >> } >> } >> >> class matlab { >> include matlab::install >> include matlab::service >> } >> >> Is there something I am missing? >> >> I am running: >> >> Debian Testing for puppetmaster: 2.7.18-2 >> Debian Stable for puppet: 2.6.2-5+squeeze6 >> >> Thanks for any help! >> >> -mz >> >> -- >> 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 <javascript:>. >> To post to this group, send email to puppet...@googlegroups.com<javascript:> >> . >> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Matt Zagrabelny
2013-Mar-08 19:49 UTC
Re: [Puppet Users] include statement not being "seen"
Thanks guys for clue-ing me in. -mz On Fri, Mar 8, 2013 at 1:23 PM, llowder <llowderiv@gmail.com> wrote:> > > On Friday, March 8, 2013 12:42:21 PM UTC-6, Stefan Goethals wrote: >> >> I think you might have a conflict problem between the node and class name >> as they are both the same.... > > > It''s #1372. http://projects.puppetlabs.com/issues/1372 > > It''s a nasty one, and a few ideas are being discussed to fix it, but it''ll > likely be 3.2 or 3.3, and possibly 4.x before it can be addressed. > >> >> >> Stefan - Zipkid - Goethals >> >> >> On Fri, Mar 8, 2013 at 6:54 PM, Matt Zagrabelny <mzag...@d.umn.edu> wrote: >>> >>> Greetings, >>> >>> I am getting a perplexing message on a client: >>> >>> Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet >>> configuration client: Could not find dependency Class[Matlab] for >>> File[/usr/local/MATLAB/R2012a/etc/license.dat] at >>> /etc/puppet/manifests/debian/matlab.pp:24 >>> >>> In my node manifest I have the "include matlab" line: >>> >>> root@neptune:/etc/puppet/modules# cat >>> /etc/puppet/manifests/debian/matlab.pp >>> node matlab { >>> include base >>> include nfs_systeam_client >>> include libnss_db >>> include set_root_environment >>> include postfix >>> >>> include sun_java6 >>> include matlab >>> >>> # This package is needed so that certain executables will work. >>> # Such as: /usr/local/MATLAB/R2012a/etc/glnxa64/lmhostid >>> package { "lsb": ensure => present, } >>> >>> file { "/usr/tmp": >>> owner => "daemon", >>> ensure => directory, >>> mode => 0755, >>> } >>> file { "/usr/local/MATLAB/R2012a/etc/license.dat": >>> source => >>> "puppet:///private/usr/local/MATLAB/R2012a/etc/license.dat", >>> require => Class["matlab"], >>> notify => Service["matlab"], >>> } >>> file { "/etc/fw-skel/start.d/700-allow-matlab-flex-lm": >>> source => >>> "puppet:///private/etc/fw-skel/start.d/700-allow-matlab-flex-lm", >>> require => Class["fw_skel::install"], >>> notify => Service["fw-skel"], >>> } >>> >>> } >>> >>> And my module seems simple enough: >>> >>> root@neptune:/etc/puppet/modules# cat >>> /etc/puppet/modules/matlab/manifests/init.pp >>> # Install the proprietary software outside of puppet. >>> class matlab::install { >>> file { "/etc/init.d/matlab": >>> mode => 0755, >>> source => "puppet:///modules/matlab/etc/init.d/matlab", >>> } >>> exec { "install_matlab_service": >>> command => "insserv matlab", >>> unless => "grep --quiet matlab /etc/init.d/.depend.*", >>> require => File["/etc/init.d/matlab"], >>> } >>> } >>> >>> class matlab::service { >>> service { "matlab": >>> ensure => running, >>> enable => true, >>> hasrestart => true, >>> # This is needed because we are "ensuring that matlab is >>> ''running''". >>> # I believe that this version of puppet (currently 2.6) greps the >>> ps >>> # table for the service name, but the actual matlab binary is the >>> # following. >>> # TODO check to see if the following pattern line is needed for >>> puppet >>> # 2.7. >>> pattern => "/var/tmp/lm_TMW.ld", >>> require => Class["matlab::install"], >>> } >>> } >>> >>> class matlab { >>> include matlab::install >>> include matlab::service >>> } >>> >>> Is there something I am missing? >>> >>> I am running: >>> >>> Debian Testing for puppetmaster: 2.7.18-2 >>> Debian Stable for puppet: 2.6.2-5+squeeze6 >>> >>> Thanks for any help! >>> >>> -mz >>> >>> -- >>> 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 post to this group, send email to puppet...@googlegroups.com. >>> >>> Visit this group at http://groups.google.com/group/puppet-users?hl=en. >>> For more options, visit https://groups.google.com/groups/opt_out. >>> >>> >> > -- > 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+unsubscribe@googlegroups.com. > To post to this group, send email to puppet-users@googlegroups.com. > Visit this group at http://groups.google.com/group/puppet-users?hl=en. > For more options, visit https://groups.google.com/groups/opt_out. > >-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
On 03/08/2013 06:54 PM, Matt Zagrabelny wrote:> Greetings, > > I am getting a perplexing message on a client: > > Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet > configuration client: Could not find dependency Class[Matlab] for > File[/usr/local/MATLAB/R2012a/etc/license.dat] at > /etc/puppet/manifests/debian/matlab.pp:24 > > In my node manifest I have the "include matlab" line: > > root@neptune:/etc/puppet/modules# cat /etc/puppet/manifests/debian/matlab.pp > node matlab { > include matlab > }Try include ::matlab ;) -- Jakov Sosic www.srce.unizg.hr -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Matt Zagrabelny
2013-Mar-11 13:50 UTC
Re: [Puppet Users] include statement not being "seen"
On Sun, Mar 10, 2013 at 6:30 PM, Jakov Sosic <jsosic@srce.hr> wrote:> On 03/08/2013 06:54 PM, Matt Zagrabelny wrote: >> >> Greetings, >> >> I am getting a perplexing message on a client: >> >> Mar 8 11:49:06 matlab puppet-agent[2028]: Could not run Puppet >> configuration client: Could not find dependency Class[Matlab] for >> File[/usr/local/MATLAB/R2012a/etc/license.dat] at >> /etc/puppet/manifests/debian/matlab.pp:24 >> >> In my node manifest I have the "include matlab" line: >> >> root@neptune:/etc/puppet/modules# cat >> /etc/puppet/manifests/debian/matlab.pp >> node matlab { >> include matlab >> } > > > Try include ::matlabThanks, Jarkov. I''ve already renamed the class to matlab_software. Lame. I know. I''ll keep your suggestion in mind for future scenarios. Thanks! -mz -- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.