Forge Home

mercurial

Puppet module to install and configure Mercurial

2,003 downloads

43 latest version

1.3 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.

Version information

  • 0.1.1 (latest)
  • 0.1.0
released Oct 30th 2024
This version is compatible with:
  • Puppet Enterprise 2019.8.x, 2019.7.x, 2019.5.x, 2019.4.x, 2019.3.x, 2019.2.x, 2019.1.x, 2019.0.x, 2018.1.x, 2017.3.x, 2017.2.x, 2016.4.x
  • Puppet >= 4.10.0 < 7.0.0
  • , , , , , ,

Start using this module

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

Add this module to your Puppetfile:

mod 'frankvandamme-mercurial', '0.1.1'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add frankvandamme-mercurial
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install frankvandamme-mercurial --version 0.1.1

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

frankvandamme/mercurial — version 0.1.1 Oct 30th 2024

Mercurial

Mercurial is a version control system. Since years now overshadowed by Git, you can think of Mercurial as a distributed version control tool for human beings, as opposed to the much more complex and hard to work with ways of Git.

Usage

include mercurial

Which will just install the package.

main class parameters

  • package_ensure: package presence (absent, present, latest); see Puppetlabs' package type documentation.
  • provider: package provider

The following affect /etc/mercurial/hgrc, the system wide config file, which influences the behaviour of the Mercurial command insofar the user does not override the settings in his own .hgrc. They are named the same as the entries therein. For reference, see man 5 hgrc for details.

hgrc configuration

More main class parameters:

  • auth_groups: An array of hashes used to set up authentication (think twice before you set this system wide): each element should contain these keys:
    • group, which is an arbitrary, but descriptive name
    • prefix, username, password, schemes: These correspond to the same keys in the auth section of hgrc.
  • trusted_groups: useful if you're updating a repository owned by a group that is not your primary group. Hg will trust the group owning the repository if it is listed here.
  • http_proxy: proxy to use when pulling over http.
  • no_http_proxy: urls you want to bypass your proxy for.

Class

Compatibility

Tested on Debian, Ubuntu, and CentOS/RedHat type operating systems. At some point, used on OpenIndiana.

References