Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with configure recipe #21

Open
rstra opened this issue Apr 18, 2017 · 4 comments
Open

Issue with configure recipe #21

rstra opened this issue Apr 18, 2017 · 4 comments

Comments

@rstra
Copy link

rstra commented Apr 18, 2017

I am configuring a WSUS replica that points to an upstream master which I configured by hand. I have been able to run everything but the following "unless" is not letting the configuration take place.

unless server_conf['master_server'] || server_conf['properties']['IsReplicaServer']

I have the attributes in another cookbook with override, and the configure.rb looks like this:
override['wsus_server']['configuration']['proxy_password'] = nil
override['wsus_server']['configuration']['update_languages'] = ['en']
override['wsus_server']['configuration']['master_server'] = 'https://MYWSUSSERVER:8531'
override['wsus_server']['configuration']['properties'] = { }
override['wsus_server']['configuration']['properties']['TargetingMode'] = 'Client'

override['wsus_server']['subscription']['automatic_synchronization'] = true
override['wsus_server']['subscription']['categories'] = []
override['wsus_server']['subscription']['classifications'] = []
override['wsus_server']['subscription']['properties'] = {}
override['wsus_server']['subscription']['synchronization_per_day'] = 1
override['wsus_server']['subscription']['synchronization_time'] = '00:00:00'
override['wsus_server']['subscription']['synchronize_categories'] = false
override['wsus_server']['subscription']['configure_timeout'] = 900

override['wsus_server']['notification']['enable_sync_notification'] = false
override['wsus_server']['notification']['enable_smtp_authentication'] = false
override['wsus_server']['notification']['enable_status_notification'] = false
override['wsus_server']['notification']['language'] = 'en'
override['wsus_server']['notification']['properties'] = {}
override['wsus_server']['notification']['sender_address'] = nil
override['wsus_server']['notification']['sender_name'] = nil
override['wsus_server']['notification']['smtp_host'] = nil
override['wsus_server']['notification']['smtp_password'] = nil
override['wsus_server']['notification']['smtp_port'] = 25
override['wsus_server']['notification']['smtp_user'] = nil
override['wsus_server']['notification']['status_notification_frequency'] = 'Daily'
`override['wsus_server']['notification']['status_notification_time'] = '00:00:00'``

When I change the override['wsus_server']['configuration']['master_server'] to nil the configuration can run, but then I do not have an upstream server specified.

@Annih
Copy link
Contributor

Annih commented Apr 21, 2017

Hello @rstra

Let's clarify a bit the situation, if I understand your setup, you have:

  • a WSUS master server not configured via chef
  • a replica that you tried to configure via chef.

About the "issue" what happens when you set wsus_server.configuration.master_server to a non-nil value? Do you have an error or nothing is configured?

What is the runlist of your node? Are you sure your "override cookbook" is taken into account?

Regards!

@rstra
Copy link
Author

rstra commented Apr 24, 2017 via email

@Annih
Copy link
Contributor

Annih commented Apr 26, 2017

My new server will be pointing to https://myserver.test.com:8531
and it is set as a replica, but it will now run the synchronization
configuration.

Did you mean it will not run the synchronization?

The unless in L33 in configure.rb is here to not perform subscription and notification configuration in case of replica. To use the same configuration as the master.
Do you want to have a different subscription configuration?

@Annih
Copy link
Contributor

Annih commented Sep 16, 2017

@rstra any news?

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

No branches or pull requests

2 participants