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