Puppet Class: awscli2::uninstall
- Defined in:
- manifests/uninstall.pp
Overview
Class awscli2::uninstall
This class is called from awscli2 to un-install the CLI.
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'manifests/uninstall.pp', line 5
class awscli2::uninstall {
# XXX - hinge this on the `installed` fact, or just blindly remove?
if $facts['umd_awscli2_version'] {
file { "${awscli2::install_dir}/v2":
ensure => absent,
force => true,
purge => true,
recurse => true,
}
$bin_files = [
"${awscli2::bin_dir}/aws",
"${awscli2::bin_dir}/aws_completer",
]
file { $bin_files:
ensure => absent,
}
}
}
|