Automatically process packages, profiles, and scripts during boot, login, or on demand.
Python Makefile Shell
Latest commit 902c148 Feb 18, 2017 @chilcote Squashed commit of the following:
commit 54a09a6
Author: Joseph Chilcote <chilcote+github@gmail.com>
Date:   Sun Feb 5 15:01:50 2017 -0800

    typo fix

commit b2c6a58
Author: Joseph Chilcote <chilcote+github@gmail.com>
Date:   Sun Feb 5 14:49:14 2017 -0800

    Updated readme and custom pkg examples. Fixes #45

commit 77f4cd0
Author: Joseph Chilcote <chilcote+github@gmail.com>
Date:   Sat Feb 4 16:54:29 2017 -0800

    updated to be able to process overrides for pkgs and profiles for privileged login runs

commit d7ab9c9
Author: Joseph Chilcote <chilcote+github@gmail.com>
Date:   Sun Jan 29 14:37:38 2017 -0800

    adding support for running login items as root. Useful when an admin wants privileged items to be processed at login instead of boot. Example: installing a pkg that requires the user to be logged in.

README.md

Outset

Outset is a script which automatically processes packages, profiles, and scripts during the boot sequence, user logins, or on demand.

Requirements

  • python 2.7+
  • It's only been tested on 10.9.x and above

Usage

usage: outset [-h]
            (--boot | --login | --login-privileged | --on-demand | --login-every | --login-once | --cleanup | --version | --add-ignored-user username | --remove-ignored-user username | --add-override scripts | --remove-override scripts)

This script automatically processes packages, profiles, and/or scripts at
boot, on demand, and/or login.

optional arguments:
-h, --help            show this help message and exit
--boot                Used by launchd for scheduled runs at boot
--login               Used by launchd for scheduled runs at login
--login-privileged    Used by launchd for scheduled privileged runs at login
--on-demand           Process scripts on demand
--login-every         Manually process scripts in login-every
--login-once          Manually process scripts in login-once
--cleanup             Used by launchd to clean up on-demand dir
--version             Show version number
--add-ignored-user username
                        Add user to ignored list
--remove-ignored-user username
                        Remove user from ignored list
--add-override scripts
                        Add scripts to override list
--remove-override scripts
                        Remove scripts from override list

See the wiki for info on how to use Outset.

Credits

This script was an excuse for me to try to learn python. I learn best when I can pull apart existing scripts. As such, this script is heavily based on the great work by Nate Walck, Allister Banks, Rich Trouton, Graham Gilbert, and Greg Neagle.

Outset uses FoundationPlist, a library to work with binary plists written by Greg Neagle as part of his Munki project.

License

Copyright 2016 Joseph Chilcote

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.