Am 09.12.2016 um 15:35 schrieb Rob Nelson:
> I think in this case it's an issue because Adobe puts version numbers
> in the product name - it's not Acrobat Reader anymore, it's Acrobat
> Reader DC or Acrobat Reader X, which leads to having to change two
> strings. Definitely not a fan of their versioning scheme.
Nope. At least on my system, the name is "Adobe Acrobat Reader DC" and
the version is "15.020.20042". However, you're right in that some
packages add the version to the name, for example Git for Windows, where
the name looks like "Git version 2.11.0". In that case, one can either do:
class git ($version = undef) {
package { "Git version ${version}":
...
}
}
or use the chocolatey package provider from PuppetForge, like
class git {
package { 'git':
provider => 'chocolatey',
ensure => latest,
...
}
}
Note that in the 2nd example, one could also add the $version paramater
and use that instead of latest. Depends on your needs.
Bye...
Dirk
--
*Dirk Heinrichs* | Senior Systems Engineer, Delivery Pipeline
http://mimage.opentext.com/alt_content/binary/images/email-signature/recommind-ot.png
<http://www.opentext.com>
*Tel*: +49 2226 159666 (Ansage) 1149
*Email*: [email protected] <mailto:[email protected]>
*Skype*: dirk.heinrichs.recommind
Recommind GmbH, Von-Liebig-Straße 1, 53359 Rheinbach
Vertretungsberechtigte Geschäftsführer John Marshall Doolittle, Gordon
Davies, Roger Illing, Registergericht Amtsgericht Bonn, Registernummer
HRB 10646
This e-mail may contain confidential and/or privileged information. If
you are not the intended recipient (or have received this e-mail in
error) please notify the sender immediately and destroy this e-mail. Any
unauthorized copying, disclosure or distribution of the material in this
e-mail is strictly forbidden
Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte
Informationen. Wenn Sie nicht der richtige Adressat sind oder diese
E-Mail irrtümlich erhalten haben, informieren Sie bitte sofort den
Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail sind nicht gestattet.
http://www.recommind.com
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-users/6abc1208-db6f-d484-c7b2-d487ec6a4094%40recommind.com.
For more options, visit https://groups.google.com/d/optout.