mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 17:37:43 -04:00
74 lines
1.7 KiB
Puppet
74 lines
1.7 KiB
Puppet
# 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',
|
|
# }
|
|
|
|
$homedir = lookup('homedir')
|
|
|
|
#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 => 'latest',
|
|
provider => 'brew',
|
|
}
|
|
|
|
file { "${homedir}/repos":
|
|
ensure => 'directory',
|
|
}
|
|
|
|
vcsrepo { "${homedir}/.vim/bundle/Vundle.vim":
|
|
ensure => 'latest',
|
|
provider => 'git',
|
|
source => 'https://github.com/VundleVim/Vundle.vim.git',
|
|
}
|
|
|
|
vcsrepo { "${homedir}/repos/powerline-fonts":
|
|
ensure => 'latest',
|
|
provider => 'git',
|
|
source => 'https://github.com/powerline/fonts.git',
|
|
require => File["${homedir}/repos"],
|
|
notify => Exec['update-fonts'],
|
|
}
|
|
|
|
exec { 'update-fonts':
|
|
command => "${homedir}/repos/powerline-fonts/install.sh",
|
|
cwd => "${homedir}/repos/powerline-fonts",
|
|
logoutput => true,
|
|
environment => "HOME=${homedir}",
|
|
refreshonly => true,
|
|
}
|
|
}
|