Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9342400
indexer_journal_client.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Subscribers
None
indexer_journal_client.pp
View Options
# Deployment of the swh.indexer.journal_client
class
profile
::
swh
::
deploy
::
indexer_journal_client
{
include
::
profile
::
swh
::
deploy
::
base_indexer
include
::
profile
::
swh
::
deploy
::
journal
$config_file
=
lookup
(
'swh::deploy::indexer_journal_client::config_file'
)
$config_directory
=
lookup
(
'swh::deploy::base_indexer::config_directory'
)
$config_path
=
"${config_directory}/${config_file}"
$config
=
lookup
(
'swh::deploy::indexer_journal_client::config'
)
$user
=
lookup
(
'swh::deploy::indexer_journal_client::user'
)
$group
=
lookup
(
'swh::deploy::indexer_journal_client::group'
)
$service_name
=
'swh-indexer-journal-client'
$unit_name
=
"${service_name}.service"
file
{
$config_path:
ensure
=>
present
,
owner
=>
'root'
,
group
=>
'swhdev'
,
mode
=>
'0644'
,
content
=>
inline_template
(
"<%= @config.to_yaml %>\n"
),
notify
=>
Service
[
$service_name],
}
# Template uses variables
# - $user
# - $group
#
::
systemd
::
unit_file
{
$unit_name:
ensure
=>
present
,
content
=>
template
(
"profile/swh/deploy/journal/${unit_name}.erb"
),
}
~>
service
{
$service_name:
ensure
=>
running
,
enable
=>
true
,
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Fri, Jul 4, 12:42 PM (2 w, 2 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3314373
Attached To
rSPSITE puppet-swh-site
Event Timeline
Log In to Comment