Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9697790
tmpfile.pp
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
tmpfile.pp
View Options
# Creates a systemd tmpfile
#
# @api public
#
# @see systemd-tmpfiles(8)
#
# @param name [Pattern['^[^/]+\.conf$']] (filename)
# The name of the tmpfile to create
#
# @param ensure
# Whether to drop a file or remove it
#
# @param path
# The path to the main systemd tmpfiles directory
#
# @param content
# The literal content to write to the file
#
# * Mutually exclusive with ``$source``
#
# @param source
# A ``File`` resource compatible ``source``
#
# * Mutually exclusive with ``$limits``
#
define
systemd
::
tmpfile
(
Enum
[
'present'
,
'absent'
,
'file'
]
$ensure
=
'file'
,
Systemd
::
Dropin
$filename
=
$name,
Stdlib
::
Absolutepath
$path
=
'/etc/tmpfiles.d'
,
Optional
[
String
]
$content
=
undef
,
Optional
[
String
]
$source
=
undef
,
)
{
include
systemd
::
tmpfiles
$_tmp_file_ensure
=
$ensure
?
{
'present'
=>
'file'
,
default
=>
$ensure,
}
file
{
"${path}/${filename}"
:
ensure
=>
$_tmp_file_ensure,
content
=>
$content,
source
=>
$source,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0444'
,
notify
=>
Class
[
'systemd::tmpfiles'
],
}
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 19, 12:57 AM (3 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3248436
Attached To
R139 puppet-camptocamp-systemd
Event Timeline
Log In to Comment