Showing with 20 additions and 5 deletions.
  1. +13 −0 CHANGELOG.md
  2. +4 −2 manifests/repo.pp
  3. +3 −3 metadata.json
13 changes: 13 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# Changelog

## [7.0.0](https://github.com/theforeman/puppet-git/tree/7.0.0) (2021-07-22)

[Full Changelog](https://github.com/theforeman/puppet-git/compare/6.3.0...7.0.0)

**Breaking changes:**

- Drop Puppet 5 [\#80](https://github.com/theforeman/puppet-git/pull/80) ([ehelms](https://github.com/ehelms))

**Implemented enhancements:**

- Accept Datatype Sensitive for git source URL [\#78](https://github.com/theforeman/puppet-git/pull/78) ([cocker-cc](https://github.com/cocker-cc))
- Allow Puppet 7 compatible versions of mods [\#77](https://github.com/theforeman/puppet-git/pull/77) ([ekohl](https://github.com/ekohl))

## [6.3.0](https://github.com/theforeman/puppet-git/tree/6.3.0) (2021-04-26)

[Full Changelog](https://github.com/theforeman/puppet-git/compare/6.2.0...6.3.0)
Expand Down
6 changes: 4 additions & 2 deletions manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
define git::repo (
String $target,
Boolean $bare = false,
Optional[String] $source = undef,
Optional[Variant[String, Sensitive[String]]] $source = undef,
String $user = 'root',
String $group = 'root',
String $mode = '0755',
Expand All @@ -57,7 +57,9 @@
false => $args,
}

if $source {
if $source =~ Sensitive {
$cmd = Sensitive.new("${bin} clone ${args_real} --recursive ${source.unwrap} ${target}")
} elsif $source {
$cmd = "${bin} clone ${args_real} --recursive ${source} ${target}"
} else {
$cmd = "${bin} init ${args_real} ${target}"
Expand Down
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-git",
"version": "6.3.0",
"version": "7.0.0",
"author": "theforeman",
"summary": "git installation and configuration",
"license": "GPL-3.0+",
Expand All @@ -15,13 +15,13 @@
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.13.0 < 7.0.0"
"version_requirement": ">= 4.13.0 < 8.0.0"
}
],
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 5.5.8 < 8.0.0"
"version_requirement": ">= 6.15.0 < 8.0.0"
}
],
"operatingsystem_support": [
Expand Down