Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module still installs config and starts service even with package_status=>absent #218

Open
ghost opened this issue Aug 17, 2016 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented Aug 17, 2016

Calling the rsyslog class with package_status => absent still results in the module installing the config and trying to start the service:

Notice: /Stage[main]/Rsyslog::Install/Package[rsyslog]/ensure: removed
Info: /Stage[main]/Rsyslog::Install/Package[rsyslog]: Scheduling refresh of Class[Rsyslog::Service]
Notice: /Stage[main]/Rsyslog::Config/File[/etc/rsyslog.conf]/ensure: defined content as '{md5}d2bd488686f47a3e4b545f4affa81c83'
Info: /Stage[main]/Rsyslog::Config/File[/etc/rsyslog.conf]: Scheduling refresh of Class[Rsyslog::Service]
Notice: /Stage[main]/Rsyslog::Config/File[/etc/sysconfig/rsyslog]/ensure: defined content as '{md5}5addcbd095b1516e38cb1ad49e1ab2ea'
Info: /Stage[main]/Rsyslog::Config/File[/etc/sysconfig/rsyslog]: Scheduling refresh of Class[Rsyslog::Service]
Notice: /Stage[main]/Rsyslog::Config/File[/var/lib/rsyslog]/ensure: created
Info: /Stage[main]/Rsyslog::Config/File[/var/lib/rsyslog]: Scheduling refresh of Class[Rsyslog::Service]
Info: Class[Rsyslog::Service]: Scheduling refresh of Service[rsyslog]
Error: Could not start Service[rsyslog]: Execution of '/sbin/service rsyslog start' returned 1: rsyslog: unrecognized service
Error: /Stage[main]/Rsyslog::Service/Service[rsyslog]/ensure: change from stopped to running failed: Could not start Service[rsyslog]: Execution of '/sbin/service rsyslog start' returned 1: rsyslog: unrecognized service
Notice: /Stage[main]/Rsyslog::Service/Service[rsyslog]: Triggered 'refresh' from 1 events
Info: Class[Rsyslog::Service]: Unscheduling all events on Class[Rsyslog::Service]

There should be a way to cleanly uninstall rsyslog.

@saz saz added the Bug label Sep 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant