From 98a071604ea9f7569aa0fa0688bc9d35081770c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Tue, 2 Oct 2018 22:53:29 +0200 Subject: Add Flony workstation --- modules/workstation/manifests/flony.pp | 120 +++++++++++++++++++++++++++++++++ 1 file changed, 120 insertions(+) create mode 100644 modules/workstation/manifests/flony.pp (limited to 'modules/workstation/manifests/flony.pp') diff --git a/modules/workstation/manifests/flony.pp b/modules/workstation/manifests/flony.pp new file mode 100644 index 0000000..c8c361d --- /dev/null +++ b/modules/workstation/manifests/flony.pp @@ -0,0 +1,120 @@ +class workstation::flony { + ensure_resource("exec", "mkinitcpio", { + command => "/usr/bin/mkinitcpio -p linux", + refreshonly => true, + }) + + include "profile::tools" + + file_line { "mkinitcpio.conf#HOOKS": + ensure => "present", + path => "/etc/mkinitcpio.conf", + match => "^HOOKS\=", + line => "HOOKS=(base udev autodetect keyboard keymap modconf block encrypt filesystems fsck)", + notify => Exec["mkinitcpio"], + } + + ensure_packages(['wpa_supplicant']) + + file { "/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf": + ensure => file, + source => "puppet:///modules/workstation/flony/wpa_supplicant.conf", + mode => "0755", + owner => root, + group => root, + notify => Service["wpa_supplicant@wlp2s0"], + } + + file { "/etc/systemd/network/wlp2s0-dhcp.network": + ensure => file, + source => "puppet:///modules/workstation/flony/wlp2s0-dhcp.network", + mode => "0755", + owner => root, + group => root, + } + + service { "wpa_supplicant@wlp2s0": + ensure => "running", + enable => true, + require => [File["/etc/wpa_supplicant/wpa_supplicant-wlp2s0.conf"], Package["wpa_supplicant"]], + } + #service { "dhcpcd@wlp2s0.service": + # enable => false, + #} + ensure_packages(['lxde', 'xorg-xinit', 'xorg-fonts-misc', 'xorg-fonts-100dpi', 'xorg-fonts-75dpi', 'xorg-fonts-type1', 'noto-fonts-emoji']) + + ensure_packages(['firefox']) + + ensure_packages(['dmidecode', 'fwupd']) + + aur::package { "geteltorito": } + + ensure_packages(['stack']) + # ensure_packages(['ghc'], { + # ensure => absent, + # uninstall_options => "-sc" + # }) + + ensure_packages(['xorg-xev', 'xorg-xset', 'xorg-xbacklight', 'slock']) + + ensure_packages(['mesa', 'xf86-video-intel', 'vulkan-intel']) + file { "/etc/X11/xorg.conf.d/20-intel.conf": + ensure => file, + source => "puppet:///modules/workstation/flony/xorg_intel.conf", + mode => "0755", + owner => "root", + group => "root", + } + + ensure_packages(['redshift', 'python-xdg', 'python-gobject']) + + # xdg-open + ensure_packages(['xdg-utils']) + + ensure_packages(['postgresql', 'postgis']) + + # User + file { "/home/ismael/.bash_logout": + ensure => file, + content => "#\n# ~/.bash_logout\n#\n", + mode => "0644", + owner => "ismael", + group => "ismael", + } + file { "/home/ismael/.bashrc": + ensure => file, + source => "puppet:///modules/workstation/flony/home/bashrc", + mode => "0644", + owner => "ismael", + group => "ismael", + } + file { "/home/ismael/.gitconfig": + ensure => file, + source => "puppet:///modules/workstation/flony/home/gitconfig", + mode => "0644", + owner => "ismael", + group => "ismael", + } + file { "/home/ismael/.xinitrc": + ensure => file, + source => "puppet:///modules/workstation/flony/home/xinitrc", + mode => "0644", + owner => "ismael", + group => "ismael", + } + + file { "/home/ismael/.config": + ensure => directory, + source => "puppet:///modules/workstation/flony/home/config", + recurse => "remote", + owner => "ismael", + group => "ismael", + } + file { "/home/ismael/.local": + ensure => directory, + source => "puppet:///modules/workstation/flony/home/local", + recurse => "remote", + owner => "ismael", + group => "ismael", + } +} -- cgit v1.2.3