Ask Your Question
1

serving .exe file via http (provider => windows)

asked 2013-08-02 07:57:37 -0500

cko gravatar image

hi everyone, i'm trying to roll out an .exe file for the puppet package provider "windows".

my manifest looks like this:

$package_source   = "http://puppet.local.domain/base_check_mk/windows/check-mk-agent-1.2.3i1.exe" 
$package_name     = "Check_MK Agent 1.2.3i1" 

package { "$package_name":
    ensure   => installed,
    provider => windows,
    source   => "$package_source",
    install_options => ['/S', '/D=C:\check_mk']
}

the agent says:

Error: The source does not exist: 'http://puppet.local.domain/basecheckmk/windows/check-mk-agent-1.2.3i1.exe'

When i open this link in the browser of the agent, the download of the file starts. (So the path is correct).

The same procedure works ... (more)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-08-07 09:24:08 -0500

louis gravatar image

Puppet does not allow using http urls as a value on the source attribute. I think you can create a file resource that gets the file from a shared drive or from the files/modules directory. If you still want to use urls then i guess u can use curl.exe or wget.exe to get the package from an exec

exec{ 'download-exe'
   command => '<your_wget_or_curl_exe> $urlpath $some_target_path',
   logoutput => true,
   unless      => #check if the file exists, may be a dir and check the exit code
}

in my opinion you should use a file resource to do this and have your .exe ... (more)

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2013-08-02 07:57:37 -0500

Seen: 277 times

Last updated: Aug 07 '13