Forge Home

macports

Puppet Module for managing MacPorts

10,264 downloads

9,884 latest version

2.6 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 0.1.0 (latest)
  • 0.0.4
  • 0.0.2
released Nov 4th 2014
This version is compatible with:
  • Puppet Enterprise 3.x
  • Puppet 3.x

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'edestecd-macports', '0.1.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add edestecd-macports
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install edestecd-macports --version 0.1.0

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

edestecd/macports — version 0.1.0 Nov 4th 2014

macports

Puppet Forge

####Table of Contents

  1. Overview
  2. Module Description - What the module does and why it is useful
  3. Setup - The basics of getting started with macports
  4. Usage - Configuration options and additional functionality
  5. Reference - An under-the-hood peek at what the module is doing and how
  6. Limitations - OS compatibility, etc.
  7. Development - Guide for contributing to the module

##Overview

Puppet Module for managing MacPorts

##Module Description

The macports module provides a few classes to manage MacPorts on OS X.
These allow you to install the proper pkg for your version of OS X,
as well as keep the ports tree up to date.

##Setup

###What macports affects

  • Installation and Update of MacPorts via pkg installer from MacPorts site.
  • Periodic update of MacPorts and ports tree with port selfupdate

###Setup Requirements

  1. pluginsync needs to be enabled on agents
  2. Xcode and the Xcode Command Line Tools need to be installed on agents
  3. Need to Agree to Xcode license in Terminal on agents
    • sudo xcodebuild -license

###Beginning with macports

Only install latest MacPorts (you need it for package)

class mysql::install {
  require macports

  package { 'mysql5-server':
    ensure   => installed,
    provider => macports,
  }
}

##Usage

###Install a specific version of MacPorts

class { 'macports':
  version => '2.3.2',
}

###Install MacPorts and set to selfupdate weekly

include macports
include macports::selfupdate

###Change the selfupdate schedule

class { 'macports::selfupdate':
  update_period => daily,
}

##Reference

Classes

  • macports
  • macports::selfupdate

##Limitations

This module has been built on and tested against Puppet 3.2.4 and higher.
While I am sure other versions work, I have not tested them.

MacPorts is only supported on Apple Mac OS X.
This module has been tested on 10.8 "Mountain Lion" and newer (including Yosemite).

No plans to support other versions (unless you add it :)..

##Development

Pull Requests welcome

##Contributors

Chris Edester (edestecd)