Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # /etc/puppet/manifests/classes/noapache2.pp
- #
- # Removes apache2 from an Ubuntu server.
- # Removal is sometimes not enough, hence the service definition.
- class noapache2 {
- package { 'apache2':
- ensure => purged,
- }
- service { 'apache2':
- ensure => stopped,
- enable => false,
- }
- exec { 'autoremove':
- command => '/usr/bin/apt-get autoremove --purge -y',
- refreshonly => true,
- subscribe => Package['apache2'],
- }
- }
Add Comment
Please, Sign In to add comment