dotfiles/modules/shell/manifests/init.pp

44 lines
894 B
ObjectPascal
Raw Normal View History

2017-08-12 17:00:18 +01:00
class shell {
2017-08-12 17:43:07 +01:00
$zshrc = "/home/jake/.zshrc"
$files = [
"puppet:///modules/shell/.zshrc",
"puppet:///modules/shell/base.sh",
"puppet:///modules/shell/applications.sh",
"puppet:///modules/shell/catfish.sh",
"puppet:///modules/shell/javascript.sh"
];
concat {"zshrc":
path => $zshrc,
owner => "jake",
group => "users",
mode => "0644",
ensure_newline => true
}
$files.each |String $file| {
concat::fragment {"zshrc concat $file":
target => $zshrc,
source => $file
}
}
2017-08-12 17:58:22 +01:00
file {'nvm':
path => "/home/jake/.nvm/nvm.sh",
owner => "jake",
group => "users",
mode => "0755",
source => "/usr/share/nvm/init-nvm.sh"
}
2017-08-12 18:14:12 +01:00
file { '/home/jake/.bin':
ensure => directory,
source => 'puppet:///modules/shell/bin',
owner => "jake",
group => "users",
mode => "0755",
recurse => remote
}
2017-08-12 17:00:18 +01:00
}