From 3a6f73d9d8b7c727f9c1c0233bf9c71389c7f1e8 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 12 Feb 2020 16:55:31 +0100 Subject: site.pp: Add class 'ensure_roaming_workstation'. --- code/environments/production/manifests/site.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'code/environments') diff --git a/code/environments/production/manifests/site.pp b/code/environments/production/manifests/site.pp index 9ba7649..488ede9 100644 --- a/code/environments/production/manifests/site.pp +++ b/code/environments/production/manifests/site.pp @@ -258,6 +258,27 @@ class fsautoresizetab { } } +class ensure_roaming_workstation { + + file_line { 'debianedu_profile_roamingworkstation': + path => '/etc/debian-edu/config', + ensure => present, + line => "PROFILE=\"Roaming-Workstation\"", + match => '^PROFILE=.*', + } + + exec { 'convert_to_profile_roamingworkstation': + command => "/usr/sbin/cf-agent -I -D installation", + subscribe => File_Line['debianedu_profile_roamingworkstation'], + refreshonly => true, + } + + package { 'itzks-systems-roamingworkstation': + ensure => 'latest', + } +} + + node "disklserver.intern" { class { 'ssh_pubkeys_admins': } class { 'ssh_pubkeys_firedadmins': } -- cgit v1.2.3