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

Module doesn't work with Amazon linux #27

Open
mattboston opened this issue Mar 6, 2014 · 1 comment
Open

Module doesn't work with Amazon linux #27

mattboston opened this issue Mar 6, 2014 · 1 comment

Comments

@mattboston
Copy link

Amazon Linux is a derivative of RHEL6/CentOS6 and functions exactly the same, but for some reason your module fails.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: OS: Amazon not supported at /etc/puppet/modules/nfs/manifests/params.pp:21 on node ops-backup
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

If I update the Params.pp file to add 'amazon' to the RHEL definition, then I get the following error.

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: No matching value for selector param 'undef' at /etc/puppet/modules/nfs/manifests/client/redhat/service.pp:17 on node ops-backup
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run

Here's the relevant facter info from an Amazon Linux instance

facter osfamily operatingsystem osmajor

operatingsystem => Amazon
osfamily => RedHat
osmajor =>

@haraldsk
Copy link
Owner

haraldsk commented Mar 7, 2014

Hey.

Look in: manifests/client/redhat/params.pp

That code need to be made aware aware that it's running on Amazon and set osmajor = 6.

If you make a pull request. Make sure to add in tests for Amazon aswell and i'll merge it. Else it will have to wait untill i have time to it myself.

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

2 participants