Forge Home

macports

Puppet Module for managing MacPorts

8,455 downloads

8,455 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.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 0.2.0 (latest)
released Mar 24th 2017
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 'jbarnett1981-macports', '0.2.0'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

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

Manually install this module globally with Puppet module tool:

puppet module install jbarnett1981-macports --version 0.2.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

jbarnett1981/macports — version 0.2.0 Mar 24th 2017

macports

####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.4.1',
}

###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, El Capitan and Sierra.

##Development

Pull Requests welcome

##Contributors

Chris Edester (edestecd) original author Julian Barnett (jbarnett1981) updated 3/24/17