summaryrefslogtreecommitdiff
path: root/manifests/workstation.pp
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-30 13:29:23 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-30 13:29:23 +0100
commitc00611b3f768cd1da3f238259f22321d9384566d (patch)
tree728e868ad5ffb5c5ed3515b57b01b1f0126f8a6b /manifests/workstation.pp
parentImprove puppetboard? (diff)
downloadprofiles-c00611b3f768cd1da3f238259f22321d9384566d.tar.gz
profiles-c00611b3f768cd1da3f238259f22321d9384566d.tar.xz
cleanup
Diffstat (limited to 'manifests/workstation.pp')
-rw-r--r--manifests/workstation.pp12
1 files changed, 7 insertions, 5 deletions
diff --git a/manifests/workstation.pp b/manifests/workstation.pp
index fe7e1cb..2b11524 100644
--- a/manifests/workstation.pp
+++ b/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':