view modules/vcs/manifests/init.pp @ 195:f70831cc2864 puppet-3.6

Separate out SSH repeats from web/email repeats Hopefully this should prevent accidental lock-outs! Worst case, I trigger a web lock-out and get back in on SSH.
author IBBoard <dev@ibboard.co.uk>
date Wed, 17 Apr 2019 12:00:31 +0100
parents d9fcabc75a1e
children 2d119b462c83
line wrap: on
line source

class vcs {
    @package { [
            "mercurial",
            "git"
        ]:
        ensure => installed
    }
    @package { 'mercurial-keyring':
        ensure => installed,
        provider => 'pip',
    }
}

class vcs::client inherits vcs {
	realize(Package["mercurial"],
		Package["mercurial-keyring"],
		Package["git"])
}

class vcs::server inherits vcs {
	realize(Package["mercurial"],
		Package["git"])
}