Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F11023694
service.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
service.pp
View Options
# Set up the puppet agent as a service
# @api private
class
puppet
::
agent
::
service
{
case
$::puppet::runmode
{
'service'
:
{
$service_enabled
=
true
$cron_enabled
=
false
$systemd_enabled
=
false
}
'cron'
:
{
$service_enabled
=
false
$cron_enabled
=
true
$systemd_enabled
=
false
}
'systemd.timer'
,
'systemd'
:
{
$service_enabled
=
false
$cron_enabled
=
false
$systemd_enabled
=
true
}
'none'
,
'unmanaged'
:
{
$service_enabled
=
false
$cron_enabled
=
false
$systemd_enabled
=
false
}
default
:
{
fail
(
"Runmode of ${puppet::runmode} not supported by puppet::agent::config!"
)
}
}
if
$::puppet::runmode
in
$::puppet::unavailable_runmodes
{
fail
(
"Runmode of ${puppet::runmode} not supported on ${::kernel} operating systems!"
)
}
class
{
'puppet::agent::service::daemon'
:
enabled
=>
$service_enabled,
}
contain
puppet
::
agent
::
service
::
daemon
class
{
'puppet::agent::service::systemd'
:
enabled
=>
$systemd_enabled,
}
contain
puppet
::
agent
::
service
::
systemd
class
{
'puppet::agent::service::cron'
:
enabled
=>
$cron_enabled,
}
contain
puppet
::
agent
::
service
::
cron
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Thu, Sep 18, 4:58 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3436267
Attached To
rSPPUP puppet-theforeman-puppet
Event Timeline
Log In to Comment