[
 {kernel, [{inet_dist_use_interface, {127,0,0,1}}]},
 {ssl, [{versions, [<%= @ssl_versions %>]}]},
 {rabbit, [{tcp_listeners, [<%= node['private_chef']['rabbitmq']['node_port'] %>]},
               {ssl_options,
                 [{certfile, "<%= @ssl_crtfile %>"},
                  {keyfile,  "<%= @ssl_keyfile %>"},
                    {versions, [<%= @ssl_versions %>]}]}
  ]},
 {rabbitmq_management,
     [{listener, [
               {ip, "<%= node['private_chef']['rabbitmq']['node_ip_address'] %>"},
               {port,     <%= node['private_chef']['rabbitmq']['management_port'] %> },
               {ssl,      true}
               % The Rabbit Management Plugin will use the global Rabbit SSL Config
              ]}
  ]}
].


[
 {kernel, [{inet_dist_use_interface, {127,0,0,1}}]},
 {ssl, [{versions, [<%= @ssl_versions %>]}]},
 {rabbit, [{tcp_listeners, [<%= node['private_chef']['rabbitmq']['node_port'] %>]},
               {ssl_options,
                 [{certfile, "<%= @ssl_crtfile %>"},
                  {keyfile,  "<%= @ssl_keyfile %>"},
                    {versions, [<%= @ssl_versions %>]}]}
  ]},
 {rabbitmq_management,
     [{listener, [
               {ip, "<%= node['private_chef']['rabbitmq']['node_ip_address'] %>"},
               {port,     <%= node['private_chef']['rabbitmq']['management_port'] %> },
               {ssl, <%= node['private_chef']['fips_enabled'] ? false : true %> }
               % The Rabbit Management Plugin will use the global Rabbit SSL Config
              ]}
  ]}
].

Disable rabbitmq SSL mode when running fips_enabled because our Erlang FIPS module does not support TLS
Disable rabbitmq SSL mode when running fips_enabled because our Erlang FIPS module does not support TLS

Signed-off-by: tyler-ball <e0ade6e59ae450651c4b46c49641641db5e1d269@gmail.com>
