feat: cleanup consul from url install

- set bind_dir to be /usr/bin for rhel, /usr/local/bin for debian
- remove url-installed consul from rhel
This commit is contained in:
2025-03-30 18:36:41 +11:00
parent 6cb249ffbc
commit 9eca84fc24
3 changed files with 8 additions and 0 deletions
+6
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,
}
}
}