Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8395621
service.pp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
652 B
Subscribers
None
service.pp
View Options
# Class: nginx::service
#
# This module manages NGINX service management and vhost rebuild
#
# Parameters:
#
# There are no default parameters for this class.
#
# Actions:
#
# Requires:
#
# Sample Usage:
#
# This class file is not called directly
class
nginx
::
service
{
exec
{
'rebuild-nginx-vhosts'
:
command
=>
"/bin/cat ${nginx::params::nx_temp_dir}/nginx.d/* > ${nginx::params::nx_conf_dir}/conf.d/vhost_autogen.conf"
,
refreshonly
=>
true
,
subscribe
=>
File
[
"${nginx::params::nx_temp_dir}/nginx.d"
],
}
service
{
"nginx"
:
ensure
=>
running
,
enable
=>
true
,
hasstatus
=>
true
,
hasrestart
=>
true
,
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Jun 4 2025, 7:42 PM (10 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3399332
Attached To
rSPNGX Puppet NGINX management module
Event Timeline
Log In to Comment