Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9124379
swh.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
927 B
Subscribers
None
swh.pp
View Options
# Base class for Software Heritage-specific configuration
class
profile
::
swh
{
$swh_base_directory
=
lookup
(
'swh::base_directory'
)
$swh_conf_directory
=
lookup
(
'swh::conf_directory'
)
$swh_global_conf_file
=
lookup
(
'swh::global_conf::file'
)
$swh_log_directory
=
lookup
(
'swh::log_directory'
)
$swh_logrotate_conf
=
'/etc/logrotate.d/softwareheritage'
file
{[
$swh_base_directory,
$swh_conf_directory,
$swh_log_directory,
]:
ensure
=>
directory
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0755'
,
}
file
{
$swh_global_conf_file:
ensure
=>
'absent'
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
}
file
{
$swh_logrotate_conf:
ensure
=>
file
,
owner
=>
'root'
,
group
=>
'root'
,
mode
=>
'0644'
,
content
=>
template
(
'profile/swh/logrotate.conf.erb'
),
}
include
profile
::
swh
::
deploy
include
profile
::
swh
::
apt_config
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Sat, Jun 21, 7:03 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3290409
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment