Puppet Class: mongodb::client

Inherits:
mongodb::globals
Defined in:
manifests/client.pp

Overview

Parameters:

  • ensure (String[1]) (defaults to: pick($mongodb::globals::client_version, 'present'))

    Used to ensure that the package is installed, or that the package is absent/purged

  • package_name (String[1]) (defaults to: 'mongodb-mongosh')

    This setting can be used to specify the name of the package that should be installed. If not specified, the module will use whatever service name is the default for your OS distro.



13
14
15
16
17
18
19
20
21
22
# File 'manifests/client.pp', line 13

class mongodb::client (
  String[1] $ensure = pick($mongodb::globals::client_version, 'present'),
  String[1] $package_name = 'mongodb-mongosh',
) inherits mongodb::globals {
  package { 'mongodb_client':
    ensure => $ensure,
    name   => $package_name,
    tag    => 'mongodb_package',
  }
}