Puppet Class: mercurial

Defined in:
manifests/init.pp

Overview

Class: mercurial

This module manages mercurial.

Parameters

ensure

Ensure if present, installed, absent, purged, held, or latest.

Default: present

Examples

class { ‘mercurial’: }

class { ‘mercurial’: ensure => latest }

License

Copyright © 2013 Jeffrey Goettsch <jgoettsch@gmail.com>.

This file is part of jgoettsch-mercurial.

jgoettsch-mercurial is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

jgoettsch-mercurial is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with jgoettsch-mercurial. If not, see <www.gnu.org/licenses/>.

Parameters:

  • ensure (Any) (defaults to: 'present')


37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'manifests/init.pp', line 37

class mercurial (
  $ensure = 'present',
) {

  if $ensure in [present, installed, absent, purged, held, latest] {
    $ensure_real = $ensure
  } else {
    fail('ensure must be present, installed, absent, purged, held, or latest')
  }

  package { 'mercurial':
    ensure => $ensure_real,
  }
}