yum install -y https://web-dl.packagecloud.io/chef/stable/packages/el/6/chef-server-core-12.1.2-1.el6.x86_64.rpm
chef-server-ctl reconfigure
# chef-server-ctl user-create knife chef node [email protected] password --filename /etc/chef/knife.pem
# chef-server-ctl org-create chef "Chef" --association knife --filename /etc/chef/chef-validator.pem
Last active
August 29, 2015 14:25
-
-
Save tkuchiki/b0a87b1fe51de7049cfa to your computer and use it in GitHub Desktop.
Chef Server 12
This file contains hidden or 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
chef_server = "Chef Server FQDN" | |
node_name `hostname -s `.chomp | |
log_level :info | |
log_location STDOUT | |
chef_server_url "https://#{chef_server}/organizations/chef/" | |
validation_client_name 'pivotal' | |
validation_key '/etc/chef/pivotal.pem' | |
syntax_check_cache_path '/var/cache/chef/syntax_check_cache' |
# create client.rb
mkdir -p /var/cache/chef
scp chef-server:/etc/opscode/pivotal.pem /etc/chef/ # /etc/opscode/pivotal.pem to copy from Chef Server
chef-client
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment