Code Monkey home page Code Monkey logo

puppet-apple_package's Introduction

puppet-apple_package

This Puppet module provides a better method to install packages for macOS than the built in method. It is designed to operate more like Munki (ensuring files are present etc) It performs the following:

  • Verifies that the specified package receipt is present.
  • Verifies that the specified version is installed.
  • If passed an array of files to verify, it will reinstall the package if any of the files are missing (optional).
  • If passed an array of SHA1 checksums, it will reinstall the package if any of the files specified have a different checksum (optional).
  • If passed a parameter of downgrade set to true and a newer version is installed, it will be downgraded to the specified version. Otherwise, newer versions are left untouched.
  • Can download packages from a webserver rather than relying on Puppet's fileserver.

Example

node default {
  $munkitools_version = '2.8.2.2855'
  apple_package {'munkitools':
    source          => "puppet:///modules/bigfiles/munki/munkitools-${munkitools_version}.pkg",
    version         => $munkitools_version,
    receipt         => 'com.googlecode.munki.core',
    installs        => ['/Applications/Managed Software Center.app/Contents/MacOS/Managed Software Center', '/usr/local/munki/managedsoftwareupdate'],
    checksum        => ['f01ff7cc2b0ed727980f43990424a9124a487285', '768c21b2b89dfd6af8524e5ba4cb67b8c32e5d98'],
    force_downgrade => true,
    # WARNING - this will cause the package to install every run, be clever when you use this
    force_install   => true
  }
}

Dependencies

Notes

The package is stored on disk, so it is recommended that this is only used for small packages (use Munki for user facing software).

Todo

  • Remove the package

puppet-apple_package's People

Contributors

grahamgilbert avatar keeleysam avatar

Watchers

 avatar  avatar

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.