A Demon's Puppet Mac OS

A Demon
  1. A Demon's Puppet Mac Os X
  2. A Demon's Puppet Mac Os 11
  3. A Demon's Puppet Mac Os Catalina

I’ve been toying with a virtual setup of puppet open source over the last week. My Puppet Master is Ubuntu 12.04, my Puppet Agent is Mac OS X 10.9.

Installing Puppet on Mac OS X. GitHub Gist: instantly share code, notes, and snippets. OSX Defaults Module for Puppet. Provides classes for setting various defaults in Mac OS X. Also provides a means to set a 'recovery message' to be displayed on the login and lock screens. Recovery Message Usage. Displays the given message on the lock and login screens. This looks to be the most thorough explanation of how to remove applications installed from a.pkg file on Mac OS X. Needless to say, be vewy vewy careful when using these techniques! The 'rm' commands do include the '-i' option to confirm every file/directory removal.

This post describes how to get the Puppet Learning VM running on a Mac OS/X system. It uses Parallels as the VM hosting system (for reasons which will become apparent). Puppet is a popular infrastructure automation tool and the learning environment they provide can be downloaded from here. Name Last modified Size Description; Parent Directory - 10.10/ 2015-09-14 11:50:58: 4.0KiB.

I’ve been looking at puppet for over two years and have tried twice in the past to stand up a virtual machine and make it do something!!!. It usually ends with some crisis being more important and by the time I come back to puppet … I’m lost. I get frustrated and delete the VM’s. Rinse and repeat.

This time I”m up and running and my two big goals, both of which I accomplished, were too manage a local admin account, and install and manage printers for Mac OS X. Two things I can manage in several different ways, but I’d like to see if Puppet’s way is better/different. My thoughts are still out on that. I’m trying to consider how puppet could fit into my current workflows. But it is neat to watch puppet work. Which got me thinking. What kind of creative things can puppet do to manage a Mac OS X desktop?

A Demon

If one of the things Puppet can manage are file resources, and plist are just formatted xml files. Can puppet manage plist for Mac OS X? So I decided to try something very simple. I want to turn off Java 7’s auto update feature. No matter how many times you turn it off, when you install a new version of Java, it’s re-checked. This is a good test because the plist only contains 1 entry.

Typically to disable auto updates, you can just open terminal and run:

But with puppet, I want to make sure of a couple things:

– The file “com.oracle.java.Java-Updater.plist” exist at /Library/Preferences/

– That the mode is set to 644

A Demon's Puppet Mac Os X

– The contents of the file contains the entire plist:

so my puppet code looks like this:

A Demon's Puppet Mac Os 11

And after I run puppet on my node, I did a restart for good measure and then checked the auto update box. Which appears to have worked.

A Demon's Puppet Mac Os Catalina

Pretty neat for a quick test. It has me thinking what else might Puppet be able to do?