This commit is contained in:
Jake Howard 2017-10-08 18:52:37 +01:00
parent 1a7af676ec
commit 1ae0bbe1d7
Signed by: jake
GPG key ID: 57AFB45680EDD477
13 changed files with 95 additions and 92 deletions

View file

@ -8,5 +8,5 @@ jobs:
steps: steps:
- checkout - checkout
- run: gem install puppet-lint - run: gem install puppet-lint
- run: puppet-lint modules/ --fail-on-warnings - run: puppet-lint modules/ -c .puppet-lint.rc
- run: puppet-lint manifests/ --fail-on-warnings - run: puppet-lint manifests/ -c .puppet-lint.rc

4
.puppet-lint.rc Normal file
View file

@ -0,0 +1,4 @@
--fail-on-warnings
--no-arrow-alignment-check
--no-documentation-check
--no-variables_not_enclosed-check

View file

@ -1,16 +1,15 @@
class common { class common {
user { "make me": user { 'make me':
name => "jake", name => 'jake',
allowdupe => false, allowdupe => false,
auth_membership => "inclusive", auth_membership => 'inclusive',
comment => "Jake Howard", comment => 'Jake Howard',
home => "/home/jake", home => '/home/jake',
uid => "1000", uid => '1000',
} -> }
-> file { 'create home':
file { "create home":
path => "/home/jake",
ensure => directory, ensure => directory,
owner => "jake" path => '/home/jake',
owner => 'jake'
} }
} }

View file

@ -1,21 +1,21 @@
class config::fonts { class config::fonts {
$fonts = [ $fonts = [
"11-lcdfilter-default.conf", '11-lcdfilter-default.conf',
"10-sub-pixel-rgb.conf", '10-sub-pixel-rgb.conf',
"30-infinality-aliases.conf" '30-infinality-aliases.conf'
]; ];
$fonts.each |String $font| { $fonts.each |String $font| {
file { "font config $font": file { "font config $font":
path => "/etc/fonts/conf.d/$font",
ensure => link, ensure => link,
mode => "0644", path => "/etc/fonts/conf.d/$font",
mode => '0644',
source => "/etc/fonts/conf.avail/$font" source => "/etc/fonts/conf.avail/$font"
} }
} }
exec { 'update font cache': exec { 'update font cache':
command => "gdk-pixbuf-query-loaders --update-cache" command => 'gdk-pixbuf-query-loaders --update-cache'
} }
} }

View file

@ -1,13 +1,13 @@
class config::git { class config::git {
file { '/home/jake/.gitignore_global': file { '/home/jake/.gitignore_global':
ensure => file, ensure => file,
mode => "0644", mode => '0644',
source => 'puppet:///modules/config/gitignore_global' source => 'puppet:///modules/config/gitignore_global'
} }
git::config { "global ignore" : git::config { 'global ignore' :
key => 'core.excludesfile', key => 'core.excludesfile',
value => '/home/jake/.gitignore_global', value => '/home/jake/.gitignore_global',
user => "jake" user => 'jake'
} }
} }

View file

@ -5,19 +5,19 @@ class config {
file { '/etc/libinput-gestures.conf': file { '/etc/libinput-gestures.conf':
ensure => file, ensure => file,
mode => "0644", mode => '0644',
source => 'puppet:///modules/config/libinput-gestures.conf' source => 'puppet:///modules/config/libinput-gestures.conf'
} }
file { '/home/jake/.config/terminator/config': file { '/home/jake/.config/terminator/config':
ensure => file, ensure => file,
mode => "0644", mode => '0644',
source => 'puppet:///modules/config/terminator.conf' source => 'puppet:///modules/config/terminator.conf'
} }
file { '/home/jake/.config/uniemoji/custom.json': file { '/home/jake/.config/uniemoji/custom.json':
ensure => file, ensure => file,
mode => "0644", mode => '0644',
source => 'puppet:///modules/config/uniemoji.json' source => 'puppet:///modules/config/uniemoji.json'
} }
} }

View file

@ -1,22 +1,22 @@
class config::vim { class config::vim {
file { '/home/jake/.vimrc': file { '/home/jake/.vimrc':
ensure => file, ensure => file,
mode => "0644", mode => '0644',
owner => "jake", owner => 'jake',
group => "users", group => 'users',
source => 'puppet:///modules/config/vimrc' source => 'puppet:///modules/config/vimrc'
} -> }
vcsrepo { '/home/jake/.vim_runtime': -> vcsrepo { '/home/jake/.vim_runtime':
ensure => latest, ensure => latest,
provider => git, provider => git,
user => 'jake', user => 'jake',
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'
} }
} }

View file

@ -2,19 +2,19 @@ class gnome {
file { '/home/jake/Templates': file { '/home/jake/Templates':
ensure => directory, ensure => directory,
source => 'puppet:///modules/gnome/Templates', source => 'puppet:///modules/gnome/Templates',
owner => "jake", owner => 'jake',
group => "users", group => 'users',
mode => "0755", mode => '0755',
recurse => remote recurse => remote
} }
exec { 'show battery percentage': exec { 'show battery percentage':
user => "jake", user => 'jake',
command => 'gsettings set org.gnome.desktop.interface show-battery-percentage true' command => 'gsettings set org.gnome.desktop.interface show-battery-percentage true'
} }
exec { 'Remove volume change sound': exec { 'Remove volume change sound':
user => "jake", user => 'jake',
command => 'gsettings set org.gnome.desktop.sound event-sounds false' command => 'gsettings set org.gnome.desktop.sound event-sounds false'
} }
} }

View file

@ -1,23 +1,23 @@
class i3::autostart { class i3::autostart {
$programs = [ $programs = [
"gnome-keyring-pkcs11", 'gnome-keyring-pkcs11',
"gnome-keyring-secrets", 'gnome-keyring-secrets',
"gnome-keyring-ssh", 'gnome-keyring-ssh',
"mousewheelzoom", 'mousewheelzoom',
"pulseaudio", 'pulseaudio',
"org.gnome.SettingsDaemon.XSettings", 'org.gnome.SettingsDaemon.XSettings',
"org.gnome.SettingsDaemon.XRANDR", 'org.gnome.SettingsDaemon.XRANDR',
"org.gnome.SettingsDaemon.DiskUtilityNotify", 'org.gnome.SettingsDaemon.DiskUtilityNotify',
"org.gnome.SettingsDaemon.Keyboard", 'org.gnome.SettingsDaemon.Keyboard',
"gsettings-data-convert" 'gsettings-data-convert'
]; ];
$programs.each |String $program| { $programs.each |String $program| {
file { "autostart $program": file { "autostart $program":
path => "/home/jake/.config/autostart/$program.desktop",
ensure => link, ensure => link,
mode => "0744", path => "/home/jake/.config/autostart/$program.desktop",
owner => "jake", mode => '0744',
owner => 'jake',
source => "/etc/xdg/autostart/$program.desktop" source => "/etc/xdg/autostart/$program.desktop"
} }
} }

View file

@ -1,30 +1,30 @@
class i3 { class i3 {
include 'i3::autostart' include 'i3::autostart'
file { "i3 config": file { 'i3 config':
path => '/home/jake/.config/i3/config',
ensure => file, ensure => file,
mode => "0644", path => '/home/jake/.config/i3/config',
owner => "jake", mode => '0644',
group => "users", owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/i3.conf' source => 'puppet:///modules/i3/i3.conf'
} }
file { "i3status-rust config": file { 'i3status-rust config':
path => '/home/jake/.config/i3/status.toml',
ensure => file, ensure => file,
mode => "0644", path => '/home/jake/.config/i3/status.toml',
owner => "jake", mode => '0644',
group => "users", owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/i3status-rust.toml' source => 'puppet:///modules/i3/i3status-rust.toml'
} }
file { "i3status config": file { 'i3status config':
path => '/home/jake/.config/i3status/config',
ensure => file, ensure => file,
mode => "0644", path => '/home/jake/.config/i3status/config',
owner => "jake", mode => '0644',
group => "users", owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/i3status.conf' source => 'puppet:///modules/i3/i3status.conf'
} }
} }

View file

@ -1,19 +1,19 @@
class shell { class shell {
$zshrc = "/home/jake/.zshrc" $zshrc = '/home/jake/.zshrc'
$files = [ $files = [
"puppet:///modules/shell/.zshrc", 'puppet:///modules/shell/.zshrc',
"puppet:///modules/shell/base.sh", 'puppet:///modules/shell/base.sh',
"puppet:///modules/shell/applications.sh", 'puppet:///modules/shell/applications.sh',
"puppet:///modules/shell/catfish.sh", 'puppet:///modules/shell/catfish.sh',
"puppet:///modules/shell/javascript.sh" 'puppet:///modules/shell/javascript.sh'
]; ];
concat {"zshrc": concat {'zshrc':
path => $zshrc, path => $zshrc,
owner => "jake", owner => 'jake',
group => "users", group => 'users',
mode => "0644", mode => '0644',
ensure_newline => true ensure_newline => true
} }
@ -25,19 +25,19 @@ class shell {
} }
file {'nvm': file {'nvm':
path => "/home/jake/.nvm/nvm.sh", path => '/home/jake/.nvm/nvm.sh',
owner => "jake", owner => 'jake',
group => "users", group => 'users',
mode => "0755", mode => '0755',
source => "/usr/share/nvm/init-nvm.sh" source => '/usr/share/nvm/init-nvm.sh'
} }
file { '/home/jake/.bin': file { '/home/jake/.bin':
ensure => directory, ensure => directory,
source => 'puppet:///modules/shell/bin', source => 'puppet:///modules/shell/bin',
owner => "jake", owner => 'jake',
group => "users", group => 'users',
mode => "0755", mode => '0755',
recurse => remote recurse => remote
} }
} }

View file

@ -6,9 +6,9 @@ class yaourt::files () {
file { '/home/jake/.yaourtrc': file { '/home/jake/.yaourtrc':
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'
} }
} }

View file

@ -1,7 +1,7 @@
class yaourt::keys () { class yaourt::keys () {
$keys = [ $keys = [
"8A8F901A", # Sublime Text '8A8F901A', # Sublime Text
"D1483FA6C3C07136" # Tor Browser 'D1483FA6C3C07136' # Tor Browser
] ]
$keys.each |$key| { $keys.each |$key| {