Puppet Class: beats::install::debian::remove_repo

Defined in:
manifests/install/debian/remove_repo.pp

Summary

Remove the elastic repository

Overview

Examples:

include beats::install::debian::remove_repo

Parameters:

  • remove_repository (Boolean) (defaults to: true)

    Set to true to remove the elastic repository from the system This allow the installation of the .deb without using a repository

  • repository (String) (defaults to: 'elastic')

    Name of the repository in ‘/etc/apt/sources.list.d`



12
13
14
15
16
17
18
19
20
21
# File 'manifests/install/debian/remove_repo.pp', line 12

class beats::install::debian::remove_repo (
  Boolean $remove_repository = true,
  String  $repository        = 'elastic',
) {
  if ($remove_repository) {
    apt::source { $repository:
      ensure => absent,
    }
  }
}