Uploaded image for project: 'Modules'
  1. Modules
  2. MODULES-6912

puppet_agent : Package version name not recognised on windows

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • None
    • None
    • puppet_agent
    • Platform OS
    • Platform OS Kanban
    • Needs Assessment
    • 33346
    • 1
    • Needs Assessment

    Description

      Basic Info
      Module Version: 1.6.0
      Puppet Version: 5.3
      OS Name/Version: Windows 10

      Using the puppet_agent module on windows causes repeated attempts to update the puppet agent. As far as I can tell this is because the package name is 'Puppet Agent (64-bit)' which is currently ignored and default to puppet-agent.

      I tried to use unless:

      unless => 'C:/Windows/system32/cmd.exe /c ""C:/Program Files/Puppet Labs/Puppet/bin/puppet.bat" --version | findstr "5.5.0""'

      but unless appears to be unsupported by the module.

      Can this package name be fixed?

      Should I be able to use unless?

      Is there another workaround I can use?

      Desired Behavior:

      Only run the puppet_agent install if the target version is not installed.

      Actual Behavior:

      info /Stage[main]/Puppet_agent::Windows::Install/File[C:\Users\resolve\AppData\Local\Temp\install_puppet.bat] Filebucketed C:/Users/resolve/AppData/Local/Temp/install_puppet.bat to puppet with sum a479578b484ec981dc6e6d6b3a37d9f4
      notice /Stage[main]/Puppet_agent::Windows::Install/File[C:\Users\resolve\AppData\Local\Temp\install_puppet.bat]/content content changed '{md5}a479578b484ec981dc6e6d6b3a37d9f4' to '{md5}75635eeef985c8fdecbb41b285533a59'
      notice /Stage[main]/Puppet_agent::Windows::Install/Exec[install_puppet.bat]/returns executed successfully
      notice /Stage[main]/Puppet_agent::Windows::Install/Exec[fix inheritable SYSTEM perms]/returns executed successfully

      Attachments

        Issue Links

          Activity

            People

              branan Branan Riley
              lukasz.suleja Lukasz Suleja
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support