dotfiles/modules/shell/manifests/init.pp

59 lines
1.2 KiB
ObjectPascal
Raw Normal View History

2017-08-12 17:00:18 +01:00
class shell {
2017-10-08 18:52:37 +01:00
$zshrc = '/home/jake/.zshrc'
2017-08-12 17:43:07 +01:00
$files = [
2017-10-08 18:52:37 +01:00
'puppet:///modules/shell/.zshrc',
'puppet:///modules/shell/base.sh',
'puppet:///modules/shell/applications.sh',
'puppet:///modules/shell/catfish.sh',
'puppet:///modules/shell/javascript.sh'
2017-08-12 17:43:07 +01:00
];
2017-10-08 18:52:37 +01:00
concat {'zshrc':
2017-08-12 17:43:07 +01:00
path => $zshrc,
2017-10-08 18:52:37 +01:00
owner => 'jake',
group => 'users',
mode => '0644',
2017-08-12 17:43:07 +01:00
ensure_newline => true
}
$files.each |String $file| {
concat::fragment {"zshrc concat $file":
target => $zshrc,
source => $file
}
}
2017-08-12 17:58:22 +01:00
2017-11-06 20:13:47 +00:00
file { 'nvm config directory':
ensure => directory,
mode => '0644',
path => '/home/jake/.nvm'
} ->
2017-08-12 17:58:22 +01:00
file {'nvm':
2017-10-08 18:52:37 +01:00
path => '/home/jake/.nvm/nvm.sh',
owner => 'jake',
group => 'users',
mode => '0755',
source => '/usr/share/nvm/init-nvm.sh'
2017-08-12 17:58:22 +01:00
}
2017-08-12 18:14:12 +01:00
2017-10-19 20:49:41 +01:00
file { 'Custom binaries':
2017-08-12 18:14:12 +01:00
ensure => directory,
source => 'puppet:///modules/shell/bin',
2017-10-19 20:49:41 +01:00
path => '/home/jake/.bin',
2017-10-08 18:52:37 +01:00
owner => 'jake',
group => 'users',
mode => '0755',
2017-08-12 18:14:12 +01:00
recurse => remote
}
file { 'Global Environment':
ensure => file,
mode => '0644',
owner => 'root',
group => 'root',
source => 'puppet:///modules/shell/environment.sh',
path => '/etc/environment'
}
2017-08-12 17:00:18 +01:00
}