From a884889967a3b5d7c00caf3b09d46c4796206704 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Thu, 30 Dec 2021 13:29:23 +0100 Subject: cleanup --- modules/profiles/manifests/workstation.pp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'modules/profiles/manifests/workstation.pp') diff --git a/modules/profiles/manifests/workstation.pp b/modules/profiles/manifests/workstation.pp index fe7e1cb..2b11524 100644 --- a/modules/profiles/manifests/workstation.pp +++ b/modules/profiles/manifests/workstation.pp @@ -4,10 +4,11 @@ class profiles::workstation { include ::profiles::group_profile - # TODO only if we use systemd - file { 'User ssh-agent service': - path => '/etc/systemd/user/ssh-agent.service', - source => "puppet:///modules/profiles/ssh-agent.service", + if ($facts['systemd']) { + file { 'User ssh-agent service': + path => '/etc/systemd/user/ssh-agent.service', + source => "puppet:///modules/profiles/ssh-agent.service", + } } file { 'Dvorak A6 TTY keyboard layout': @@ -112,7 +113,8 @@ class profiles::workstation { file { '/etc/locale.gen': content => $locales.join("\n") } ~> exec { 'locale-gen': - path => [ '/bin', '/usr/bin', ], + path => [ '/bin', '/usr/bin', ], + refreshonly => true, } file { 'Default locales': -- cgit v1.2.3