|
67 | 67 | * [`Systemd::Unit::Amount`](#Systemd--Unit--Amount): Systemd definition of amount, often bytes or united bytes
|
68 | 68 | * [`Systemd::Unit::AmountOrPercent`](#Systemd--Unit--AmountOrPercent): Systemd definition of amount, often bytes or united bytes
|
69 | 69 | * [`Systemd::Unit::Install`](#Systemd--Unit--Install): Possible keys for the [Install] section of a unit file
|
| 70 | +* [`Systemd::Unit::Mount`](#Systemd--Unit--Mount): Possible keys for the [Mount] section of a unit file |
70 | 71 | * [`Systemd::Unit::Path`](#Systemd--Unit--Path): Possible keys for the [Path] section of a unit file
|
71 | 72 | * [`Systemd::Unit::Percent`](#Systemd--Unit--Percent): Systemd definition of a percentage
|
72 | 73 | * [`Systemd::Unit::Service`](#Systemd--Unit--Service): Possible keys for the [Service] section of a unit file
|
@@ -1031,6 +1032,7 @@ The following parameters are available in the `systemd::manage_dropin` defined t
|
1031 | 1032 | * [`timer_entry`](#-systemd--manage_dropin--timer_entry)
|
1032 | 1033 | * [`path_entry`](#-systemd--manage_dropin--path_entry)
|
1033 | 1034 | * [`socket_entry`](#-systemd--manage_dropin--socket_entry)
|
| 1035 | +* [`mount_entry`](#-systemd--manage_dropin--mount_entry) |
1034 | 1036 |
|
1035 | 1037 | ##### <a name="-systemd--manage_dropin--unit"></a>`unit`
|
1036 | 1038 |
|
@@ -1174,6 +1176,14 @@ key value pairs for the [Socket] section of the unit file
|
1174 | 1176 |
|
1175 | 1177 | Default value: `undef`
|
1176 | 1178 |
|
| 1179 | +##### <a name="-systemd--manage_dropin--mount_entry"></a>`mount_entry` |
| 1180 | + |
| 1181 | +Data type: `Optional[Systemd::Unit::Mount]` |
| 1182 | + |
| 1183 | +key value pairs for the [Mount] section of the unit file |
| 1184 | + |
| 1185 | +Default value: `undef` |
| 1186 | + |
1177 | 1187 | ### <a name="systemd--manage_unit"></a>`systemd::manage_unit`
|
1178 | 1188 |
|
1179 | 1189 | Generate unit file from template
|
@@ -1251,6 +1261,30 @@ systemd::manage_unit{'arcd@.service':
|
1251 | 1261 | }
|
1252 | 1262 | ```
|
1253 | 1263 |
|
| 1264 | +##### Mount a Filesystem and Use for a Service |
| 1265 | + |
| 1266 | +```puppet |
| 1267 | +systemd::manage_unit { 'var-lib-sss-db.mount': |
| 1268 | + ensure => present, |
| 1269 | + unit_entry => { |
| 1270 | + 'Description' => 'Mount sss tmpfs db', |
| 1271 | + }, |
| 1272 | + mount_entry => { |
| 1273 | + 'What' => 'tmpfs', |
| 1274 | + 'Where' => '/var/lib/sss/db', |
| 1275 | + 'Type' => 'tmpfs', |
| 1276 | + 'Options' => 'size=300M,mode=0700,uid=sssd,gid=sssd,rootcontext=system_u:object_r:sssd_var_lib_t:s0', |
| 1277 | + }, |
| 1278 | +} |
| 1279 | +systemd::manage_dropin { 'tmpfs-db.conf': |
| 1280 | + ensure => present, |
| 1281 | + unit => 'sssd.service', |
| 1282 | + unit_entry => { |
| 1283 | + 'RequiresMountsFor' => '/var/lib/sss/db', |
| 1284 | + }, |
| 1285 | +} |
| 1286 | +``` |
| 1287 | + |
1254 | 1288 | ##### Remove a unit file
|
1255 | 1289 |
|
1256 | 1290 | ```puppet
|
@@ -1284,6 +1318,7 @@ The following parameters are available in the `systemd::manage_unit` defined typ
|
1284 | 1318 | * [`timer_entry`](#-systemd--manage_unit--timer_entry)
|
1285 | 1319 | * [`path_entry`](#-systemd--manage_unit--path_entry)
|
1286 | 1320 | * [`socket_entry`](#-systemd--manage_unit--socket_entry)
|
| 1321 | +* [`mount_entry`](#-systemd--manage_unit--mount_entry) |
1287 | 1322 |
|
1288 | 1323 | ##### <a name="-systemd--manage_unit--name"></a>`name`
|
1289 | 1324 |
|
@@ -1451,6 +1486,14 @@ kev value paors for [Socket] section of the unit file.
|
1451 | 1486 |
|
1452 | 1487 | Default value: `undef`
|
1453 | 1488 |
|
| 1489 | +##### <a name="-systemd--manage_unit--mount_entry"></a>`mount_entry` |
| 1490 | + |
| 1491 | +Data type: `Optional[Systemd::Unit::Mount]` |
| 1492 | + |
| 1493 | +kev value pairs for [Mount] section of the unit file. |
| 1494 | + |
| 1495 | +Default value: `undef` |
| 1496 | + |
1454 | 1497 | ### <a name="systemd--modules_load"></a>`systemd::modules_load`
|
1455 | 1498 |
|
1456 | 1499 | Creates a modules-load.d drop file
|
@@ -2798,6 +2841,30 @@ Struct[{
|
2798 | 2841 | }]
|
2799 | 2842 | ```
|
2800 | 2843 |
|
| 2844 | +### <a name="Systemd--Unit--Mount"></a>`Systemd::Unit::Mount` |
| 2845 | + |
| 2846 | +Possible keys for the [Mount] section of a unit file |
| 2847 | + |
| 2848 | +* **See also** |
| 2849 | + * https://www.freedesktop.org/software/systemd/man/latest/systemd.mount.html |
| 2850 | + |
| 2851 | +Alias of |
| 2852 | + |
| 2853 | +```puppet |
| 2854 | +Struct[{ |
| 2855 | + Optional['What'] => String[1], |
| 2856 | + Optional['Where'] => Stdlib::Unixpath, |
| 2857 | + Optional['Type'] => String[1], |
| 2858 | + Optional['Options'] => String[1], |
| 2859 | + Optional['SloppyOptions'] => Boolean, |
| 2860 | + Optional['LazyUnmount'] => Boolean, |
| 2861 | + Optional['ReadWriteOnly'] => Boolean, |
| 2862 | + Optional['ForceUnmount'] => Boolean, |
| 2863 | + Optional['DirectoryMode'] => Stdlib::Filemode, |
| 2864 | + Optional['TimeoutSec'] => String[0], |
| 2865 | + }] |
| 2866 | +``` |
| 2867 | + |
2801 | 2868 | ### <a name="Systemd--Unit--Path"></a>`Systemd::Unit::Path`
|
2802 | 2869 |
|
2803 | 2870 | Possible keys for the [Path] section of a unit file
|
|
0 commit comments