'7. Tips/CHEF (opscode)'에 해당되는 글 2건
How to change chef-server's nginx configure
There are two ways to achieve this.
First is to use nginx's config file directly. chef-server's nginx config file is located under
/var/opt/chef-server/nginx/etc/nginx.conf |
After changing some settings, restart chef-server as below:
sudo chef-server-ctl restart |
Second is to use chef-server.rb file instead of using nginx.conf file
This file is located under /etc/chef-server. If it doesn't exist, just create it. put some values you want in it as below:
nginx['ssl_port'] = 449 |
To see the more detailed information about this, visit the following link:
http://docs.opscode.com/config_rb_chef_server_optional_settings.html
After specifying some options, run the following commands to apply those.
sudo chef-server-ctl reconfigure sudo chef-server-ctl restart |
Knife bootstrap beyond a jump host failed just showing following log:
DEBUG: Adding xx.xx.xxx.xxx DEBUG: establishing connection to 127.0.0.1:xxxxxx DEBUG: connection established INFO: negotiation protocol version ERROR: Net::SSH:Disconnect: connection closed by remote host |
To resolve this, change ssh config as below on the jump host:
sudo vi /etc/ssh/sshd_config
AllowTcpForwading yes |
And restart ssh service.