Add noop service provider and use it for httpd
Add noop service provider that we use when configuring Apache in containers. Supresses actions performed on the httpd service. Change-Id: Ibed34a9eeecc9d8ab310816e05652bdd5962f772 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
17
lib/puppet/provider/service/noop.rb
Normal file
17
lib/puppet/provider/service/noop.rb
Normal 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
|
@@ -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
|
||||
|
Reference in New Issue
Block a user