Giter Club home page Giter Club logo

Comments (4)

natewalck avatar natewalck commented on July 3, 2024

From [email protected] on March 03, 2010 10:04:30

Two problems here:

  1. makepkginfo probably shouldn't cause anything to be written to /Library/Preferences. What's happening is
    that it's not seeing the file, falling back to default values for everything, and then writing out a file with those
    default values. The original intent was to make it easier for new munki admins, so they wouldn't have to create
    a preference file from scratch, but could instead edit an existing one.

  2. The example /Library/Preferences/ManagedInstalls.plist should be updated and the documentation should
    be as well; the values that appear in the /Library/Preferences/ManagedInstalls.plist in the submitted scenario
    are the current munki defaults.

from munki.

natewalck avatar natewalck commented on July 3, 2024

From [email protected] on March 03, 2010 10:54:28

Re: #1) I agree that makepkginfo shouldn't write anything to /Library/Preferences.
Using the defaults would make sense if it can't find ManagedInstalls.plist.

Re: #2) I only noticed that something was off by going through the Bootstrapping
section of the GettingStartedWithMunki page in the wiki. There, it says to "Change the
ManifestURL" which wasn't in the version written out by makepakginfo. Is that setting required anymore?

from munki.

natewalck avatar natewalck commented on July 3, 2024

From [email protected] on March 03, 2010 10:58:33

I've updated the example ManagedInstalls.plist and the associated READ ME. Let me know if that clears things up
a bit.

Still considering what to do about writing out the default defaults - it's certainly not needed for munki to
function, and definitely shouldn't happen when running makepkginfo, but might be helpful for new munki
admins once they get to the point of running managedsoftwareupdate so they can SEE the defaults if they haven't
put a site-specific ManagedInstalls.plist in place.

Status: Started

from munki.

natewalck avatar natewalck commented on July 3, 2024

From [email protected] on March 03, 2010 12:17:19

made some changes to munkicommon.py. Previously, just importing munkicommon would call
munkicommon.prefs(), which had the side effect of writing out the prefs file if it did not previously exist. That's
now been changed; one must call a function within munkicommon that actually needs access to the prefs to call
munkicommon.prefs() now. Since makepkginfo does not call any functions within munkicommon that need
access to the prefs, makepkginfo no longer writes a new /Library/Preferences/ManagedInstalls.plist if one did
not previously exist.

Status: Fixed

from munki.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.