Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,133 @@ | ||
class users::nibz($user=true) { | ||
$username = 'nibz' | ||
$home = '/home/mythmon' | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
$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; | ||
This comment has been minimized.
Sorry, something went wrong.
mythmon
|
||
"${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; | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class workstation::role::development( | ||
user = [], | ||
){ | ||
include "workstation::role::development::$user" | ||
This comment has been minimized.
Sorry, something went wrong. |
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class workstation::role::development::nibz{ | ||
include user::nibz | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class workstation::role::itops( | ||
user = [], | ||
){ | ||
include "workstation::role::itops::$user" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class workstation::role::itops::nibz{ | ||
include user::nibz | ||
} |
I'm flattered, but I don't think there is room in my apartment for the both of us.