On Debian, enable the tmp.mount service
Mount /tmp in RAM on SSD
This commit is contained in:
parent
0f0a707200
commit
a5efd89314
1 changed files with 11 additions and 0 deletions
|
@ -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']
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue