Skip to content

pkg.py: pkgs parameter documented as not supported on Windows #33313

Closed

Description

@morganwillcock

The pkgs parameter of pkg.installed and pkg.latest are documented as not supported on Windows:

salt/salt/states/pkg.py

Lines 852 to 857 in 22c4331

**MULTIPLE PACKAGE INSTALLATION OPTIONS: (not supported in Windows or
pkgng)**
:param list pkgs:
A list of packages to install from a software repository. All packages
listed under ``pkgs`` will be installed via a single command.

salt/salt/states/pkg.py

Lines 1410 to 1416 in 22c4331

Multiple Package Installation Options:
(Not yet supported for: Windows, FreeBSD, OpenBSD, MacOS, and Solaris
pkgutil)
pkgs
A list of packages to maintain at the latest available version.

...but then I realised I was already using them and they seem to work without any problems.

install_vcpp_redist:
  pkg.installed:
    - pkgs:
      - microsoft_vcpp_2005_sp1_redist_x64
      - microsoft_vcpp_2005_sp1_redist_x86
      - microsoft_vcpp_2008_redist_x64
      - microsoft_vcpp_2008_redist_x86

install_flash_player:
  pkg.latest:
    - pkgs:
      - adobe_flash_player_activex
      - adobe_flash_player_plugin

Tested on 2015.8.8.2

Activity

  1. Ch3LL commented on May 17, 2016

    @Ch3LL
    Contributor

    @morganwillcock looks like you are right:

    ➜  salt git:(tagv2015.8.1) cat /srv/salt/issues/33313.sls
    install_pkgs:
      pkg.installed:
        - pkgs:
          - firefox
          - silverlight
    
    ➜  salt git:(tagv2015.8.1) sudo salt 'win8_test' state.sls issues.33313 -t 30
    win8_test:
    ----------
              ID: install_pkgs
        Function: pkg.installed
          Result: True
         Comment: 2 targeted packages were installed/updated.
         Started: 16:49:35.195000
        Duration: 87852.0 ms
         Changes:   
                  ----------
                  Mozilla Maintenance Service:
                      ----------
                      new:
                          46.0.1
                      old:
                  firefox:
                      ----------
                      new:
                          46.0.1
                      old:
                  silverlight:
                      ----------
                      new:
                          5.1.40728.0
                      old:
    
    Summary for win8_test
    ------------
    Succeeded: 1 (changed=1)
    Failed:    0
    ------------
    Total states run:     1
    

    Looks like we just need to clean up the documentation. Thanks for pointing it out.

  2. added
    bug
    documentation
    P3
    severity-medium
    Platform
    on May 17, 2016
  3. added this to the Approved milestone on May 17, 2016
  4. added a commit that references this issue on May 19, 2016
    89b2124
  5. added
    fixed-pls-verify
    on May 19, 2016
  6. modified the milestones: C 10, Approved on May 19, 2016
  7. self-assigned this
    on May 19, 2016
  8. rallytime commented on May 19, 2016

    @rallytime
    Contributor

    Fixed in #33361

  9. added a commit that references this issue on May 19, 2016
    f248003
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3PlatformWindowsbugdocumentationfixed-pls-verifyseverity-medium

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions