alexharv074 / mac

Puppet config for my MacBook Pro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

My MacBook Pro Config

This contains Puppet code that configures my MacBook Pro.

Usage

  1. Install the Mac OS X Puppet Agent.

  2. Then, install the vcsrepo module:

sudo puppet module install puppetlabs-vcsrepo
  1. Clone this repo. It is assumed that this is installed in /Users/alexharvey/git/home/mac. (IF NOT replace all references in common.yaml.)

  2. Link the real hiera.yaml and hieradata files:

sudo cd /etc/puppetlabs/puppet && \
  mv -f hiera.yaml hiera.yaml.orig && \
  ln -s /Users/alexharvey/git/home/mac/hiera.yaml.real hiera.yaml && \
  ln -s /Users/alexharvey/git/home/mac/hieradata
  1. Ensure Puppet is in the path:
export PATH=/opt/puppetlabs/bin:"$PATH"
  1. Export the laptop password:
export FACTER_laptop_password=xxxxxxxx
  1. Finally:
sudo -E puppet apply mac.pp

Testing

To run the Rspec-puppet tests as usual:

bundle install --without system_tests
bundle exec rake spec

About

Puppet config for my MacBook Pro


Languages

Language:Puppet 83.9%Language:Ruby 16.1%