-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.pp
58 lines (47 loc) · 1.01 KB
/
server.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
$user = "dagolap"
$user_group = "dagolap"
$user_realname = "Dag Olav Prestegarden"
$user_email = "dagolav@prestegarden.com"
Package {
ensure => present
}
Exec {
path => [ "/bin", "/usr/bin", "/sbin", "/usr/sbin" ]
}
File {
owner => "$user",
group => "$user_group"
}
#####
# Apt-get update before installing anything
####
# Do i really need this?
Exec["apt-update"] -> Package <| |>
exec { "apt-update":
command => "/usr/bin/apt-get update"
}
#####
# General setup
#####
package {["zsh"]:}
#####
# Developer Tools
#####
# Version Control Systems
package {["git", "mercurial", "bzr"]:}
# Editors
package {["vim-nox", "emacs24-nox"]:}
# Virtualization
package {["virtualbox", "vagrant"]:}
# Tools
package {["tmux", "mosh"]:}
# Python
package {["python", "python-virtualenv", "virtualenvwrapper"]:}
exec {"install-dotfiles":
command => "/home/$user/.computer-setup/setup-dotfiles",
cwd => "/home/$user/.computer-setup",
logoutput => true,
timeout => 0,
user => $user,
environment => "HOME=/home/$user"
}