Add better descriptions to resources
This commit is contained in:
parent
2ae225d139
commit
3a3d66c045
12 changed files with 50 additions and 38 deletions
|
@ -3,7 +3,7 @@ node default {
|
||||||
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin']
|
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin']
|
||||||
}
|
}
|
||||||
|
|
||||||
file {'autostart compton':
|
file {'Autostart Compton':
|
||||||
ensure => link,
|
ensure => link,
|
||||||
path => '/home/jake/.config/autostart/compton.desktop',
|
path => '/home/jake/.config/autostart/compton.desktop',
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
@ -11,7 +11,7 @@ node default {
|
||||||
source => '/usr/share/applications/compton.desktop'
|
source => '/usr/share/applications/compton.desktop'
|
||||||
}
|
}
|
||||||
|
|
||||||
exec {'set java':
|
exec {'Set Java version':
|
||||||
command => 'archlinux-java set intellij-jdk',
|
command => 'archlinux-java set intellij-jdk',
|
||||||
unless => 'archlinux-java get | grep intellij-jdk'
|
unless => 'archlinux-java get | grep intellij-jdk'
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
class common {
|
class common {
|
||||||
user { 'make me':
|
user { 'Make me':
|
||||||
name => 'jake',
|
name => 'jake',
|
||||||
allowdupe => false,
|
allowdupe => false,
|
||||||
auth_membership => 'inclusive',
|
auth_membership => 'inclusive',
|
||||||
|
@ -7,7 +7,7 @@ class common {
|
||||||
home => '/home/jake',
|
home => '/home/jake',
|
||||||
uid => '1000',
|
uid => '1000',
|
||||||
}
|
}
|
||||||
-> file { 'create home':
|
-> file { 'Create home directory':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
path => '/home/jake',
|
path => '/home/jake',
|
||||||
owner => 'jake'
|
owner => 'jake'
|
||||||
|
|
|
@ -6,7 +6,7 @@ class config::fonts {
|
||||||
];
|
];
|
||||||
|
|
||||||
$fonts.each |String $font| {
|
$fonts.each |String $font| {
|
||||||
file { "font config $font":
|
file { "Enable $font font":
|
||||||
ensure => link,
|
ensure => link,
|
||||||
path => "/etc/fonts/conf.d/$font",
|
path => "/etc/fonts/conf.d/$font",
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
@ -15,7 +15,7 @@ class config::fonts {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
exec { 'update font cache':
|
exec { 'Update font cache':
|
||||||
command => 'gdk-pixbuf-query-loaders --update-cache'
|
command => 'gdk-pixbuf-query-loaders --update-cache'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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'
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,31 +1,41 @@
|
||||||
class config {
|
class config {
|
||||||
include 'config::vim'
|
include 'config::vim'
|
||||||
include 'config::git'
|
|
||||||
include 'config::fonts'
|
include 'config::fonts'
|
||||||
include 'config::private'
|
include 'config::private'
|
||||||
|
|
||||||
file { '/etc/libinput-gestures.conf':
|
file { 'Touchpad gestures config':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
path => '/etc/libinput-gestures.conf',
|
||||||
source => 'puppet:///modules/config/libinput-gestures.conf'
|
source => 'puppet:///modules/config/libinput-gestures.conf'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jake/.config/terminator/config':
|
file { 'Terminator config':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
path => '/home/jake/.config/terminator/config',
|
||||||
source => 'puppet:///modules/config/terminator.conf'
|
source => 'puppet:///modules/config/terminator.conf'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jake/.config/uniemoji/custom.json':
|
file { 'Uniemoji config':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
path => '/home/jake/.config/uniemoji/custom.json',
|
||||||
source => 'puppet:///modules/config/uniemoji.json'
|
source => 'puppet:///modules/config/uniemoji.json'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jake/.ssh/assh.yml':
|
file { 'Install SSH config':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
owner => 'jake',
|
owner => 'jake',
|
||||||
|
path => '/home/jake/.ssh/assh.yml',
|
||||||
source => 'puppet:///modules/config/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'
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,13 @@
|
||||||
class config::private () {
|
class config::private () {
|
||||||
file { '/home/jake/.dotfiles':
|
file { 'Check dotfiles':
|
||||||
ensure => directory
|
ensure => directory,
|
||||||
|
path => '/home/jake/.dotfiles'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jake/.upload':
|
file { 'TUpload config':
|
||||||
ensure => link,
|
ensure => link,
|
||||||
target => '/home/jake/.dotfiles/.upload',
|
target => '/home/jake/.dotfiles/.upload',
|
||||||
|
path => '/home/jake/.upload',
|
||||||
mode => '0644'
|
mode => '0644'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,20 +1,22 @@
|
||||||
class config::vim {
|
class config::vim {
|
||||||
file { '/home/jake/.vimrc':
|
file { 'vimrc':
|
||||||
ensure => file,
|
ensure => file,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
owner => 'jake',
|
owner => 'jake',
|
||||||
group => 'users',
|
group => 'users',
|
||||||
|
path => '/home/jake/.vimrc',
|
||||||
source => 'puppet:///modules/config/vimrc'
|
source => 'puppet:///modules/config/vimrc'
|
||||||
}
|
}
|
||||||
|
|
||||||
-> vcsrepo { '/home/jake/.vim_runtime':
|
-> vcsrepo { 'Vim runtime':
|
||||||
ensure => latest,
|
ensure => latest,
|
||||||
provider => git,
|
provider => git,
|
||||||
user => 'jake',
|
user => 'jake',
|
||||||
|
path => '/home/jake/.vim_runtime',
|
||||||
source => 'https://github.com/amix/vimrc.git',
|
source => 'https://github.com/amix/vimrc.git',
|
||||||
}
|
}
|
||||||
|
|
||||||
-> exec { 'install vim plugins':
|
-> exec { 'Install vim plugins':
|
||||||
command => 'vim +PluginInstall +qall',
|
command => 'vim +PluginInstall +qall',
|
||||||
user => 'jake',
|
user => 'jake',
|
||||||
environment => 'HOME=/home/jake'
|
environment => 'HOME=/home/jake'
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
class gnome {
|
class gnome {
|
||||||
file { '/home/jake/Templates':
|
file { 'Nautilus Templates':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
source => 'puppet:///modules/gnome/Templates',
|
source => 'puppet:///modules/gnome/Templates',
|
||||||
|
path => '/home/jake/Templates',
|
||||||
owner => 'jake',
|
owner => 'jake',
|
||||||
group => 'users',
|
group => 'users',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
|
|
|
@ -17,7 +17,7 @@ class i3::autostart {
|
||||||
];
|
];
|
||||||
|
|
||||||
$programs.each |String $program| {
|
$programs.each |String $program| {
|
||||||
file { "autostart $program":
|
file { "Autostart $program":
|
||||||
ensure => link,
|
ensure => link,
|
||||||
path => "/home/jake/.config/autostart/$program.desktop",
|
path => "/home/jake/.config/autostart/$program.desktop",
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
|
|
|
@ -32,9 +32,10 @@ class shell {
|
||||||
source => '/usr/share/nvm/init-nvm.sh'
|
source => '/usr/share/nvm/init-nvm.sh'
|
||||||
}
|
}
|
||||||
|
|
||||||
file { '/home/jake/.bin':
|
file { 'Custom binaries':
|
||||||
ensure => directory,
|
ensure => directory,
|
||||||
source => 'puppet:///modules/shell/bin',
|
source => 'puppet:///modules/shell/bin',
|
||||||
|
path => '/home/jake/.bin',
|
||||||
owner => 'jake',
|
owner => 'jake',
|
||||||
group => 'users',
|
group => 'users',
|
||||||
mode => '0755',
|
mode => '0755',
|
||||||
|
|
|
@ -1,14 +1,16 @@
|
||||||
class yaourt::files () {
|
class yaourt::files () {
|
||||||
file { '/etc/pacman.conf':
|
file { 'Pacman config':
|
||||||
ensure => file,
|
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,
|
ensure => file,
|
||||||
mode => '0644',
|
mode => '0644',
|
||||||
owner => 'jake',
|
owner => 'jake',
|
||||||
group => 'users',
|
group => 'users',
|
||||||
source => 'puppet:///modules/yaourt/.yaourtrc'
|
source => 'puppet:///modules/yaourt/.yaourtrc',
|
||||||
|
path => '/home/jake/.yaourtrc'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,19 +6,22 @@ class yaourt::keys () {
|
||||||
]
|
]
|
||||||
|
|
||||||
$keys.each |$key| {
|
$keys.each |$key| {
|
||||||
exec { "gpg --recv-keys $key":
|
exec {"Add $key key":
|
||||||
|
command => "gpg --recv-keys $key",
|
||||||
user => 'jake',
|
user => 'jake',
|
||||||
unless => "gpg --list-keys $key"
|
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",
|
command => "gpg --recv-keys $key",
|
||||||
unless => "gpg --list-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"
|
unless => "pacman-key --list-keys $key"
|
||||||
}
|
}
|
||||||
exec { "pacman-key --lsign-key $key":
|
exec { "Locally sign $key with pacman":
|
||||||
unless => "pacman-key --list-keys $key | grep '\[ full \]'"
|
command => "pacman-key --lsign-key $key",
|
||||||
|
unless => "pacman-key --list-keys $key | grep full"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue