This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/local/munki/munki-python | |
import argparse | |
import os | |
import pathlib | |
import plistlib | |
import pprint | |
import pwd | |
import subprocess | |
from time import sleep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
State for setting computer names on macOS. | |
.. code-block:: yaml | |
set_computer_name_to_wesbook: | |
system.set_computer_name: | |
- name: wesbook | |
''' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: @(#)PROGRAM:Install PROJECT:Install-1000 | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: @(#)PROGRAM:Installer PROJECT:Installer-920 | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Hardware: MacBookPro12,1 @ 3.10 GHz (x 4), 16384 MB RAM | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Running OS Build: Mac OS X 10.13.4 (17E202) | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Env: __CF_USER_TEXT_ENCODING=0x1F5:0x0:0x0 | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Env: TMPDIR=/var/folders/tp/nw_tz52n37gbqh3rk1t1qfym0000gn/T/ | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Env: HOME=/Users/wes | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Env: SHELL=/usr/local/bin/fish | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: Env: Apple_PubSub_Socket_Render=/private/tmp/com.apple.launchd.YxLa5cat3t/Render | |
2018-05-22 14:04:29-07 wesbook-test-13mbp Installer[18891]: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>autoremove</key> | |
<false/> | |
<key>blocking_applications</key> | |
<array/> | |
<key>catalogs</key> | |
<array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys | |
import os | |
import subprocess | |
import datetime | |
from Foundation import NSDate, NSMetadataQuery, NSPredicate, NSRunLoop | |
from Foundation import CFPreferencesAppSynchronize | |
from Foundation import CFPreferencesCopyAppValue | |
from Foundation import CFPreferencesCopyKeyList |