dotfiles/modules/common/manifests/init.pp

31 lines
704 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'
}
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"'
}
}