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

node.js manifests/params.pp & manifests/init.pp should support Scientific Linux #37

Closed
stefanlasiewski opened this issue Jul 11, 2013 · 5 comments

Comments

@stefanlasiewski
Copy link

I am using Scientific Linux 6.4, which is a derivative of Red Hat Enterprise Linux and is similar to CentOS. SL is used extensively at research labs and higher-education institutions.

I was attempting to install Puppet Labs Razor onto a Scientific Linux 6.4 box, and the install failed with the following error. I posted the error to the puppet-razor mailing-list, and they recommended that I file a bug here [1].

root@sl6:~ # puppet apply /etc/puppet/modules/razor/tests/init.pp
Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/params.pp:55 on node sl6.example.gov

It appears that node.js does not support Scientific Linux:

root@sl6:~ # puppet apply /etc/puppet/modules/nodejs/tests/init.pp
Class nodejs does not support Scientific at /etc/puppet/modules/nodejs/manifests/params.pp:55 on node sl6.example.gov

Please update nodejs to support Scientific Linux.

[1] https://groups.google.com/forum/#!topic/puppet-razor/bJIz1Fs7r7k

@stefanlasiewski
Copy link
Author

I managed to workaround this with the following changes:

root@sl6:/etc/puppet/modules/nodejs # diff manifests/params.pp manifests/params.pp.orig 
26c26
<     'RedHat', 'CentOS', 'OEL', 'OracleLinux', 'Scientific', 'Scientific Linux': {
---
>     'RedHat', 'CentOS', 'OEL', 'OracleLinux': {
root@sl6:/etc/puppet/modules/nodejs # diff manifests/init.pp manifests/init.pp.orig 
42c42
<     'Fedora', 'RedHat', 'CentOS', 'OEL', 'OracleLinux', 'Amazon', 'Scientific', 'Scientific Linux': {
---
>     'Fedora', 'RedHat', 'CentOS', 'OEL', 'OracleLinux', 'Amazon': {
root@sl6:/etc/puppet/modules/nodejs # puppet apply /etc/puppet/modules/nodejs/tests/init.pp

Notice: Finished catalog run in 1.15 seconds

root@sl6:/etc/puppet/modules/nodejs #

@stefanlasiewski
Copy link
Author

And I committed a fix to my fork on Github.

stefanlasiewski@b4ae697

@haus
Copy link

haus commented Jul 13, 2013

It looks like another fix here would be to use osfamily instead of operatingsystem. Then osfamily could be redhat and catch all of those flavors.

@eigenhombre
Copy link

+1, I just got bit by this as well.

@juniorsysadmin
Copy link
Member

Scientific Linux should now work, but I haven't tested and can only base this opinion on unscientific evidence.

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

4 participants