Skip to content
This repository has been archived by the owner on Feb 28, 2020. It is now read-only.

Node Managers are hard coded to use secure listeners. #31

Open
mrswadge opened this issue Sep 24, 2018 · 0 comments
Open

Node Managers are hard coded to use secure listeners. #31

mrswadge opened this issue Sep 24, 2018 · 0 comments

Comments

@mrswadge
Copy link

The node manager template allows the node manager listeners to be set to secure or not, however the recipe has them hard coded to true.

if node['os'].include?('windows')
  # update or add the nodemanager.properties
  template "#{nodemanager_home_dir}/nodemanager.properties" do
    source "nodemanager/#{nodemanager_template}"
    variables(weblogic_home_dir:             node['fmw']['weblogic_home_dir'].gsub('\\\\', '/').gsub('\\', '/'),
              ... snip ...
              nodemanager_secure_listener:   true,
              ... snip ...
  end
else
  # update or add the nodemanager.properties
  template "#{nodemanager_home_dir}/nodemanager.properties" do
    source "nodemanager/#{nodemanager_template}"
    mode 0755
    owner node['fmw']['os_user']
    group node['fmw']['os_group']
    variables(weblogic_home_dir:             node['fmw']['weblogic_home_dir'],
              ... snip ...
              nodemanager_secure_listener:   true,
              ... snip ...
  end
end

There should be a default attribute to set secure listeners to true as this would allow users to toggle the value should they require to.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant