Puppet Class: awscli2

Defined in:
manifests/init.pp

Overview

Class: awscli2

Installs the AWS CLI version 2.

Parameters


  • ‘version` Version of the AWS CLI to install. E.g. “2.0.28”

  • ‘ensure` Set to `absent` to un-install the AWS CLI. Set to `present` to install it.

  • ‘install_dir` Path to install the AWS CLI into. Defaults to `/usr/local/aws-cli`.

  • ‘bin_dir` The directory to store symlinks to eecutables for the AWS CLI. Defaults to `/usr/bin`.

Parameters:

  • version (String[1])
  • ensure (Enum['absent', 'present']) (defaults to: 'present')
  • install_dir (String[1]) (defaults to: '/usr/local/aws-cli')
  • bin_dir (String[1]) (defaults to: '/usr/bin')


23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'manifests/init.pp', line 23

class awscli2 (
  String[1]                 $version,
  Enum['absent', 'present'] $ensure = 'present',
  String[1]                 $install_dir = '/usr/local/aws-cli',
  String[1]                 $bin_dir = '/usr/bin',
) {

  if $ensure == 'absent' {
    contain awscli2::uninstall
  } else {
    contain awscli2::install
  }
}