Merge pull request 'feature/manage_r10k_repo' (#1) from feature/manage_r10k_repo into develop
Reviewed-on: unkinben/puppet-prod#1
This commit is contained in:
commit
d5989653d1
24
site/profiles/manifests/git/git.pp
Normal file
24
site/profiles/manifests/git/git.pp
Normal 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,
|
||||
}
|
||||
}
|
||||
@ -37,9 +37,7 @@ class profiles::puppet::enc (
|
||||
String $enc_repo,
|
||||
) {
|
||||
|
||||
package { 'git':
|
||||
ensure => installed,
|
||||
}
|
||||
include profiles::git::git
|
||||
|
||||
vcsrepo { '/opt/puppetlabs/enc':
|
||||
ensure => latest,
|
||||
|
||||
@ -37,9 +37,7 @@ class profiles::puppet::r10k (
|
||||
String $r10k_repo,
|
||||
){
|
||||
|
||||
package { 'git':
|
||||
ensure => installed,
|
||||
}
|
||||
include profiles::git::git
|
||||
|
||||
vcsrepo { '/etc/puppetlabs/r10k':
|
||||
ensure => latest,
|
||||
@ -65,7 +63,7 @@ class profiles::puppet::r10k (
|
||||
[Unit]
|
||||
Description=puppet-r10k downloader timer
|
||||
[Timer]
|
||||
OnCalendar=*:0/1
|
||||
OnCalendar=*:0/5
|
||||
RandomizedDelaySec=1s
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
|
||||
Loading…
Reference in New Issue
Block a user