|
Configure and Start Chef-ServerThe Chef Server is a Merb application, and the configuration file is /etc/chef/server.rb. Here's the minimum used in this configuration. Filesystem locations are FHS compliant per Debian Packaging. Adjust the locations for your platform requirements or preferences. /etc/chef/server.rb Once the configuration file is tweaked as required for your environment, start the chef-server. On systems with the Debian/Ubuntu |
|
Install ApacheInstall Apache for your platform. For example, on Debian-based systems, use APT: Enable Apache ModulesThe following Apache modules need to be enabled:
For Debian-based systems, use the a2enmod script. See your platform's Apache documentation if you're not runnin Debian/Ubuntu. Create Chef Server Virtual HostSet up a vhost config file for the Chef Server. This will use the Proxy balancer for the Merb workers running on the localhost. Replace "server_fqdn" with the fully qualified domain name of the server. /etc/apache2/sites-available/chef_server.conf On Debian/Ubuntu systems, use a2ensite script to enable the vhost: Add listen Port for the WebUIAdd Listen 444 to the Apache config. On Debian/Ubuntu, this is in /etc/apache2/ports.conf. Depending on your environment, you may need to enable access to port 444 on your firewall.
Create SSL CertificatesIf you're using the Chef Repository, you can use the ssl_cert rake task to create a self-signed certificate. If you purchased an SSL certificate, you can use that instead, be sure to name it appropriately and change the vhost configuration as required.
(Re)Start ApacheWith all the proper bits in place, (re)start Apache. Client ConfigurationThe following configuration is required for clients to connect to the Chef server. /etc/chef/client.rb Replace server_fqdn with the server's fully qualified domain name. Next StepsPoint your browser at https://server_fqdn:444, where server_fqdn is the server you just configured. You should get the login page.
|
4 Comments
comments.show.hideSep 17, 2009
Erik Speckman
So, why is this preferable to the apache + passenger approach (or is it)?
Sep 18, 2009
Joshua Timberman
This will be the new default recommendation for configuring an SSL-frontend for Chef because it works well with both RubyGems installations and Platform-specific packages. Not all platforms have Passenger available as a package that can be added as a dependency (e.g., Debian/Ubuntu). We will still make a passenger recipe available for the Chef server, but it won't be the default.
Mar 09, 2010
Robert J. Berger
Is there an example for doing the same with Nginx?
Apr 12, 2011
Benedikt Böhm