This contains Puppet code that configures my MacBook Pro.
-
Install the Mac OS X Puppet Agent.
-
Then, install the vcsrepo module:
sudo puppet module install puppetlabs-vcsrepo
-
Clone this repo. It is assumed that this is installed in
/Users/alexharvey/git/home/mac
. (IF NOT replace all references in common.yaml.) -
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
- Ensure Puppet is in the path:
export PATH=/opt/puppetlabs/bin:"$PATH"
- Export the laptop password:
export FACTER_laptop_password=xxxxxxxx
- Finally:
sudo -E puppet apply mac.pp
To run the Rspec-puppet tests as usual:
bundle install --without system_tests
bundle exec rake spec