Added class to manage installing the git client

This commit is contained in:
Ben Vincent 2023-06-26 20:06:15 +10:00
parent 45a9639346
commit 754241bcf2
3 changed files with 26 additions and 6 deletions

View File

@ -0,0 +1,24 @@
# Class: profiles::git::git
#
# This class ensures that the Git package is installed.
#
# It uses the 'package' resource to manage the Git package,
# and will ensure that it is installed. This class does not
# manage any configurations related to Git, it only ensures
# that the package is installed.
#
# The class does not take any parameters.
#
# Example usage:
# --------------
# To use this class, you simply need to declare it in your manifest:
#
# include profiles::git::git
#
# You do not need to pass any parameters.
#
class profiles::git::git {
package { 'git':
ensure => installed,
}
}

View File

@ -37,9 +37,7 @@ class profiles::puppet::enc (
String $enc_repo, String $enc_repo,
) { ) {
package { 'git': include profiles::git::git
ensure => installed,
}
vcsrepo { '/opt/puppetlabs/enc': vcsrepo { '/opt/puppetlabs/enc':
ensure => latest, ensure => latest,

View File

@ -37,9 +37,7 @@ class profiles::puppet::r10k (
String $r10k_repo, String $r10k_repo,
){ ){
package { 'git': include profiles::git::git
ensure => installed,
}
vcsrepo { '/etc/puppetlabs/r10k': vcsrepo { '/etc/puppetlabs/r10k':
ensure => latest, ensure => latest,