Last active
February 24, 2018 17:07
-
-
Save lvnilesh/5095680 to your computer and use it in GitHub Desktop.
install chef server 11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://docs.opscode.com/chef/install_server.html | |
http://www.ducea.com/2013/03/05/howto-migrate-to-chef-11/ | |
wget https://opscode-omnitruck-release.s3.amazonaws.com/ubuntu/12.04/x86_64/chef-server_11.0.6-1.ubuntu.12.04_amd64.deb | |
sudo dpkg -i chef-server* | |
sudo chef-server-ctl reconfigure | |
sudo chef-server-ctl test | |
mkdir -p ~/.chef | |
sudo cp /etc/chef-server/chef-webui.pem ~/.chef/ | |
sudo cp /etc/chef-server/chef-validator.pem ~/.chef/ | |
edit .bashrc to include this line | |
export PATH=/opt/chef-server/embedded/bin:$PATH | |
exec $SHELL | |
knife configure -i | |
WARNING: No knife configuration file found | |
Where should I put the config file? [/root/.chef/knife.rb] | |
Please enter the chef server URL: [http://localhost:4000] https://198.211.106.166 | |
Please enter a name for the new user: [root] nilesh | |
Please enter the existing admin name: [admin] chef-webui | |
Please enter the location of the existing admin's private key: [/etc/chef/admin.pem] ~/.chef/chef-webui.pem | |
Please enter the validation clientname: [chef-validator] | |
Please enter the location of the validation key: [/etc/chef/validation.pem] ~/.chef/chef-validator.pem | |
Please enter the path to a chef repository (or leave blank): | |
Creating initial API user... | |
Please enter a password for the new user: | |
Created user[nilesh] | |
Configuration file written to /root/.chef/knife.rb | |
ls -la .chef/ | |
total 24 | |
drwxr-xr-x 2 root root 4096 Mar 6 00:10 . | |
drwx------ 5 root root 4096 Mar 6 00:08 .. | |
-rw------- 1 root root 1679 Mar 6 00:06 chef-validator.pem | |
-rw-r----- 1 root root 1675 Mar 6 00:06 chef-webui.pem | |
-rw-r--r-- 1 root root 356 Mar 6 00:10 knife.rb | |
-rw-r--r-- 1 root root 1679 Mar 6 00:10 nilesh.pem | |
cat knife.rb | |
log_level :info | |
log_location STDOUT | |
node_name 'nilesh' | |
client_key '/root/.chef/nilesh.pem' | |
validation_client_name 'chef-validator' | |
validation_key '/root/.chef/chef-validator.pem' | |
chef_server_url 'https://198.211.106.166' | |
syntax_check_cache_path '/root/.chef/syntax_check_cache' | |
knife client list | |
chef-validator | |
chef-webui | |
knife node list | |
knife user list | |
admin | |
nilesh |
@lvnilesh change hostname and add 'amazon' case in /opt/chef-server/embedded/cookbooks/runit/recipes/default.rb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The error I got on ubuntu in azure VM