Hi all!
I'm new on puppet, and I making my firsts classes.
I have defined an example class to install 7Zip on Windows servers, it runs
right, but I would like to improve it.
The problem is that each time that I execute the "puppet agent --test" it
downloads the 7zip.msi file, although it is really installed.
So, my question is:
Is possible to avoid the download of the associated source file, I there is
no need to install it?
This is the code:
class software_dir {
file { 'SOFTWARE_DIR':
path => 'C:\\SOFTWARE',
ensure => directory,
}
}
class 7Zip() {
include software_dir
$7Zip_source = 'puppet://puppet.upc.edu/modules/windows/7z920.msi'
$7Zip_path = 'C:\\SOFTWARE\\7z920.msi'
$7Zip_package_name = '7-zip 9.20'
file { $7Zip_path:
source => $7Zip_source;
}
package { $7Zip_package_name:
ensure => installed,
provider => 'msi',
source => File[$7Zip_path],
}
}
Thanks in advance.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/BO6yk8wHFasJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.