# Class: mycompany_chocolatey
class mycompany_chocolatey (
String $pkgs_dir = 'C:/pkgs',
String $choco_pkg = 'chocolatey.0.10.8.nupkg',
String $choco_install_dir = 'C:/ProgramData/chocolatey',
) {
file { $pkgs_dir :
ensure => directory,
}
file { "${pkgs_dir}/${choco_pkg}" :
ensure => present,
source => "puppet:///modules/${module_name}/${choco_pkg}",
}
class { 'chocolatey' :
chocolatey_download_url => "file:///${pkgs_dir}/${choco_pkg}",
use_7zip => false,
choco_install_timeout_seconds => 2700,
choco_install_location => $choco_install_dir,
}
}