dotfiles/modules/common/manifests/init.pp
Jake Howard f946676d97
Add projects directory in common rather than work
I work on projects outside of work, you know!
2018-06-22 11:27:26 +01:00

37 lines
822 B
Puppet

class common {
user { 'Make me':
name => 'jake',
allowdupe => false,
auth_membership => 'inclusive',
comment => 'Jake Howard',
home => '/home/jake',
uid => '1000',
shell => '/usr/bin/zsh',
groups => [
'input',
'users',
'video',
'wheel'
]
}
-> file { 'Create home directory':
ensure => directory,
path => '/home/jake',
owner => 'jake'
}
-> file { 'Projects directory':
ensure => directory,
path => '/home/jake/Projects',
owner => 'jake'
}
exec {'Set Java version':
command => 'archlinux-java set intellij-jdk',
unless => 'archlinux-java get | grep intellij-jdk'
}
exec {'pyenv directory permissions':
command => 'chown -R jake:users /opt/pyenv',
unless => 'getfacl /opt/pyenv | grep "owner: jake"'
}
}