-
Notifications
You must be signed in to change notification settings - Fork 81
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
CentOS 6.5 Troubles with cap setup #34
Comments
Hi thanks for the report and sorry for the wait. That's interesting, so are you saying About the second thing, any ideas what should we use instead of As you might have guessed, this plugin has been mostly tested on ubuntu. We should probably test on other distros too. |
No worries thanks for the response! Just spun up a brand new CentOS VM and I'm installing Nginx via yum (using the EPEL Repository). I think the sites-enabled/sites-active is some helper stuff the Ubuntu package does, not necessarily an Nginx default. Here's some output:
Instead of update-rc.d, the
|
I've been playing around and have a branch with a working version for CentOS. I'll try to clean it up a bit in the next few days and see if I can send a PR your way. If you're curious: seajoshc/capistrano-unicorn-nginx@capistrano-plugins:master...master Some OS detection or manual configuration are probably required here. Would you rather see automatic detection/configuration (which means making some assumptions), or would a YAML configuration file the user sets up be a better option? |
Hi, thanks for sharing the updates on this. The diff you sent is helpful. Please don't spend a lot of time on making the pull request that enables work with centos. In my mind solving the "meta" problem of handling any distro comes first. And that is something I'd like to give some time, tackle on my own and hopefully solve properly. I presume you can handle your day-to-day work with the changes in your fork now? |
Yep! Agree on the meta problem. Sounds good, if you'd like any help let me know. |
Adding my two cents since I'm going to probably end up using your fine work for a deployment to our own CentOS 6.5 Rails infrastructure. Correct, neither nginx or httpd use sites-enabled on CentOS. Conf.d is the standard and is more "Nixy" which is a stupid argument because synlinkibg into an enabled directory is a brilliant step forward. That's irrelevant though. For people using Chef to deploy code the vendor cookbooks for httpd and nginx will create Debian style directories and scripts to help modernize the CebtOS structure to something a bit more useful. So what you could do is if you wanted to abstract this to a meta problem is handle it like Chef and make the assumption that you should support no assumptions. There are multiple possible solutions for running a service such as runit, upstart, etc... Platform agnostisic development could be swung towards on a pivot by testing for the same set of service management strategies that Chef uses and then by abstraction, creating a singular directive whose underlying code translates to the correct manager (runit, upstart, etc...) Same for directory structure. Test for include directives inside of nginx's global configuration and determine whether sites-enabled is in the directives. Or test for sites-enabled / sites-available in the filesystem. Support it as the preferred method for enabling and disabling Nginx and if it doesn't exist fall back to conf.d or whatever is in the Include. Just my two cents. I look forward to forking this to see how much works with CentOS 6.5 once Chef has made the architecture more universal. |
Is there a timeline for fixing this? |
Hi, I'll be straight up honest and say that unfortunately there is not. |
@jmbogaty sorry for never replying.. |
Along the same lines as the idea @jmbogaty expressed, Facter is used by Puppet to determine OS level properties. This (https://github.com/puppetlabs/facter/blob/master/lib/facter/operatingsystem/linux.rb#L238) is how Facter determines which distro is installed. I've done a cursory search and haven't found an efficient way of duplicating this using ssh kit. I'm thinking that uploading a script and then running that script might be the best way of doing it. Thoughts? |
Met the issue on Centos 6.3, ignore error and manually config using centos |
I also got this error. as far as I know CentOS 7 didn't has
please guide update how to resolve it. |
I've solve the above said issue by just creating directories i.e Error
|
Hello and thanks for the gem. I'm trying to use it to get a CentOS 6.5 server setup with a Rails app and running into some troubles with the
cap production setup
step. It fails trying to symlink to /etc/nginx/sites-enabled with the following:If I manually create /etc/nginx/sites-enabled it then fails on running update-rc.d which does not exist on CentOS 6:
I'm using the following versions:
capistrano (3.2.1)
capistrano-unicorn-nginx (3.1.1)
The text was updated successfully, but these errors were encountered: