biemond / biemond-jdk7

Puppet JDK7 module optimized for Oracle
Apache License 2.0
2 stars 15 forks source link

Prevent it from downloading the tarball #20

Open userMar2017 opened 7 years ago

userMar2017 commented 7 years ago

Hi Edwin,

How do I prevent the module from downloading the tarball to the local folder ?

I have currently setup "source_path" and "download_dir". I dont want it to download the file to the "download_dir"

If I dont specify "download_dir" it simply defaults to "/install" and fails with following exception :

Notice: /Stage[main]/Safeway::Ohs::Install_jdk7/Jdk7::Install7[jdk1.7.0_91]/Exec[create /install directory]/returns: mkdir: cannot create directory ‘/install’: Permission denied Error: mkdir -p /install returned 1 instead of one of [0] Error: /Stage[main]/Safeway::Ohs::Install_jdk7/Jdk7::Install7[jdk1.7.0_91]/Exec[create /install directory]/returns: change from notrun to 0 failed: mkdir -p /install returned 1 instead of one of [0]

biemond commented 7 years ago

Hi,

I guess when you set download_dir to source_path , does that work.

userMar2017 commented 7 years ago

That fails as it tries to change the ownership/permissions for some reason

biemond commented 7 years ago

Ok, I will add a remote = true or false parameter