Skip to content
This repository has been archived by the owner on Mar 19, 2022. It is now read-only.

CloudLinux support #262

Closed
alexzorin opened this issue Jun 25, 2013 · 5 comments
Closed

CloudLinux support #262

alexzorin opened this issue Jun 25, 2013 · 5 comments

Comments

@alexzorin
Copy link

CloudLinux (http://cloudlinux.com/) is popularly used in sharing hosting environments, is (I believe) firmly within the RHEL family and should work with the existing bootstrapper.

At the moment it won't proceed because it hides the fact it is RHEL from /etc/issue and others:

# cat /etc/issue
CloudLinux Server release 5.9 (Sergey Oleynikov)

(which is just RHEL 5.9)

@matschaffer
Copy link
Owner

This should be doable by adding the following to https://github.com/matschaffer/knife-solo/blob/master/lib/knife-solo/bootstraps/linux.rb#L63

when %r{CloudLinux}
  {:type => "yum_omnibus"}

But I usually like to get it under testing to make sure we don't break support in the future. Do you know of an EC2 AMI in us-east for CloudLinux?

@tmatilai
Copy link
Collaborator

@alexzorin Could you please also paste the output of:

lsb_release -d s
cat /etc/redhat-release

/etc/issue is currently only inspected after those commands.

@matschaffer
Copy link
Owner

Oh, right. Thanks @tmatilai

@alexzorin
Copy link
Author

@tmatilai
For my RHEL 5/CloudLinux machine:

~  >lsb_release -d s
Description:    CloudLinux Server release 5.9 (Sergey Oleynikov)
~  >cat /etc/redhat-release
CloudLinux Server release 5.9 (Sergey Oleynikov)

@matschaffer CloudLinux isn't free, I've just always started on CentOS 5/6 and "converted" to CloudLinux. It comes with a trial which I believe should suffice for testing purposes.

There is this 'official' AMI which is a basic RHEL 6/CloudLinux distro, but it is missing from us-east for some reason.

I booted up that AMI in another region and:

[root@ip-10-240-87-105 ~]# lsb_release -d s
-bash: lsb_release: command not found
[root@ip-10-240-87-105 ~]# cat /etc/redhat-release
CloudLinux Server release 6.3
[root@ip-10-240-87-105 ~]# cat /etc/issue
CloudLinux Server release 6.3
Kernel \r on an \m

@tmatilai
Copy link
Collaborator

@alexzorin Thanks for all the information! As both lsb_release(if installed) and /etc/redhat-release also have the same format, it should be safe to assume that the patch suggested by Mat really works. So I'll commit and push it now.

The lack of integration test is unfortunate, but not sure if I want to start playing with the trials...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants