-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmainyaa.pp
137 lines (124 loc) · 3.24 KB
/
mainyaa.pp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
class people::mainyaa {
include osx::global::enable_keyboard_control_access
class { 'osx::global::key_repeat_delay':
delay => 10
}
class { 'osx::global::key_repeat_rate':
rate => 2
}
#includes
include ohmyzsh
include wget
include ctags
include java
include skype
include iterm2::stable
include chrome
include firefox
include virtualbox
include vagrant
include mou
include android
include flux
include rubymine
include sourcetree
include dropbox
include sublime_text_2
include inkscape
include eclipse
include libreoffice
include groovy
include go
include nodejs
include nvm
include google-app-engine
include google_app_engine::python
include better_touch_tools
class { 'intellij':
edition => 'ultimate',
}
#include osx
}
package {
'ForkLift':
source => "http://download.binarynights.com/ForkLift2.5.4.zip",
provider => compressed_app;
'Mou':
source => "http://mouapp.com/download/Mou.zip",
provider => compressed_app;
'GoogleJapaneseInput':
source => "http://dl.google.com/japanese-ime/latest/GoogleJapaneseInput.dmg",
provider => pkgdmg;
'RemoteDesktopConnectionClient':
source => "http://download.microsoft.com/download/C/F/0/CF0AE39A-3307-4D39-9D50-58E699C91B2F/RDC_2.1.1_ALL.dmg",
provider => pkgdmg;
'MacVimKaoriYa':
source => "https://macvim-kaoriya.googlecode.com/files/macvim-kaoriya-20130911.dmg",
provider => appdmg;
'GoogleDrive':
source => "https://dl.google.com/drive/installgoogledrive.dmg",
provider => appdmg;
'MacFUSE':
source => "https://macfuse.googlecode.com/files/MacFUSE-2.0.3%2C2.dmg",
provider => pkgdmg;
'PortHole':
source => "http://www.getporthole.com/downloads/trial",
provider => pkgdmg;
'Synergy':
source => "http://synergy-foss.org/download/?file=synergy-1.4.12-MacOSX108-x86_64.dmg",
provider => appdmg;
}
package {
'zsh':
install_options => [
'--disable-etcdir'
]
}
file_line { 'add zsh to /etc/shells':
path => '/etc/shells',
line => "${boxen::config::homebrewdir}/bin/zsh",
require => Package['zsh'],
before => Osx_chsh[$::luser];
}
osx_chsh { $::luser:
shell => "${boxen::config::homebrewdir}/bin/zsh";
}
$home = "/Users/${::luser}"
$src = "${home}/src"
$dotfiles = "${src}/dotfiles"
$home_local = "${home}/local"
$home_bin = "${home}/bin"
$dust_vim_backup = "${home}/.txtb"
file {$dust:
ensure => directory
}
file {$dust_vim:
ensure => directory
}
file {$home_local:
ensure => directory
}
file {$home_bin:
ensure => directory
}
file {$dust_vim_backup:
ensure => directory
}
# git clone [email protected]:mainyaa/dotfiles.git
repository { $dotfiles:
source => "mainyaa/dotfiles",
require => File[$src]
}
# git-cloneしたら install.sh を走らせる
exec { "sh ${dotfiles}/install.sh":
cwd => $dotfiles,
creates => "${home}/.zshrc",
require => Repository[$dotfiles],
}
# git-cloneしたら install_mac.sh を走らせる
exec { "sh ${dotfiles}/install_mac.sh":
cwd => $dotfiles,
creates => "${home}/.zshrc",
require => Repository[$dotfiles],
}
}