feat: cleanup consul from url install #239

Merged
unkinben merged 1 commits from neoloc/cleanup_consul_local into develop 2025-03-30 18:40:09 +11:00
3 changed files with 8 additions and 0 deletions
Showing only changes of commit 9eca84fc24 - Show all commits

View File

@ -167,6 +167,7 @@ profiles::base::puppet_servers:
consul::install_method: 'package'
consul::manage_repo: false
consul::bin_dir: /usr/bin
profiles::dns::master::basedir: '/var/named/sources'
profiles::dns::base::ns_role: 'roles::infra::dns::resolver'

View File

@ -16,3 +16,4 @@ networking::nwmgr_dns_none: false
consul::install_method: 'url'
consul::manage_repo: false
consul::bin_dir: /usr/local/bin

View File

@ -85,4 +85,10 @@ class profiles::consul::client (
require => File['/root/.config'],
}
# cleanup /usr/local/bin/consul which was created by url install method
if $facts['os']['family'] == 'RedHat' {
file {'/usr/local/bin/consul':
ensure => absent,
}
}
}