class infisical::cli {
  contain infisical::cli::install
}

class infisical::cli::install {
  file { '/opt/infisical':
    ensure => directory
  }

  file { '/opt/infisical/infisical-cli.deb': 
    ensure => file,
    source => 'https://github.com/Infisical/infisical/releases/download/infisical-cli%2Fv0.36.22/infisical_0.36.22_linux_amd64.deb'
  } ~>
  package { '/opt/infisical/infisical-cli.deb':
    provider => dpkg,
    source => '/opt/infisical/infisical-cli.deb'
  }
}
