Issue #18665 has been updated by Christian Ruppert.
The Service, the package "atd" has been purged:
service { "at":
enable => false,
ensure => "stopped",
}
Puppet output:
# puppet resource -vd service at
Debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not
exist
Debug: Puppet::Type::Service::ProviderSystemd: file /bin/systemctl does not
exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does
not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not
exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not
exist
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does
not exist
Debug: Puppet::Type::Service::ProviderRedhat: file /sbin/chkconfig does not
exist
Debug: Puppet::Type::Service::ProviderSystemd: file /bin/systemctl does not
exist
Debug: Puppet::Type::Service::ProviderOpenrc: file /sbin/rc-service does
not exist
Debug: Puppet::Type::Service::ProviderGentoo: file /sbin/rc-update does not
exist
Debug: Puppet::Type::Service::ProviderRunit: file /usr/bin/sv does not exist
Debug: Puppet::Type::Service::ProviderLaunchd: file /bin/launchctl does not
exist
Debug: Puppet::Type::Service::ProviderDaemontools: file /usr/bin/svc does
not exist
Debug: Service screen-cleanup found in both debian and init; skipping the
init version
Debug: Service console-setup found in both debian and init; skipping the
init version
Debug: Service mountkernfs.sh found in both debian and init; skipping the
init version
Debug: Service acpid found in both debian and init; skipping the init
version
Debug: Service bootlogd found in both debian and init; skipping the init
version
Debug: Service sendsigs found in both debian and init; skipping the init
version
Debug: Service exim4 found in both debian and init; skipping the init
version
Debug: Service single found in both debian and init; skipping the init
version
Debug: Service mountall-bootclean.sh found in both debian and init;
skipping the init version
Debug: Service mtab.sh found in both debian and init; skipping the init
version
Debug: Service procps found in both debian and init; skipping the init
version
Debug: Service killprocs found in both debian and init; skipping the init
version
Debug: Service umountfs found in both debian and init; skipping the init
version
Debug: Service mountoverflowtmp found in both debian and init; skipping the
init version
Debug: Service snmpd found in both debian and init; skipping the init
version
Debug: Service puppet found in both debian and init; skipping the init
version
Debug: Service mountdevsubfs.sh found in both debian and init; skipping the
init version
Debug: Service stop-bootlogd-single found in both debian and init; skipping
the init version
Debug: Service clamav-freshclam found in both debian and init; skipping the
init version
Debug: Service rcS found in both debian and init; skipping the init version
Debug: Service stop-bootlogd found in both debian and init; skipping the
init version
Debug: Service hwclock.sh found in both debian and init; skipping the init
version
Debug: Service urandom found in both debian and init; skipping the init
version
Debug: Service ifupdown found in both debian and init; skipping the init
version
Debug: Service hwclockfirst.sh found in both debian and init; skipping the
init version
Debug: Service rsync found in both debian and init; skipping the init
version
Debug: Service module-init-tools found in both debian and init; skipping
the init version
Debug: Service puppetqd found in both debian and init; skipping the init
version
Debug: Service lm-sensors found in both debian and init; skipping the init
version
Debug: Service ifupdown-clean found in both debian and init; skipping the
init version
Debug: Service fancontrol found in both debian and init; skipping the init
version
Debug: Service rc.local found in both debian and init; skipping the init
version
Debug: Service reboot found in both debian and init; skipping the init
version
Debug: Service postfix found in both debian and init; skipping the init
version
Debug: Service rsyslog found in both debian and init; skipping the init
version
Debug: Service osirismd found in both debian and init; skipping the init
version
Debug: Service rmnologin found in both debian and init; skipping the init
version
Debug: Service checkroot.sh found in both debian and init; skipping the
init version
Debug: Service rc found in both debian and init; skipping the init version
Debug: Service bootlogs found in both debian and init; skipping the init
version
Debug: Service syslog-ng found in both debian and init; skipping the init
version
Debug: Service halt found in both debian and init; skipping the init version
Debug: Service sudo found in both debian and init; skipping the init version
Debug: Service mountall.sh found in both debian and init; skipping the init
version
Debug: Service bootmisc.sh found in both debian and init; skipping the init
version
Debug: Service umountroot found in both debian and init; skipping the init
version
Debug: Service mysql found in both debian and init; skipping the init
version
Debug: Service cron found in both debian and init; skipping the init version
Debug: Service ntp found in both debian and init; skipping the init version
Debug: Service umountnfs.sh found in both debian and init; skipping the
init version
Debug: Service kbd found in both debian and init; skipping the init version
Debug: Service hostname.sh found in both debian and init; skipping the init
version
Debug: Service nfs-common found in both debian and init; skipping the init
version
Debug: Service keyboard-setup found in both debian and init; skipping the
init version
Debug: Service bacula-fd found in both debian and init; skipping the init
version
Debug: Service mountnfs-bootclean.sh found in both debian and init;
skipping the init version
Debug: Service udev-mtab found in both debian and init; skipping the init
version
Debug: Service checkfs.sh found in both debian and init; skipping the init
version
Debug: Service udev found in both debian and init; skipping the init version
Debug: Service apache2 found in both debian and init; skipping the init
version
Debug: Service networking found in both debian and init; skipping the init
version
Debug: Service osirisd found in both debian and init; skipping the init
version
Debug: Service puppet-dashboard-workers found in both debian and init;
skipping the init version
Debug: Service ssh found in both debian and init; skipping the init version
Debug: Service mountnfs.sh found in both debian and init; skipping the init
version
Debug: Service puppet-dashboard found in both debian and init; skipping the
init version
Debug: Service[at](provider=debian): Could not find at in /etc/init.d
Debug: Service[at](provider=debian): Could not find at.sh in /etc/init.d
Error: Could not run: Could not find init script for 'at'
----------------------------------------
Feature #18665: Service resource: Parameter to ignore non-existing services
https://projects.puppetlabs.com/issues/18665#change-82191
Author: Christian Ruppert
Status: Needs More Information
Priority: Normal
Assignee: Christian Ruppert
Category: service
Target version:
Affected Puppet version:
Keywords:
Branch:
Hey,
it would be really cool to have either an "onlyif" or even a "ignore" option
for the service resource.
Example:
We have some SLES (SuSe Linux Enterprise) systems that install, enable and
start some services after/during a system upgrade and we don't want those
services.
Puppet throws errors when I create some service resources that make sure the
service is actually stopped and disabled because the init script doesn't exist
anymore.
The package has been removed in the same manifest.
Ok, I could write some exec resources or other kinds of helper but I think the
"onlyif" or and "ignore" option would really make sense here for such cases.
Or you want to make sure a package has been removed from the system but there
is no pre/post command during the uninstall phase that makes sure the service
has been stopped prior.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/puppet-bugs?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.