dotfiles/modules/common/manifests/init.pp

26 lines
622 B
ObjectPascal
Raw Normal View History

2017-08-12 20:48:02 +01:00
class common {
2017-10-19 20:49:41 +01:00
user { 'Make me':
2017-10-08 18:52:37 +01:00
name => 'jake',
2017-08-12 20:48:02 +01:00
allowdupe => false,
2017-10-08 18:52:37 +01:00
auth_membership => 'inclusive',
comment => 'Jake Howard',
home => '/home/jake',
uid => '1000',
2017-11-07 13:52:12 +00:00
shell => '/usr/bin/zsh'
2017-10-08 18:52:37 +01:00
}
2017-10-19 20:49:41 +01:00
-> file { 'Create home directory':
2017-08-12 20:55:14 +01:00
ensure => directory,
2017-10-08 18:52:37 +01:00
path => '/home/jake',
owner => 'jake'
2017-08-12 20:48:02 +01:00
}
2017-10-20 08:30:43 +01:00
exec {'Set Java version':
command => 'archlinux-java set intellij-jdk',
unless => 'archlinux-java get | grep intellij-jdk'
}
2017-11-14 09:09:22 +00:00
exec {'pyenv directory permissions':
command => 'chown -R jake:users /opt/pyenv',
unless => 'getfacl /opt/pyenv | grep "owner: jake"'
}
2017-08-12 20:48:02 +01:00
}