How to achieve "uptrack-updates-`uname -r`: ensure: 'latest'

asked 2018-07-31 00:07:38 -0500

jon gravatar image

I can define:

my_package:

uptrack-updates-3.8.13-35.1.1.el6uek.x86_64:
      ensure : 'latest'

and that works OK.

However, how can I achieve something like:

my_package:

uptrack-updates-`uname -r`:
   ensure : 'latest'

Please note, if I use simply:

my_package:

uptrack-updates:
  ensure : 'latest'

then puppet will do a yum install of ALL the uptrack-updates-* packages, for all kernel versions, which are many GBs, fill up the disk and is not what I need. I need to be able to declare something that will vary according to the kernel version of each of the puppet clients, as per "uname -r"

Thank you.

edit retag flag offensive close merge delete