Dotfiles/site-modules/core/manifests/bin.pp
Ade Attwood 80239af169 refactor(core): start to make dotfiles public
This is the first commit that brings the privet dotfiles to a public
reop previously this was all one puppet module. Now this has been split
out so I can put all of the private files in a private puppet module
2020-09-20 06:22:17 +01:00

19 lines
426 B
Puppet

#
# Links all of the bin files into `~/.local/bin`
#
# Author Ade Attwood <code@adeattwood.co.uk>
# Updated 2018-07-16
#
class core::bin {
file { "${user_home}/.local/bin":
ensure => 'directory',
owner => $user,
}
exec { 'Link bin files':
path => '/usr/bin:/usr/sbin:/bin',
command => "mkdir -p ${user_home}/.local/bin \
&& ln -sf ${find_file('core/bin')}/* ${user_home}/.local/bin/",
}
}