Commit b5eb3a9d authored by mh's avatar mh
Browse files

manage things properly as we won't use it just for disabling

parent 107aa3e1
# base tools
class abrt::base { class abrt::base {
package{'abrt': package{'abrt-cli':
ensure => present, ensure => present,
} } -> service{['abrtd','abrt-oops','abrt-ccpp']:
service{['abrtd','abrt-oops','abrt-ccpp']:
ensure => running, ensure => running,
enable => true, enable => true,
require => Package['abrt'],
} }
} }
# remove all the necessary packages
class abrt::disable::base inherits abrt::base { class abrt::disable::base inherits abrt::base {
package{ Package['abrt-cli']{
'abrt-cli':
ensure => absent;
['abrt-addon-kerneloops','abrt-addon-ccpp','abrt-addon-python']:
require => Package['abrt-cli'],
ensure => absent;
}
Package['abrt']{
ensure => absent, ensure => absent,
require => [Service['abrtd','abrt-oops','abrt-ccpp'], Package['abrt-addon-kerneloops','abrt-addon-ccpp','abrt-addon-python']], before => Service['abrtd','abrt-oops','abrt-ccpp']
} }
Service['abrtd','abrt-oops','abrt-ccpp']{ Service['abrtd','abrt-oops','abrt-ccpp']{
ensure => stopped, ensure => stopped,
enable => false, enable => false,
require => undef, require => undef
}
package{
['abrt-addon-kerneloops','abrt-addon-ccpp','abrt-addon-python','abrt']:
ensure => absent,
require => Service['abrtd','abrt-oops','abrt-ccpp'];
} }
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment