From 1dca2fc85e62d225482ef61817518032463f8996 Mon Sep 17 00:00:00 2001 From: mergwyn Date: Thu, 30 Nov 2023 12:46:58 +0000 Subject: [PATCH] Fix path for unison --- site-modules/profile/manifests/app/unison.pp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/site-modules/profile/manifests/app/unison.pp b/site-modules/profile/manifests/app/unison.pp index b50ca324..b20e9217 100644 --- a/site-modules/profile/manifests/app/unison.pp +++ b/site-modules/profile/manifests/app/unison.pp @@ -47,12 +47,10 @@ package { 'unison': ensure => absent, } $version = '2.53.3' - $ocaml = '4.14.0' + $os = downcase($facts['os']['name']) + $hardware = $facts['os']['hardware'] - case $facts['os']['architecture'] { - 'amd64': { $archive_name = "unison-v${version}+ocaml-${ocaml}+x86_64.linux.tar.gz" } - default: { } - } + $archive_name = "unison-${version}-${os}-${hardware}.tar.gz" $url = "https://github.com/bcpierce00/unison/releases/download/v${version}/${archive_name}" $archive_path = "${facts['puppet_vardir']}/${archive_name}"