jgmitchell Posted April 6, 2016 Posted April 6, 2016 I'm attempting to get Flash updates installed automatically to our Mac suite using Munki and having some issues. I have MunkiAdmin installed on our Mac server with AutoPkgr installed. I am getting automatic Flash updates downloaded to the MunkiAdmin application through Autopkgr but cannot work out how to get the client macs to automatically install it. I have installed Munki tools on each Mac which I someone online said to do. Any advice?
Carter Posted April 6, 2016 Posted April 6, 2016 The client computers need to be told where the server is. With Deploy Studio I have a script that runs during Post Imaging that loads the settings for that lab. I have a copy of the "Munch Client Setup Script" you can download from here Downloads But basically it looks like this: #!/bin/sh sudo defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://SERVER_ADDRESS/munki_repo" sudo defaults write /Library/Preferences/ManagedInstalls ClientIdentifier "Manifest_Name" sudo echo "Setting munki to bootstrap mode..." sudo touch /Users/Shared/.com.googlecode.munki.checkandinstallatstartup Make sure the server has a Manifest that's named the same as the Manifest you have in the script. This tells the client computers to look to that Manifest. From here add Flash into that Manifest as a Managed Download and you should be good.
Mustang Posted April 6, 2016 Posted April 6, 2016 I take it you have the web server setup and working? As you have already installed the Munki client you probably don't want to revisit your clients to configure them. So the simplest way to do this create a DNS Cname entry for munki and point it at your web server. so Munki.domain.com = webserver.domain.com Then create a new manifest called site_default and add your catalog to it, then assign flash player as a managed install. Now when the client checks in with the server it will see the site_default manifest and install flash player
jgmitchell Posted April 7, 2016 Author Posted April 7, 2016 Carter, I've run this and get a pop up on start up saying that is is checking for updates and the finishes. The Flash update is not installed and the managed update app also doesn't show up with anything. On the Manifest properties do i need to set Flash Player as a Managed install or Managed Update? And also do I need set any conditions for it? Thanks again.
Carter Posted April 7, 2016 Posted April 7, 2016 (edited) You want to use "Installs or Managed Installs" depending on your version of Munki Admin. Also make sure you have Flash checked off in your catalogs as seen below on mine. One step that I miss once in a while when creating a new manifest is to add a catalog. Make sure you add your production catalog as seen in the image below to your manifest. Without this it won't do anything. http://i.imgur.com/1NcmoyR.png http://i.imgur.com/BMlq1Jo.png http://i.imgur.com/sJXhuxd.png Edited April 7, 2016 by Carter
jgmitchell Posted April 7, 2016 Author Posted April 7, 2016 I've looked at your screenshots and ours is set up the same. Flash was installed manually before we had munki. Is Munki only able to update what it has installed? Also that command you sent me about telling the clients where the server is only has an effect if I run it before I restart, and doesn't happen automatically. Here are some screenshots: - - - Updated - - -
Carter Posted April 7, 2016 Posted April 7, 2016 When I've had it not responding I've found that removing the "Server Website" "Redirects" fixes the issue. Also I see you have three versions of flash? You only need to keep the latest one so you can delete the others or at the least uncheck the rest and keep the latest checked off. http://i.imgur.com/Tap2NzO.png
jgmitchell Posted April 8, 2016 Author Posted April 8, 2016 Thanks for your reply. Just tried this with the Server Websites and unchecked the other flash updates except the latest one with no luck. Do I have to run the terminal command every time? I can only get it to automatically check for updates after that command has been run.
Carter Posted April 8, 2016 Posted April 8, 2016 By default munki checks every hour. By running the script it tells the computer to check on the next reboot.
jgmitchell Posted April 11, 2016 Author Posted April 11, 2016 Unfortunately still having no luck. Flash is still showing an older version number. Managed software updates doesn't show any updates to do either when manually opened.
Carter Posted April 11, 2016 Posted April 11, 2016 Unfortunately not much else I can think of and I just rebuild our Munki Server on Friday from scratch. On a client machine try to bring up a manifest by going to http://IP_Address/MUKI_REPO/ You should see something similar to http://i.imgur.com/nae9c3u.png
jgmitchell Posted April 11, 2016 Author Posted April 11, 2016 No Luck there. I get "the requested URL/munki_repo was not found on this server"
Mustang Posted April 11, 2016 Posted April 11, 2016 Sounds like the web server isn't configured properly if your receiving that message. Do you have a link to the guide you followed for server setup? What is the output from a client of /usr/local/munki/managedsoftwareupdate -vvv
Carter Posted April 12, 2016 Posted April 12, 2016 Have a look at this document, may help with web setup https://osxdominion.wordpress.com/2015/02/26/setting-up-munki-with-os-x-yosemite-server/
jgmitchell Posted June 15, 2016 Author Posted June 15, 2016 Still stuck on this, The web server looks correct however i believe this to be the source of the problem. I've followed the link and when I navigate to http://localhost/repo/ I get 404 Not found. There must be one step holding it back from working.
jgmitchell Posted June 28, 2016 Author Posted June 28, 2016 A slight development, from following the guide I get a 404 not found when navigating to http://localhost/repo/ However, if I navigate to the Mac server's domain name, I can see the Index of / page with the repository links. Does anyone know which command I need to change to get the clients to communicate with the server?
2ilent8cho Posted June 28, 2016 Posted June 28, 2016 If you do defaults read /Library/Preferences/ManagedInstalls at the Terminal you will see all the Munki settings. You can the change any of those settings with sudo defaults write /Library/Preferences/SoftwareRepoURL "http://whatever.mydomain.somthing" (that would change the Munki Server URL for example)
jgmitchell Posted June 28, 2016 Author Posted June 28, 2016 Thanks for the reply. When I look at the settings it show that the SoftwareRepoURL = "http://munki/repo" Which doesn't seem to be correct? When i try to change this path i get the message: "Rep argument is not a dictionary" No idea what that means, but it wont allow me to change any settings, even when using sudo before the command.
2ilent8cho Posted June 28, 2016 Posted June 28, 2016 I've just ran this command on my Mac sudo defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://munki" and it changed it to that setting for me.
jgmitchell Posted June 28, 2016 Author Posted June 28, 2016 That worked for me and I've managed to change the settings. However I still have no luck with the clients accessing the munki updates
2ilent8cho Posted June 28, 2016 Posted June 28, 2016 If you open up the Console application and open up the log /Library/Preferences/Managed Installs/Logs/ManagedSoftwareUpdate.log it should tell you why its not working.
jgmitchell Posted June 28, 2016 Author Posted June 28, 2016 I don't seem to be able to see that, I can get to /Library/Preferences/ and then I just have a ManagedInstalls.plist file
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now