From 01d57bde324508d4f487c0c6e0884d86885262f8 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 30 Jun 2015 13:31:24 -0300 Subject: Basic BadUSB mitigation --- files/etc/rc.local | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/etc/rc.local b/files/etc/rc.local index 4ce3a3a..b2ca780 100644 --- a/files/etc/rc.local +++ b/files/etc/rc.local @@ -40,5 +40,10 @@ if [ -f "/etc/screenrc.startup" ]; then ( . /etc/default/locale && cd /root && HOME=/root LANG=$LANG /usr/bin/screen -d -m -S root -c /etc/screenrc.startup ) fi +# See https://links.sarava.org/tags/badusb +if [ -e "/sys/module/usbcore/parameters/authorized_default" ]; then + echo "0" > /sys/module/usbcore/parameters/authorized_default +fi + # Then exit exit 0 -- cgit v1.2.3 From 3760697f374f53fdd5fb00345bfb831d579c27bc Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 30 Jun 2015 13:54:27 -0300 Subject: Removes virtualbox-guest-x11 from nodo::utils::development::virtual --- manifests/utils/development/virtual.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/utils/development/virtual.pp b/manifests/utils/development/virtual.pp index 771f342..57b0d6b 100644 --- a/manifests/utils/development/virtual.pp +++ b/manifests/utils/development/virtual.pp @@ -6,7 +6,7 @@ class nodo::utils::development::virtual { } } - package { [ 'virtualbox-guest-additions-iso', 'qemu', 'qemu-kvm', 'virtualbox-guest-x11' ]: + package { [ 'virtualbox-guest-additions-iso', 'qemu', 'qemu-kvm' ]: ensure => latest, } -- cgit v1.2.3 From 3cf732124419972e790f8fa4a46e51b382e4d6ab Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 30 Jun 2015 14:21:43 -0300 Subject: Adds nodo::utils::development::gis --- manifests/utils/development/gis.pp | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 manifests/utils/development/gis.pp diff --git a/manifests/utils/development/gis.pp b/manifests/utils/development/gis.pp new file mode 100644 index 0000000..8855166 --- /dev/null +++ b/manifests/utils/development/gis.pp @@ -0,0 +1,5 @@ +class nodo::utils::development::gis { + package { 'qgis': + ensure => present, + } +} -- cgit v1.2.3 From 0b14a1848801b252e124bdf64907dab79ab9f3f2 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 30 Jun 2015 18:20:00 -0300 Subject: Support for per-hostname rc.local --- manifests/subsystem/local.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/manifests/subsystem/local.pp b/manifests/subsystem/local.pp index be02bbe..7021646 100644 --- a/manifests/subsystem/local.pp +++ b/manifests/subsystem/local.pp @@ -1,6 +1,7 @@ class nodo::subsystem::local { file { "/etc/rc.local": - source => "puppet:///modules/nodo/etc/rc.local", + source => [ "puppet:///modules/site_nodo/etc/rc.local.${::hostname}", + "puppet:///modules/nodo/etc/rc.local" ], owner => "root", group => "root", mode => 0755, -- cgit v1.2.3 From d40e1d8d5a91ddb040ee27a990ef7be571761157 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Sun, 12 Jul 2015 15:19:45 -0300 Subject: Adds pdjam into nodo::utils::office --- manifests/utils/office.pp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/manifests/utils/office.pp b/manifests/utils/office.pp index 49dda20..f9b4350 100644 --- a/manifests/utils/office.pp +++ b/manifests/utils/office.pp @@ -13,7 +13,7 @@ class nodo::utils::office { } # LaTeX - package { [ 'texlive-latex-base', 'texlive-latex-recommended', 'texlive-latex-extra', 'texlive-fonts-extra', 'vim-latexsuite' ]: + package { [ 'texlive-latex-base', 'texlive-latex-recommended', 'texlive-latex-extra', 'texlive-fonts-extra', 'vim-latexsuite', 'pdfjam' ]: ensure => present, } -- cgit v1.2.3