mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 09:27:44 -04:00
Making things work...
This commit is contained in:
parent
91110e2534
commit
77fce59b08
11 changed files with 137 additions and 22 deletions
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
|
|
@ -10,3 +10,7 @@
|
|||
node default {
|
||||
notify{'This is from the default node.':}
|
||||
}
|
||||
|
||||
node 'dawns-macbook-pro.local' {
|
||||
include ::profile::mac
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
46
puppet/production/site/profile/manifests/mac.pp
Normal file
46
puppet/production/site/profile/manifests/mac.pp
Normal 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',
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue