Merge "Add noop service provider and use it for httpd"

This commit is contained in:
Zuul 2019-08-22 23:01:25 +00:00 committed by Gerrit Code Review
commit c030d490ce
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,17 @@
Puppet::Type.type(:service).provide :noop, :parent => :systemd do
def startcmd
[ "/bin/true" ]
end
def stopcmd
[ "/bin/true" ]
end
def restartcmd
[ "/bin/true" ]
end
def statuscmd
[ "/bin/true" ]
end
end

View File

@ -49,6 +49,7 @@ class tripleo::profile::base::apache(
mpm_module => $mpm_module,
}
}
Service <| title == 'httpd' |> { provider => 'noop' }
include ::apache::mod::status
include ::apache::mod::ssl