Skip to content
This repository was archived by the owner on Jun 11, 2019. It is now read-only.

Conversation

@lermit
Copy link
Contributor

@lermit lermit commented Aug 22, 2012

When package manager remove init script (/etc/init.d/mysql),
decommissioning package with following directive

class { 'mysql':
  absent => true,
}

Puppet will output following error :

err: /Stage[main]/Mysql/Service[mysql]: Could not evaluate: Could not
find init script for 'mysql'

So Service directive isn't able to manage service when package is
absent.

This isn't mysql related. I think it's global, it's the expected
behavior ?

Puppet version : 2.7.18

When package manager remove init script (/etc/init.d/mysql),
decommissioning package with following directive

class { 'mysql':
  absent => true,
}

Puppet will output following error :
err: /Stage[main]/Mysql/Service[mysql]: Could not evaluate: Could not
find init script for 'mysql'

So Service directive isn't able to manage service when package is
absent.

This isn't mysql related. I think it's global, it's the expected
behavior ?
alvagante added a commit that referenced this pull request Sep 15, 2012
No service management when package is absent.
@alvagante alvagante merged commit e149cc2 into example42:master Sep 15, 2012
@alvagante
Copy link
Member

Sorry for late reply, the issue is real even if strangely I found it happening only under some circumstances and not always, and I've not been able to explore exactly all the cases.
However the problem actually applies to all the modules and your solution is the right one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants