Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391289
mountpoints.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
795 B
Subscribers
None
mountpoints.pp
View Options
# Handle mount points
class
profile
::
mountpoints
{
$mountpoints
=
lookup
(
'mountpoints'
,
Hash
,
'deep'
)
each
(
$mountpoints)
|
$mountpoint,
$config|
{
if
(
has_key
(
$config,
'options'
)
and
$config
[
'options'
]
=~
Array
)
{
$mount_config
=
$config
+
{
options
=>
join
(
$config
[
'options'
],
','
),
}
}
else
{
$mount_config
=
$config
}
exec
{
"create ${mountpoint}"
:
creates
=>
$mountpoint,
command
=>
"mkdir -p ${mountpoint}"
,
path
=>
[
'/bin'
,
'/usr/bin'
,
'/sbin'
,
'/usr/sbin'
],
}
->
file
{
$mountpoint:}
mount
{
default
:
ensure
=>
present
,
dump
=>
0
,
pass
=>
0
,
options
=>
'defaults'
;
$mountpoint:
*
=>
$mount_config,
require
=>
File
[
$mountpoint],
}
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Jun 4 2025, 6:41 PM (14 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3243058
Attached To
rSPPROF puppet-swh-profile
Event Timeline
Log In to Comment