Add better descriptions to resources

This commit is contained in:
Jake Howard 2017-10-19 20:49:41 +01:00
parent 2ae225d139
commit 3a3d66c045
Signed by: jake
GPG key ID: 57AFB45680EDD477
12 changed files with 50 additions and 38 deletions

View file

@ -3,7 +3,7 @@ node default {
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin']
}
file {'autostart compton':
file {'Autostart Compton':
ensure => link,
path => '/home/jake/.config/autostart/compton.desktop',
mode => '0644',
@ -11,7 +11,7 @@ node default {
source => '/usr/share/applications/compton.desktop'
}
exec {'set java':
exec {'Set Java version':
command => 'archlinux-java set intellij-jdk',
unless => 'archlinux-java get | grep intellij-jdk'
}

View file

@ -1,5 +1,5 @@
class common {
user { 'make me':
user { 'Make me':
name => 'jake',
allowdupe => false,
auth_membership => 'inclusive',
@ -7,7 +7,7 @@ class common {
home => '/home/jake',
uid => '1000',
}
-> file { 'create home':
-> file { 'Create home directory':
ensure => directory,
path => '/home/jake',
owner => 'jake'

View file

@ -6,7 +6,7 @@ class config::fonts {
];
$fonts.each |String $font| {
file { "font config $font":
file { "Enable $font font":
ensure => link,
path => "/etc/fonts/conf.d/$font",
mode => '0644',
@ -15,7 +15,7 @@ class config::fonts {
}
}
exec { 'update font cache':
exec { 'Update font cache':
command => 'gdk-pixbuf-query-loaders --update-cache'
}
}

View file

@ -1,9 +0,0 @@
class config::git {
$global_gitignore = '/home/jake/.config/.gitignore'
file { $global_gitignore:
ensure => file,
mode => '0644',
source => 'puppet:///modules/config/gitignore_global'
}
}

View file

@ -1,31 +1,41 @@
class config {
include 'config::vim'
include 'config::git'
include 'config::fonts'
include 'config::private'
file { '/etc/libinput-gestures.conf':
file { 'Touchpad gestures config':
ensure => file,
mode => '0644',
path => '/etc/libinput-gestures.conf',
source => 'puppet:///modules/config/libinput-gestures.conf'
}
file { '/home/jake/.config/terminator/config':
file { 'Terminator config':
ensure => file,
mode => '0644',
path => '/home/jake/.config/terminator/config',
source => 'puppet:///modules/config/terminator.conf'
}
file { '/home/jake/.config/uniemoji/custom.json':
file { 'Uniemoji config':
ensure => file,
mode => '0644',
path => '/home/jake/.config/uniemoji/custom.json',
source => 'puppet:///modules/config/uniemoji.json'
}
file { '/home/jake/.ssh/assh.yml':
file { 'Install SSH config':
ensure => file,
mode => '0644',
owner => 'jake',
path => '/home/jake/.ssh/assh.yml',
source => 'puppet:///modules/config/assh.yml'
}
file { 'Install global gitignore':
path => '/home/jake/.config/.gitignore',
ensure => file,
mode => '0644',
source => 'puppet:///modules/config/gitignore_global'
}
}

View file

@ -1,11 +1,13 @@
class config::private () {
file { '/home/jake/.dotfiles':
ensure => directory
file { 'Check dotfiles':
ensure => directory,
path => '/home/jake/.dotfiles'
}
file { '/home/jake/.upload':
file { 'TUpload config':
ensure => link,
target => '/home/jake/.dotfiles/.upload',
path => '/home/jake/.upload',
mode => '0644'
}
}

View file

@ -1,20 +1,22 @@
class config::vim {
file { '/home/jake/.vimrc':
file { 'vimrc':
ensure => file,
mode => '0644',
owner => 'jake',
group => 'users',
path => '/home/jake/.vimrc',
source => 'puppet:///modules/config/vimrc'
}
-> vcsrepo { '/home/jake/.vim_runtime':
-> vcsrepo { 'Vim runtime':
ensure => latest,
provider => git,
user => 'jake',
path => '/home/jake/.vim_runtime',
source => 'https://github.com/amix/vimrc.git',
}
-> exec { 'install vim plugins':
-> exec { 'Install vim plugins':
command => 'vim +PluginInstall +qall',
user => 'jake',
environment => 'HOME=/home/jake'

View file

@ -1,7 +1,8 @@
class gnome {
file { '/home/jake/Templates':
file { 'Nautilus Templates':
ensure => directory,
source => 'puppet:///modules/gnome/Templates',
path => '/home/jake/Templates',
owner => 'jake',
group => 'users',
mode => '0755',

View file

@ -17,7 +17,7 @@ class i3::autostart {
];
$programs.each |String $program| {
file { "autostart $program":
file { "Autostart $program":
ensure => link,
path => "/home/jake/.config/autostart/$program.desktop",
mode => '0644',

View file

@ -32,9 +32,10 @@ class shell {
source => '/usr/share/nvm/init-nvm.sh'
}
file { '/home/jake/.bin':
file { 'Custom binaries':
ensure => directory,
source => 'puppet:///modules/shell/bin',
path => '/home/jake/.bin',
owner => 'jake',
group => 'users',
mode => '0755',

View file

@ -1,14 +1,16 @@
class yaourt::files () {
file { '/etc/pacman.conf':
file { 'Pacman config':
ensure => file,
source => 'puppet:///modules/yaourt/pacman.conf'
source => 'puppet:///modules/yaourt/pacman.conf',
path => '/etc/pacman.conf'
}
file { '/home/jake/.yaourtrc':
file { 'Yaourt config':
ensure => file,
mode => '0644',
owner => 'jake',
group => 'users',
source => 'puppet:///modules/yaourt/.yaourtrc'
source => 'puppet:///modules/yaourt/.yaourtrc',
path => '/home/jake/.yaourtrc'
}
}

View file

@ -6,19 +6,22 @@ class yaourt::keys () {
]
$keys.each |$key| {
exec { "gpg --recv-keys $key":
exec {"Add $key key":
command => "gpg --recv-keys $key",
user => 'jake',
unless => "gpg --list-keys $key"
}
exec { "add $key for root": # So root can install things
exec { "Add $key for root": # So root can install things
command => "gpg --recv-keys $key",
unless => "gpg --list-keys $key"
}
exec { "pacman-key -r $key":
exec { "Add $key to pacman":
command => "pacman-key -r $key",
unless => "pacman-key --list-keys $key"
}
exec { "pacman-key --lsign-key $key":
unless => "pacman-key --list-keys $key | grep '\[ full \]'"
exec { "Locally sign $key with pacman":
command => "pacman-key --lsign-key $key",
unless => "pacman-key --list-keys $key | grep full"
}
}
}