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 {
package{'abrt':
package{'abrt-cli':
ensure => present,
}
service{['abrtd','abrt-oops','abrt-ccpp']:
ensure => running,
enable => true,
require => Package['abrt'],
} -> service{['abrtd','abrt-oops','abrt-ccpp']:
ensure => running,
enable => true,
}
}
# remove all the necessary packages
class abrt::disable::base inherits abrt::base {
package{
'abrt-cli':
ensure => absent;
['abrt-addon-kerneloops','abrt-addon-ccpp','abrt-addon-python']:
require => Package['abrt-cli'],
ensure => absent;
}
Package['abrt']{
Package['abrt-cli']{
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']{
ensure => stopped,
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'];
}
}
Markdown is supported
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