How to set the "ManifestURL" and "SoftwareRepoURL" in the Client_Prefs?

28 views
Skip to first unread message

xper...@gmail.com

unread,
Apr 9, 2014, 2:37:53 PM4/9/14
to munkise...@googlegroups.com
Hell again. I'm back with another question.

I have a few computers in our instance now. I need to know where I can set the "ManifetURL" and "SoftwareRepoURL" that is input when a Client_Prefs.plist is generated.

Currently mine look like this:

------------------------------------------------------------------
	<key>ManifestURL</key>
	<string><FQDN>:80</string>
	<key>SoftwareRepoURL</key>
	<string><FQDN>:80</string>
----------------------------------


When applied to a client that errors out.

However if I replace the '<FQDN>:80' with 'http://<FQDN>' it works just fine.

Is it possible to set this variable globally? If so, where do I do so? I have not found a place in the webpages, so I'm assuming it's going to be in a config file or in the code somewhere...

Thanks in advance!

Ricky Chilcott

unread,
Apr 9, 2014, 2:44:01 PM4/9/14
to munkise...@googlegroups.com
Hello, it is indeed in the code. https://github.com/jnraine/munkiserver/blob/a0c780247b7f572d6433de2e0e435d326f73617a/app/models/manifest/computer.rb#L70 is where it is defined.  

url = ActionMailer::Base.default_url_options[:host]

ActionMailer::Base.default_url_options[:host] is going to = the settings[:action_mailer][:host] which is defined in config/settings.yaml

If you set the host there, that should fix the issue for you.

Ricky Chilcott



--
You received this message because you are subscribed to the Google Groups "munkiserver-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to munkiserver-d...@googlegroups.com.
To post to this group, send email to munkise...@googlegroups.com.
Visit this group at http://groups.google.com/group/munkiserver-dev.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages