Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am trying to bootstrap chef-server on Amazon Linux 64-bit instance, but for some reason chef-solo gives some errors. It seems that chef can't determine that Amazon Linux is actually a RedHat derivate and use redhat config. Is there any easy workaround for that?

Here is crash dump:

[Fri, 02 Mar 2012 07:52:44 +0000] INFO: Start handlers complete.
[Fri, 02 Mar 2012 07:52:44 +0000] ERROR: Running exception handlers
[Fri, 02 Mar 2012 07:52:44 +0000] ERROR: Exception handlers complete
[Fri, 02 Mar 2012 07:52:44 +0000] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[Fri, 02 Mar 2012 07:52:44 +0000] FATAL: Errno::ENOENT: No such file or directory 
- /usr/lib64/ruby/gems/1.8/gems/chef-0.10.8/distro//etc/init.d/chef-solr
share|improve this question
    
How are you invoking chef-solo? –  cjc Mar 2 '12 at 12:28
    
I am getting the same error and I invoke it as follows (just as detailed on the wiki): sudo chef-solo -c /etc/chef/solo.rb -j chef.json -r s3.amazonaws.com/chef-solo/bootstrap-latest.tar.gz –  user112787 Mar 3 '12 at 20:53

1 Answer 1

Although, amazon is based of Fedora/EL, the problem is that the platform is known as "amazon". The cookbooks are hardcoded to run on "centos", "redhat", "fedora" or "ubuntu", etc.

The solution is to host a custom version of the bootstrap.tar.gz somewhere, which has 'amazon' as the list of the supported platforms inside the metadata.rb of all cookbooks.

Ref.: http://tickets.opscode.com/browse/COOK-801

share|improve this answer
1  
This is the correct answer. Testing is done by Opscode on Ubuntu, Debian, CentOS, and RHEL. We do not test on Fedora, AmazonLinux or other "EL-alike" flavors because simply, they're not nearly as widely used, and testing takes time. –  jtimberman Mar 13 '12 at 1:26

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.