How to change ssl port for chef 11 omnibus server

Hi all,

i installed chef server via the omnibus installer (ubuntu). And used

nginx[‘ssl_port’]=8443

in my chef-server.rb. Unfortunately cookbook uploading via knife fails, as it sill tries to use 443 (while, for example, knife node list works). I had a look
at the code and also added:

nginx[‘url’]=“https://#{node[‘fqdn’]}:8443"
bookshelf[‘vip’]=node[‘fqdn’]+”:8443"

This time the upload phase uses the right url, but the commit (during cookbook upload) fails, because it still uses 443.

So there is yet another Attribute to change?

Regards,

Martin

assuming you're using the chef-server cookbook (opscode/git) to install.
Set the attribute:

node[:chef-server][:configuration][:nginx][:ssl_port] = 8443

That should get your server installed (if you use knife bootstrap and add
chef-server to the run list with a -j to specify this data). This is
working for me with chef-server/master cookbook. I am not sure if the
community cookbook has been updated to whats in git yet.

On Thu, Feb 7, 2013 at 9:13 PM, Martin Eigenbrodt <
martineigenbrodt@gmail.com> wrote:

Hi all,

i installed chef server via the omnibus installer (ubuntu). And used

nginx['ssl_port']=8443

in my chef-server.rb. Unfortunately cookbook uploading via knife fails,
as it sill tries to use 443 (while, for example, knife node list works). I
had a look
at the code and also added:

nginx['url']="https://#{node['fqdn']}:8443"
bookshelf['vip']=node['fqdn']+":8443"

This time the upload phase uses the right url, but the commit (during
cookbook upload) fails, because it still uses 443.

So there is yet another Attribute to change?

Regards,

Martin

I should specify that im using a custom bootstrap with the cookbook inside
it and solo to provision the server via chef-server cookbook.

On Fri, Feb 8, 2013 at 2:08 AM, Jesse Nelson spheromak@gmail.com wrote:

assuming you're using the chef-server cookbook (opscode/git) to install.
Set the attribute:

node[:chef-server][:configuration][:nginx][:ssl_port] = 8443

That should get your server installed (if you use knife bootstrap and add
chef-server to the run list with a -j to specify this data). This is
working for me with chef-server/master cookbook. I am not sure if the
community cookbook has been updated to whats in git yet.

On Thu, Feb 7, 2013 at 9:13 PM, Martin Eigenbrodt <
martineigenbrodt@gmail.com> wrote:

Hi all,

i installed chef server via the omnibus installer (ubuntu). And used

nginx['ssl_port']=8443

in my chef-server.rb. Unfortunately cookbook uploading via knife fails,
as it sill tries to use 443 (while, for example, knife node list works). I
had a look
at the code and also added:

nginx['url']="https://#{node['fqdn']}:8443"
bookshelf['vip']=node['fqdn']+":8443"

This time the upload phase uses the right url, but the commit (during
cookbook upload) fails, because it still uses 443.

So there is yet another Attribute to change?

Regards,

Martin

Martin,
Sorry you hit this issue! We are currently working on making it easier to configure Chef 11 Server to listen on non-standard HTTP/HTTPS ports. This includes requiring less configuration in the /etc/chef-server/chef-server.rb file AND ensuring these values are linked together correctly in the internal chef-solo recipe code (i.e. the underpinnings to "chef-server-ctl reconfigure").

I've created a ticket to track the issue you hit:
http://tickets.opscode.com/browse/CHEF-3853

If you have the cycles, please attach any additional debug info to that ticket (like the knife upload with -VV output).

--
Seth Chisamore
Software Development Engineer, Opscode, Inc.
IRC, Skype, Twitter, Github: schisamo

On Feb 8, 2013, at 12:13 AM, Martin Eigenbrodt martineigenbrodt@gmail.com wrote:

Hi all,

i installed chef server via the omnibus installer (ubuntu). And used

nginx['ssl_port']=8443

in my chef-server.rb. Unfortunately cookbook uploading via knife fails, as it sill tries to use 443 (while, for example, knife node list works). I had a look
at the code and also added:

nginx['url']="https://#{node['fqdn']}:8443"
bookshelf['vip']=node['fqdn']+":8443"

This time the upload phase uses the right url, but the commit (during cookbook upload) fails, because it still uses 443.

So there is yet another Attribute to change?

Regards,

Martin

I've created a ticket to track the issue you hit:
http://tickets.opscode.com/browse/CHEF-3853
Thanks!

If you have the cycles, please attach any additional debug info to that ticket (like the knife upload with -VV output).

Done.

Martin