Hi All,
I’ve just built a new chef server, our existing infrastructure requires the use of DHCP networking (we reserve the IP to keep it static).
I’ve found the chef_server_url is incorrect, its used https://chef/ instead of https://chef.ourdomain.com/ where we have a real SSL cert installed in nginx.
[root@chef ~]# hostname
chef.ourdomain.com
(replaced ourdomain with our real domain).
When I download the generate knife.rb config it comes back with:
current_dir = File.dirname(__FILE__)
log_level :info
log_location STDOUT
node_name "myusername"
client_key "#{current_dir}/myusername.pem"
chef_server_url "https://chef/organizations/short_name"
cookbook_path ["#{current_dir}/../cookbooks"]
Can I overwrite this value somewhere in the config?