Skip to content

Commit

Permalink
Fix path for unison
Browse files Browse the repository at this point in the history
  • Loading branch information
mergwyn committed Nov 30, 2023
1 parent 8e605b0 commit 1dca2fc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions site-modules/profile/manifests/app/unison.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 1dca2fc

Please sign in to comment.