Making things work...

This commit is contained in:
Gene Liverman 2017-06-03 11:10:10 -07:00
parent 91110e2534
commit 77fce59b08
11 changed files with 137 additions and 22 deletions

View file

@ -1,9 +1,12 @@
# rubocop:disable FileName
forge 'http://forge.puppetlabs.com'
# rubocop:disable Metrics/LineLength
# The next line translates to '../../vendor/puppet_modules' aka ~/.dotfiles/vendor/puppet_modules
moduledir "#{File.dirname(File.dirname(File.dirname(__FILE__)))}/vendor/puppet_modules"
# rubocop:enable Metrics/LineLength
mod 'homebrew',
:git => 'https://github.com/boxen/puppet-homebrew.git'
mod 'puppetlabs-vcsrepo', '1.5.0'
mod 'thekevjames-homebrew',
git: 'https://github.com/genebean/puppet-homebrew.git',
branch: 'non-root-and-bundler'

View file

@ -1,2 +1,2 @@
modulepath = modules:site:$basemodulepath
config_version = 'scripts/config_version.sh $environmentpath $environment'
modulepath = modules:site:~/.dotfiles/vendor/puppet_modules:$basemodulepath
config_version = 'scripts/config_version.sh $environmentpath'

View file

@ -10,3 +10,7 @@
node default {
notify{'This is from the default node.':}
}
node 'dawns-macbook-pro.local' {
include ::profile::mac
}

View file

@ -1,12 +1,5 @@
#!/bin/bash
if [ -e $1/$2/.r10k-deploy.json ]
then
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/code_manager_config_version.rb $1 $2
elif [ -e /opt/puppetlabs/server/pe_version ]
then
/opt/puppetlabs/puppet/bin/ruby $1/$2/scripts/config_version.rb $1 $2
else
/usr/bin/git --version > /dev/null 2>&1 &&
/usr/bin/git --git-dir $1/$2/.git rev-parse HEAD ||
date +%s
fi
/usr/bin/git --version > /dev/null 2>&1 &&
/usr/bin/git --git-dir $1/../.git rev-parse HEAD ||
date +%s

View file

@ -0,0 +1,46 @@
# this contains the mac specific stuff
class profile::mac {
# $path = '/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin'
# notify{'This is from the mac profile.':}
# exec { 'install homebrew':
# command => '/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"',
# path => $path,
# creates => '/usr/local/bin/brew',
# }
#Package { provider => 'homebrew' }
$homebrew_packages = [
'bash-completion',
'bundler-completion',
'cmake',
'coreutils',
'docker-completion',
'elixir',
'erlang',
'figlet',
'git',
'git-flow',
'gnu-tar',
'hub',
'iftop',
'mutt',
'packer',
'python',
'ruby',
'sl',
'socat',
'tmux',
'tree',
'unrar',
'vagrant-completion',
'watch',
'wget',
'zsh',
'zsh-completions',
]
package { $homebrew_packages:
ensure => installed,
provider => 'brew',
}
}