Forge Home

npackd

Manages Npackd (a package manager for Windows) packages.

12,229 downloads

10,397 latest version

3.4 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Support the Puppet Community by contributing to this module

You are welcome to contribute to this module by suggesting new features, currency updates, or fixes. Every contribution is valuable to help ensure that the module remains compatible with the latest Puppet versions and continues to meet community needs. Complete the following steps:

  1. Review the module’s contribution guidelines and any licenses. Ensure that your planned contribution aligns with the author’s standards and any legal requirements.
  2. Fork the repository on GitHub, make changes on a branch of your fork, and submit a pull request. The pull request must clearly document your proposed change.

For questions about updating the module, contact the module’s author.

Version information

  • 1.1.2 (latest)
  • 1.1.1
  • 1.1.0
  • 1.0.0
  • 0.0.1
released Aug 28th 2014
This version is compatible with:
  • Windows

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'badgerious-npackd', '1.1.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add badgerious-npackd
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install badgerious-npackd --version 1.1.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

badgerious/npackd — version 1.1.2 Aug 28th 2014

Puppet Npackd

This module implements a package provider for Npackd, a package manager for Windows.

See the list of available packages. Each package listed there has an 'ID' field; this is the package name to use (note that NpackdCL is case sensitive). You can also use npackdcl.exe search to find packages. The () enclosed name is the package ID.

This module also includes a type (npackd_repo) for managing Npackd repositories.

Install

Install from puppet forge:

puppet module install badgerious/npackd

Install from github (do this in your modulepath):

git clone https://github.com/badgerious/puppet-npackd npackd

Examples

Managing Packages


    # Install 7zip. This will install the latest version initially, and
    # apply no updates as long as any version is found on the system.
    package { 'org.7-zip.SevenZIP': 
      provider => npackd,
    }

    # Install latest WinSCP. This will always install the latest version
    # available in the repositories.
    package { 'net.winscp.WinSCP':
      ensure   => latest,
      provider => npackd,
    }

    # Install Firefox version 22. 
    package { 'org.mozilla.Firefox':
      ensure   => 22,
      provider => npackd,
    }

    # Install .NET runtime versions 4.5.50709.17929 and 4.0.30319.1. 
    # To install multiple versions of the same package, title the resource
    # "{package} {version}". This format cannot be used together with 
    # ambiguously versioned resources (e.g. ensure => latest) with the same
    # package name. 
    package { 'com.microsoft.DotNetRedistributable 4.0.30319.1':
      ensure   => installed,
      provider => npackd,
    }
    package { 'com.microsoft.DotNetRedistributable 4.5.50709.17929':
      ensure   => installed,
      provider => npackd,
    }

    # Remove ALL versions of PuTTY. If you specify a version, only that version will be removed. 
    # If there are multiple versions installed, one will be removed each puppet run (not ideal,
    # but will eventually get the job done). 
    package { 'uk.org.greenend.chiark.sgtatham.Putty':
      ensure   => absent,
      provider => npackd,
    }

Managing Repos


    # Add a repo
    npackd_repo { 'https://windows-package-manager.googlecode.com/hg/repository/Rep.xml': }

    # Remove a repo
    npackd_repo { 'Badrepo':
      ensure => absent,
      repo   => 'https://windows-package-manager.googlecode.com/hg/repository/Rep.xml',
    }

Puppet compatibility

Puppet 3.7 or greater requires 1.1.2 or greater of this module.

Npackd compatibility

  • Version >= 1.1.0 of this module is compatible with Npackd 1.18.7 (and potentially future versions).
  • Version <= 1.0.0 of this module is compatible with Npackd 1.17.9

Changes

Changelog