On Debian, enable the tmp.mount service

Mount /tmp in RAM on SSD
This commit is contained in:
Keith Whyte 2021-06-15 22:11:50 +02:00
parent 0f0a707200
commit a5efd89314

View file

@ -54,4 +54,15 @@ class rhizo_base::fixes::debian {
ensure => link, ensure => link,
target => '/var/cache/puppet/state/' target => '/var/cache/puppet/state/'
} }
file { '/etc/systemd/system/tmp.mount':
ensure => present,
source => '/usr/share/systemd/tmp.mount'
}
service { 'tmp.mount':
provider => 'systemd',
enable => true,
require => File['/etc/systemd/system/tmp.mount']
}
} }