forked from oslcat/puppet-manifests-oslcat
-
Notifications
You must be signed in to change notification settings - Fork 2
/
nibz.pp
133 lines (125 loc) · 3.87 KB
/
nibz.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
class users::nibz($user=true) {
$username = 'nibz'
$home = '/home/mythmon'
$uid = 1861
if $system {
user { $username:
ensure => present,
home => $home,
uid => $uid,
gid => "users",
groups => ['users', 'wheel'],
managehome => true,
shell => '/bin/zsh',
require => Package['zsh'],
}
}
if ($::system) or ($::id == $username) {
file {
"${username}-tmp":
path => "${home}/tmp",
ensure => directory,
owner => $username,
group => "users";
"${username}-bin":
path => "${home}/bin",
ensure => directory,
owner => $username,
group => "users";
}
@file {
"${username}-serve":
tag => "zsh",
path => "${home}/.zshrc.d/aliases",
content => "alias serve='twistd -n web --path .\n'",
owner => $username,
group => "users";
}
os::user_config { $username: }
conky::user_config { $username: }
openbox::user_config { $username: }
ruby::dev::user_config { $username: }
vim::user_config { $username:
template => "users/nibz/vimrc.erb",
pathogen => true,
}
vim::solarized { $username: }
git::user_config { $username:
template => "users/nibalizer/gitconfig.erb",
}
zsh::user_config { $username:
template => "users/nibalizer/zshrc.erb"
}
@file {
"${username}_zshd":
path => "${home}/.zshrc.d",
tag => "zsh",
owner => $username,
group => "users",
ensure => directory;
"${username}-func":
path => "${home}/.zshrc.d/00_func",
content => template("users/mythmon/zsh/00_func.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-01_hash_color":
path => "${home}/.zshrc.d/01_hash_color",
content => template("users/mythmon/zsh/01_hash_color.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-02_signals":
path => "${home}/.zshrc.d/02_signals",
content => template("users/mythmon/zsh/02_signals.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-10_autoterm":
path => "${home}/.zshrc.d/10_autoterm",
content => template("users/mythmon/zsh/10_autoterm.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-20_auto_ls":
path => "${home}/.zshrc.d/20_auto_ls",
content => template("users/mythmon/zsh/20_auto_ls.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-50_git":
path => "${home}/.zshrc.d/50_git",
content => template("users/mythmon/zsh/50_git.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-51_misc":
path => "${home}/.zshrc.d/51_misc",
content => template("users/mythmon/zsh/51_misc.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-52_ssh":
path => "${home}/.zshrc.d/52_ssh",
content => template("users/mythmon/zsh/52_ssh.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
"${username}-90_prompt":
path => "${home}/.zshrc.d/90_prompt",
content => template("users/mythmon/zsh/90_prompt.erb"),
tag => "zsh",
owner => $username,
group => "users",
ensure => present;
}
}
}