Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391817
nginx_version.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
294 B
Subscribers
None
nginx_version.rb
View Options
Facter
.
add
(
:nginx_version
)
do
setcode
do
if
Facter
.
value
(
'kernel'
)
!=
'windows'
&&
Facter
::
Util
::
Resolution
.
which
(
'nginx'
)
nginx_version
=
Facter
::
Util
::
Resolution
.
exec
(
'nginx -v 2>&1'
)
%r{nginx version: (nginx|openresty)\/([\w\.]+)}
.
match
(
nginx_version
)
[
2
]
end
end
end
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jun 4 2025, 6:50 PM (12 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3398813
Attached To
rSPNGX Puppet NGINX management module
Event Timeline
Log In to Comment