Remove package with puppet

Remove package with puppet

1

Votes

class remove_package {

  # remove a package but leave its config files alone
  package { 'PACKAGE_NAME':
    ensure => 'absent',
  }

  # remove a package and purge its config files
  package { 'PACKAGE_NAME':
    ensure => 'purged',
  }

}

Vote Here

You must earn at least 1 vote on your snippets to be allowed to vote

Terms Of Use

Privacy Policy

Featured snippets are MIT license

Gears & Masters

Advertise

DevOpsnipp.com © 2020

medium.png