Nuke the puppet stuff

This commit is contained in:
Jake Howard 2018-09-17 16:02:32 +01:00
parent fc84d03b7b
commit 6a2afd8c90
Signed by: jake
GPG key ID: 57AFB45680EDD477
22 changed files with 0 additions and 711 deletions

View file

@ -1,9 +0,0 @@
node default {}
node 'too-laptop' {
include devices::laptop
}
node 'too-work' {
include devices::work
}

View file

@ -1,13 +0,0 @@
node default {
Exec {
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin']
}
include stdlib
include common
include gnome
include config
include shell
include i3
}

View file

@ -1,157 +0,0 @@
node default {
package {[
'ttf-google-fonts-typewolf'
]:
ensure => absent
}
-> package {[ # Packages that need to be installed first
'i3-gaps',
'ttf-google-fonts-git',
'i3lock-color-git'
]:
ensure => installed
}
-> package {[
'acpi',
'advanced-ssh-config',
'alacritty-git',
'android-tools',
'archstrike-keyring',
'arduino',
'bcm20702a1-firmware',
'betterlockscreen',
'bleachbit',
'blender',
'bluez-firmware',
'brave-bin',
'brightnessctl',
'calibre',
'caprine',
'caret-bin',
'catimg',
'climate',
'clamtk',
'corebird',
'compton',
'deluge',
'dex',
'dmenu',
'dunst',
'etcher',
'etcher-cli',
'exa',
'fasd',
'feedreader',
'feh',
'filezilla',
'firefox',
'firefox-developer-edition',
'fonts-meta-extended-lt',
'gimp',
'glogg',
'google-earth-pro',
'gparted',
'grub-customizer',
'grub2-theme-archlinux',
'gvim',
'handbrake',
'hexchat',
'htop',
'i3status',
'i3status-rust',
'ibus',
'ibus-uniemoji',
'inkscape',
'intellij-idea-ultimate-edition',
'intellij-idea-ultimate-edition-jre',
'intellij-jdk',
'jdk',
'jshon',
'kdenlive',
'keepassxc',
'keybase-bin',
'kodi',
'libinput',
'libinput-gestures',
'lightdm',
'lightdm-webkit2-greeter',
'lxpolkit-git',
'lxrandr',
'minecraft',
'mkchromecast',
'nextcloud-client',
'nnn',
'nodejs',
'numix-gtk-theme',
'nvm',
'obs-studio',
'oh-my-zsh-git',
'onlyoffice-bin',
'otf-fira-code',
'otf-font-awesome',
'pacaur',
'perl-file-mimeinfo',
'pigz',
'playerctl',
'postgresql',
'postman-bin',
'powertop',
'psensor',
'pulseaudio-bluetooth-a2dp-gdm-fix',
'pyenv',
'pyenv-virtualenv',
'python-pip',
'python-virtualenv',
'python2-pip',
'python2-virtualenv',
'qt5-styleplugins',
'redis',
'redshift',
'reptyr',
'rofi',
'scrcpy',
'screenfetch',
'sl',
'slack-desktop',
'slack-term',
'solaar',
'spotify',
'steam',
'sublime-text',
'sysstat',
'tbg',
'terminator',
'thefuck',
'thunderbird',
'tig',
'tmux',
'tor-browser-en',
'ttf-emojione',
'ttf-fira-code',
'ttf-font-awesome',
'ttf-ms-fonts',
'ttf-wps-fonts',
'turtl',
'tupload',
'universal-ctags-git',
'visual-studio-code-bin',
'virtualbox',
'vivaldi',
'vlc',
'whatsie',
'wps-office',
'wps-office-extension-english-uk-dictionary',
'yaourt',
'yubikey-manager',
'yubikey-personalization-gui',
'zeal',
'zsh',
'zsh-completions',
'zsh-doc',
'zsh-syntax-highlighting'
]:
ensure => installed
}
}

View file

@ -1,9 +0,0 @@
node default {
Exec {
path => ['/usr/bin', '/usr/sbin', '/usr/local/bin', '/usr/local/sbin']
}
include stdlib
include yaourt
}

View file

@ -1,36 +0,0 @@
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'
}
-> file { 'Projects directory':
ensure => directory,
path => '/home/jake/Projects',
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"'
}
}

@ -1 +0,0 @@
Subproject commit c600f578386505a743d18a15bc2485b5ef2d5abc

View file

@ -1,17 +0,0 @@
class config::fonts {
$fonts = [
'11-lcdfilter-default.conf',
'10-sub-pixel-rgb.conf',
'30-infinality-aliases.conf'
];
$fonts.each |String $font| {
file { "Enable $font font":
ensure => link,
path => "/etc/fonts/conf.d/$font",
mode => '0644',
source => "/etc/fonts/conf.avail/$font"
}
}
}

View file

@ -1,109 +0,0 @@
class config {
include 'config::vim'
include 'config::fonts'
include 'config::private'
include 'config::vscode'
file { 'Touchpad gestures config':
ensure => file,
mode => '0644',
path => '/etc/libinput-gestures.conf',
source => 'puppet:///modules/config/libinput-gestures.conf'
}
file { 'Terminator config directory':
ensure => directory,
mode => '0644',
path => '/home/jake/.config/terminator'
}
-> file { 'Terminator config':
ensure => file,
mode => '0644',
path => '/home/jake/.config/terminator/config',
source => 'puppet:///modules/config/terminator.conf'
}
file { 'Uniemoji config directory':
ensure => directory,
mode => '0644',
path => '/home/jake/.config/uniemoji'
}
-> file { 'Uniemoji config':
ensure => file,
mode => '0644',
path => '/home/jake/.config/uniemoji/custom.json',
source => 'puppet:///modules/config/uniemoji.json'
}
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':
ensure => file,
path => '/home/jake/.config/.gitignore',
mode => '0644',
source => 'puppet:///modules/config/gitignore_global'
}
file { 'Git config':
ensure => file,
path => '/home/jake/.gitconfig',
mode => '0644',
owner => 'jake',
group => 'users',
content => template('config/gitconfig.conf.erb')
}
file { 'Rofi config directory':
ensure => directory,
mode => '0644',
path => '/home/jake/.config/rofi'
}
-> file { 'Rofi config':
ensure => file,
mode => '0644',
path => '/home/jake/.config/rofi/config',
source => 'puppet:///modules/config/rofi.conf'
}
file { 'Touchpad configuration':
ensure => file,
mode => '0644',
path => '/usr/share/X11/xorg.conf.d/30-touchpad.conf',
source => 'puppet:///modules/config/touchpad.conf'
}
file { 'Caret config directory':
ensure => directory,
mode => '0644',
path => '/home/jake/.config/Caret'
}
-> file { 'Caret configuration file':
ensure => file,
mode => '0644',
path => '/home/jake/.config/Caret/Preferences.md',
source => 'puppet:///modules/config/caret-preferences.md'
}
file { 'Tilix file temporary location':
ensure => file,
path => '/tmp/tilix.conf',
source => 'puppet:///modules/config/tilix.conf'
}
-> exec { 'Load Tilix config':
command => 'dconf load /etc/gexperts/Tilix/ < /tmp/tilix.conf',
user => 'jake'
}
file { 'Alacritty config':
ensure => file,
owner => 'jake',
path => '/home/jake/.config/alacritty/alacritty.yml',
source => 'puppet:///modules/config/alacritty.yml'
}
}

View file

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

View file

@ -1,27 +0,0 @@
class config::vim {
file { 'vimrc':
ensure => file,
mode => '0644',
owner => 'jake',
group => 'users',
path => '/home/jake/.vimrc',
source => 'puppet:///modules/config/vimrc'
}
-> file { 'vimrc for root':
ensure => file,
mode => '0644',
owner => 'root',
group => 'users',
path => '/root/.vimrc',
source => 'puppet:///modules/config/vimrc'
}
-> vcsrepo { 'Vim runtime':
ensure => latest,
provider => git,
user => 'root',
path => '/usr/share/amix_vimrc',
source => 'https://github.com/amix/vimrc.git',
}
}

View file

@ -1,59 +0,0 @@
class config::vscode {
$extensions = [
'PKief.material-icon-theme',
'PeterJausovec.vscode-docker',
'Zignd.html-css-class-completion',
'bitzl.vscode-puppet',
'bogdan-sinitsa.theme-dark-monokai',
'christian-kohler.npm-intellisense',
'dbaeumer.vscode-eslint',
'eamodio.gitlens',
'eg2.tslint',
'eg2.vscode-npm-script',
'formulahendry.code-runner',
'ionutvmi.path-autocomplete',
'magicstack.MagicPython',
'mrmlnc.vscode-less',
'mrmlnc.vscode-scss',
'ms-python.python',
'ms-vscode.sublime-keybindings',
'rokoroku.vscode-theme-darcula',
'steoates.autoimport',
'truman.autocomplate-shell',
'wholroyd.jinja',
'zolocode.editorzoom',
'formulahendry.auto-close-tag',
'James-Yu.latex-workshop',
'ban.spellright',
'editorconfig.editorconfig',
'batisteo.vscode-django',
'davidanson.vscode-markdownlint',
'vsciot-vscode.vscode-arduino',
'vscoss.vscode-ansible',
'rust-lang.rust'
];
$extensions.each |String $extension| {
exec { "Install $extension extension for VSCode":
command => "code --install-extension $extension",
unless => "code --list-extensions | grep $extension",
user => 'jake'
}
}
file { 'VSCode config':
ensure => file,
mode => '0644',
owner => 'jake',
path => '/home/jake/.config/Code/User/settings.json',
source => 'puppet:///modules/config/vscode-settings.json'
}
file { 'VSCode keybindings':
ensure => file,
mode => '0644',
owner => 'jake',
path => '/home/jake/.config/Code/User/keybindings.json',
source => 'puppet:///modules/config/vscode-keybindings.json'
}
}

View file

@ -1,22 +0,0 @@
class devices::laptop {
package {[
'ethtool',
'smartmontools',
'tlp'
]:
ensure => installed
}
-> service {'tlp':
enable => true
}
-> service {'tlp-sleep':
enable => true
}
file { 'TLP config':
ensure => file,
mode => '0644',
path => '/etc/default/tlp',
source => 'puppet:///modules/devices/tlp.conf'
}
}

View file

@ -1,16 +0,0 @@
class devices::work {
vcsrepo { 'Vim runtime':
ensure => latest,
provider => git,
user => 'jake',
path => '/home/jake/Projects/dotfiles',
source => 'git@github.com:dabapps/dotfiles',
}
-> file { 'DabApps dotfiles':
ensure => link,
owner => 'jake',
target => '/home/jake/Projects/dotfiles/.editorconfig',
path => '/home/jake/Projects/.editorconfig',
mode => '0644'
}
}

View file

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

View file

@ -1,38 +0,0 @@
class i3::autostart {
$programs = [
'pulseaudio',
'org.gnome.SettingsDaemon.XSettings',
'org.gnome.SettingsDaemon.DiskUtilityNotify',
'org.gnome.SettingsDaemon.Keyboard',
'gsettings-data-convert',
'nm-applet',
'lxpolkit',
'solaar'
];
$programs.each |String $program| {
file { "Autostart $program":
ensure => link,
path => "/home/jake/.config/autostart/$program.desktop",
mode => '0644',
owner => 'jake',
source => "/etc/xdg/autostart/$program.desktop"
}
}
file {'Autostart libinput-gestures':
ensure => link,
path => '/home/jake/.config/autostart/libinput-gestures.desktop',
mode => '0644',
owner => 'jake',
source => '/usr/share/applications/libinput-gestures.desktop'
}
file {'Install powertop service':
ensure => link,
path => '/etc/systemd/system/powertop.service',
mode => '0644',
owner => 'root',
source => 'puppet:///modules/i3/powertop.service'
}
}

View file

@ -1,53 +0,0 @@
class i3 {
include 'i3::autostart'
file { 'i3 config':
ensure => file,
path => '/home/jake/.config/i3/config',
mode => '0644',
owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/i3.conf'
}
file { 'i3status-rust config':
ensure => file,
path => '/home/jake/.config/i3/status.toml',
mode => '0644',
owner => 'jake',
group => 'users',
content => template('i3/i3status-rust.toml.erb')
}
file { 'i3status config':
ensure => file,
path => '/home/jake/.config/i3status/config',
mode => '0644',
owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/i3status.conf'
}
file { 'compton config':
ensure => file,
path => '/home/jake/.config/compton.conf',
mode => '0644',
owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/compton.conf'
}
file { 'dunst config directory':
ensure => directory,
path => '/home/jake/.config/dunst'
}
-> file { 'dunst config':
ensure => file,
path => '/home/jake/.config/dunst/dunstrc',
mode => '0644',
owner => 'jake',
group => 'users',
source => 'puppet:///modules/i3/dunst.conf'
}
}

View file

@ -1,70 +0,0 @@
class shell {
$zshrc = '/home/jake/.zshrc'
$files = [
'puppet:///modules/shell/.zshrc',
'puppet:///modules/shell/base.sh',
'puppet:///modules/shell/applications.sh',
'puppet:///modules/shell/catfish.sh',
'puppet:///modules/shell/javascript.sh',
'puppet:///modules/shell/environment.sh'
];
concat {'zshrc':
path => $zshrc,
owner => 'jake',
group => 'users',
mode => '0644',
ensure_newline => true
}
$files.each |String $file| {
concat::fragment {"zshrc concat $file":
target => $zshrc,
source => $file
}
}
file { 'nvm config directory':
ensure => directory,
owner => 'jake',
group => 'users',
mode => '0644',
path => '/home/jake/.nvm'
}
-> file {'nvm':
path => '/home/jake/.nvm/nvm.sh',
owner => 'jake',
group => 'users',
mode => '0755',
source => '/usr/share/nvm/init-nvm.sh'
}
file { 'Custom binaries':
ensure => directory,
source => 'puppet:///modules/shell/bin',
path => '/home/jake/.bin',
owner => 'jake',
group => 'users',
mode => '0755',
recurse => remote
}
file { 'Global Environment':
ensure => file,
mode => '0644',
owner => 'root',
group => 'root',
source => 'puppet:///modules/shell/global-environment',
path => '/etc/environment'
}
file { 'tmux config':
ensure => file,
owner => 'jake',
group => 'users',
mode => '0755',
source => 'puppet:///modules/shell/tmux.conf',
path => '/home/jake/.tmux.conf'
}
}

@ -1 +0,0 @@
Subproject commit cef3e894d642207d2f87e307159b90ce49fcd455

@ -1 +0,0 @@
Subproject commit 1c6b38e9c0840ff047ba62d4429bb3939dc524eb

View file

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

View file

@ -1,5 +0,0 @@
class yaourt {
include 'yaourt::files'
include 'yaourt::keys'
}

View file

@ -1,28 +0,0 @@
class yaourt::keys () {
$keys = [
'8A8F901A', # Sublime Text
'D1483FA6C3C07136', # Tor Browser
'9D5F1C051D146843CDA4858BDE64825E7CBC0D51', # ArchStrike
'7448C890582975CD'
]
$keys.each |$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
command => "gpg --recv-keys $key",
unless => "gpg --list-keys $key"
}
exec { "Add $key to pacman":
command => "pacman-key -r $key",
unless => "pacman-key --list-keys $key"
}
exec { "Locally sign $key with pacman":
command => "pacman-key --lsign-key $key",
unless => "pacman-key --list-keys $key | grep full"
}
}
}