Stefan Lasiewski
2013-Jul-11 00:36 UTC
[Puppet Users] Puppet Razor doesn''t recognize Scientific Linux?
I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat Enterprise Linux, similar to CentOS. I am following the instructions at http://forge.puppetlabs.com/puppetlabs/razor to install Puppet Razor on my new Puppet Master node. The instructions say: Installation Install puppetlabs-razor module and dependencies into module_path: $ puppet module install puppetlabs-razor Preparing to install into /etc/puppet/modules ... Downloading from http://forge.puppetlabs.com ... Installing -- do not interrupt ... /etc/puppet/modules ... Puppet apply, apply test manifests: puppet apply razor/tests/init.pp However, when I try this I get an error: root@sl6:/etc/puppet/modules # puppet apply razor/tests/init.pp Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/params.pp:55 on node sl6.example.org I thought that the actual cause of this error was line 26 in /etc/puppet/modules/nodejs/manifests/params.pp , which includes RHEL, CentOS & Oracle Enterprise Linux, but not Scientific Linux: class nodejs::params { case $::operatingsystem { ... ... ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'': { $majdistrelease = $::lsbmajdistrelease ? { '''' => regsubst($::operatingsystemrelease,''^(\d+)\.(\d+)'',''\1''), I tried to fix this by modifying line 26 to include strings for Scientific Linux: # ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'': { ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'', ''Scientific Linux'', ''Scientific'': { $majdistrelease = $::lsbmajdistrelease ? { '''' => regsubst($::operatingsystemrelease,''^(\d+)\.(\d+)'',''\1''), But I get the same error: root@sl6:/etc/puppet/modules # puppet apply razor/tests/init.pp Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/init.pp:59 on node sl6.example.org Any ideas how to get Razor to recognize Scientific Linux? -= Stefan -- 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. For more options, visit https://groups.google.com/groups/opt_out.
Wolf Noble
2013-Jul-11 01:24 UTC
Re: [Puppet Users] Puppet Razor doesn''t recognize Scientific Linux?
It seems like the match is ''Scientific'' not ''Scientific Linux'' but I''m nowhere near a computer to check MobileMail> On Jul 10, 2013, at 19:36, Stefan Lasiewski <lasiewski@gmail.com> wrote: > > I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat Enterprise Linux, similar to CentOS. > > I am following the instructions at http://forge.puppetlabs.com/puppetlabs/razor to install Puppet Razor on my new Puppet Master node. The instructions say: > > Installation > > Install puppetlabs-razor module and dependencies into module_path: > > $ puppet module install puppetlabs-razor > Preparing to install into /etc/puppet/modules ... > Downloading from http://forge.puppetlabs.com ... > Installing -- do not interrupt ... > /etc/puppet/modules > ... > > Puppet apply, apply test manifests: > > puppet apply razor/tests/init.pp > > However, when I try this I get an error: > > root@sl6:/etc/puppet/modules # puppet apply razor/tests/init.pp > Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/params.pp:55 on node sl6.example.org > > I thought that the actual cause of this error was line 26 in /etc/puppet/modules/nodejs/manifests/params.pp , which includes RHEL, CentOS & Oracle Enterprise Linux, but not Scientific Linux: > > class nodejs::params { > > case $::operatingsystem { > ... > ... > > ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'': { > $majdistrelease = $::lsbmajdistrelease ? { > '''' => regsubst($::operatingsystemrelease,''^(\d+)\.(\d+)'',''\1''), > > > I tried to fix this by modifying line 26 to include strings for Scientific Linux: > > # ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'': { > ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'', ''Scientific Linux'', ''Scientific'': { > $majdistrelease = $::lsbmajdistrelease ? { > '''' => regsubst($::operatingsystemrelease,''^(\d+)\.(\d+)'',''\1''), > > But I get the same error: > > root@sl6:/etc/puppet/modules # puppet apply razor/tests/init.pp > Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/init.pp:59 on node sl6.example.org > > > Any ideas how to get Razor to recognize Scientific Linux? > > -= Stefan > > -- > 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. > 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. For more options, visit https://groups.google.com/groups/opt_out.
Peter Bukowinski
2013-Jul-11 01:36 UTC
Re: [Puppet Users] Puppet Razor doesn''t recognize Scientific Linux?
Actually, you get a different error pointing to init.pp. You also need to modify manifests/init.pp on line 42 to include ''Scientific''. -- Peter Bukowinski On Jul 10, 2013, at 8:36 PM, Stefan Lasiewski <lasiewski@gmail.com> wrote:> I am using Scientific Linux 6.4. Scientific Linux is a derivative of Red Hat Enterprise Linux, similar to CentOS. > > I am following the instructions at http://forge.puppetlabs.com/puppetlabs/razor to install Puppet Razor on my new Puppet Master node. The instructions say: > > Installation > > Install puppetlabs-razor module and dependencies into module_path: > > $ puppet module install puppetlabs-razor > Preparing to install into /etc/puppet/modules ... > Downloading from http://forge.puppetlabs.com ... > Installing -- do not interrupt ... > /etc/puppet/modules > ... > > Puppet apply, apply test manifests: > > puppet apply razor/tests/init.pp > > However, when I try this I get an error: > > root@sl6:/etc/puppet/modules # puppet apply razor/tests/init.pp > Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/params.pp:55 on node sl6.example.org > > I thought that the actual cause of this error was line 26 in /etc/puppet/modules/nodejs/manifests/params.pp , which includes RHEL, CentOS & Oracle Enterprise Linux, but not Scientific Linux: > > class nodejs::params { > > case $::operatingsystem { > ... > ... > > ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'': { > $majdistrelease = $::lsbmajdistrelease ? { > '''' => regsubst($::operatingsystemrelease,''^(\d+)\.(\d+)'',''\1''), > > > I tried to fix this by modifying line 26 to include strings for Scientific Linux: > > # ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'': { > ''RedHat'', ''CentOS'', ''OEL'', ''OracleLinux'', ''Scientific Linux'', ''Scientific'': { > $majdistrelease = $::lsbmajdistrelease ? { > '''' => regsubst($::operatingsystemrelease,''^(\d+)\.(\d+)'',''\1''), > > But I get the same error: > > root@sl6:/etc/puppet/modules # puppet apply razor/tests/init.pp > Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/init.pp:59 on node sl6.example.org > > > Any ideas how to get Razor to recognize Scientific Linux? > > -= Stefan > > -- > 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. > 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. For more options, visit https://groups.google.com/groups/opt_out.