Commit e3046bad0122c085667c8a5f89b8e63ac9d5c8b5

Authored by Jianwei Han
1 parent c45e80a8eb
Exists in master

Require dotfiles repo

Showing 4 changed files with 5 additions and 11 deletions Inline Diff

modules/people/manifests/hanjianwei.pp
class people::hanjianwei ( 1 1 class people::hanjianwei {
$home = $people::hanjianwei::config::home, 2
$dotfiles = $people::hanjianwei::config::dotfiles, 3
$srcdir = $people::hanjianwei::config::srcdir 4
) inherits people::hanjianwei::config { 5
include people::hanjianwei::osx 6 2 include people::hanjianwei::osx
include people::hanjianwei::repositories 7 3 include people::hanjianwei::repositories
include people::hanjianwei::applications 8 4 include people::hanjianwei::applications
} 9 5 }
10 6
modules/people/manifests/hanjianwei/applications.pp
class people::hanjianwei::applications { 1 1 class people::hanjianwei::applications {
2 2
# Declare all Homebrew packages 3 3 # Declare all Homebrew packages
package { ['wget', 4 4 package { ['wget',
'qt5', 5 5 'qt5',
'tmux', 6 6 'tmux',
'vim']: 7 7 'vim']:
} 8 8 }
9 9
homebrew::tap { 'homebrew/science': } 10 10 homebrew::tap { 'homebrew/science': }
-> 11 11 ->
package { 'opencv': } 12 12 package { 'opencv': }
13 13
# Declare all Hombrew Cask packages 14 14 # Declare all Hombrew Cask packages
include brewcask 15 15 include brewcask
16 16
package { ['acorn', 17 17 package { ['acorn',
'alfred', 18 18 'alfred',
'atom', 19 19 'atom',
'bettertouchtool', 20 20 'bettertouchtool',
'caffeine', 21 21 'caffeine',
'cleanmymac', 22 22 'cleanmymac',
'dropbox', 23 23 'dropbox',
'evernote', 24 24 'evernote',
'fantastical', 25 25 'fantastical',
'firefox', 26 26 'firefox',
'google-chrome', 27 27 'google-chrome',
'hazel', 28 28 'hazel',
'iterm2', 29 29 'iterm2',
'keyboard-maestro', 30 30 'keyboard-maestro',
'keyremap4macbook', 31 31 'keyremap4macbook',
'mactex', 32 32 'mactex',
'omnifocus', 33 33 'omnifocus',
'onepassword', 34 34 'onepassword',
'parallels', 35 35 'parallels',
'pycharm-ce', 36 36 'pycharm-ce',
'scapple', 37 37 'scapple',
'screenflow', 38 38 'screenflow',
'scrivener', 39 39 'scrivener',
'seil', 40 40 'seil',
'shiori', 41 41 'shiori',
'trim-enabler', 42 42 'trim-enabler',
'qq', 43 43 'qq',
'qt-creator', 44 44 'qt-creator',
'vagrant', 45 45 'vagrant',
'virtualbox', 46 46 'virtualbox',
'welly', 47 47 'welly',
'xmind']: 48 48 'xmind']:
provider => 'brewcask' 49 49 provider => 'brewcask'
} 50 50 }
51 51
# Taps 52 52 # Taps
homebrew::tap { 'caskroom/fonts': } 53 53 homebrew::tap { 'caskroom/fonts': }
-> 54 54 ->
package { 'font-inconsolata-for-powerline': 55 55 package { 'font-inconsolata-for-powerline':
provider => 'brewcask' 56 56 provider => 'brewcask'
} 57 57 }
58 58
homebrew::tap { 'caskroom/versions': } 59 59 homebrew::tap { 'caskroom/versions': }
-> 60 60 ->
package { 'intellij-idea-ultimate12': 61 61 package { 'intellij-idea-ultimate12':
provider => 'brewcask' 62 62 provider => 'brewcask'
} 63 63 }
64 64
homebrew::tap { 'railwaycat/emacsmacport': } 65 65 homebrew::tap { 'railwaycat/emacsmacport': }
-> 66 66 ->
package { 'emacs-mac': 67 67 package { 'emacs-mac':
provider => 'brewcask' 68 68 provider => 'brewcask'
} 69 69 }
70 70
# Apps configuration 71 71 # Apps configuration
Package <| |> -> Dotfiles::Deploy <| |> 72 72 Package <| |> -> Dotfiles::Deploy <| |>
73 73
osx_chsh { $boxen_user: 74 74 osx_chsh { $boxen_user:
shell => '/bin/zsh' 75 75 shell => '/bin/zsh'
} 76 76 }
77 77
dotfiles::deploy { ['atom', 78 78 dotfiles::deploy { ['atom',
'bettertouchtool', 79 79 'bettertouchtool',
'emacs', 80 80 'emacs',
'git', 81 81 'git',
'iterm2', 82 82 'iterm2',
modules/people/manifests/hanjianwei/config.pp
class people::hanjianwei::config { 1 File was deleted
$home = "/Users/${::boxen_user}" 2
$srcdir = "${boxen_srcdir}" 3
$dotfiles = "${srcdir}/dotfiles" 4
} 5
modules/people/manifests/hanjianwei/repositories.pp
class people::hanjianwei::repositories { 1 1 class people::hanjianwei::repositories {
2 2 repository { "${::boxen_srcdir}/dotfiles":
3 source => 'hanjianwei/dotfiles',
4 }
} 3 5 }