Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(PE-12001) Ensure pe-puppet/mcollective services stopped
Removing the PUPpuppet and PUPmcollective packages does not stop the running services. I've added service resources for both of the old PE services to ensure they are stopped. However, it is also critical that they are stopped as the very last act of the catalog, because stopping the pe-puppet service, at least on Solaris, terminates the run in mid progress. Originally I had the services stopped in the prepare stage, but had to reposition them.
- Loading branch information
Showing
3 changed files
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# == Class puppet_agent::service::solaris | ||
# | ||
# This class tidies up the pe-puppet and pe-mcollective services | ||
# which are left running after package removal on Solaris 10. | ||
# | ||
class puppet_agent::service::solaris { | ||
assert_private() | ||
|
||
if $::operatingsystem == 'Solaris' and $::operatingsystemmajrelease == '10' { | ||
service { 'pe-mcollective': | ||
ensure => stopped, | ||
} | ||
service { 'pe-puppet': | ||
ensure => stopped, | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters