view modules/vcs/manifests/init.pp @ 334:ee4760967d2f

Separate LetsEncrypt certs Each site now has its own cert (fixed after discovering hiveworldterra.ibboard.co.uk wasn't on the main HWT cert)
author IBBoard <dev@ibboard.co.uk>
date Sun, 15 Mar 2020 20:02:35 +0000
parents 894390fdd6d7
children fa2747b27bb4
line wrap: on
line source

class vcs {
    @package { [
            "mercurial",
            "git"
        ]:
        ensure => installed
    }
    python::pip { 'mercurial-keyring':
        ensure => 'present',
    }
    # Alt keyrings are insecure, but a) we're on a limited access server and
    # b) I share the Mecurial config with the desktop, which uses the system
    # keyring rather than
    #
    # [backend]
    # default-keyring=keyrings.alt.file.PlaintextKeyring
    python::pip { 'keyrings.alt':
        ensure => 'present',
    }
    file { '/etc/bash_completion.d/git-prompt.sh':
        ensure => 'link',
        target => '/usr/share/git-core/contrib/completion/git-prompt.sh',
    }
}

class vcs::client inherits vcs {
	realize(Package["mercurial"],
		Python::Pip["mercurial-keyring"],
		Python::Pip["keyrings.alt"],
		Package["git"])
}

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