2 changes: 2 additions & 0 deletions .fixtures.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
fixtures:
symlinks:
git: "#{source_dir}"
repositories:
stdlib: 'https://github.com/puppetlabs/puppetlabs-stdlib'
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ vendor/

## rspec
spec/fixtures/
junit/

## Puppet module
pkg/
Expand Down
51 changes: 51 additions & 0 deletions .pmtignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# This file is managed centrally by modulesync
# https://github.com/theforeman/foreman-installer-modulesync

## MAC OS
.DS_Store

## TEXTMATE
*.tmproj
tmtags

## EMACS
*~
\#*
.\#*

## VIM
*.swp
*.swo
tags

## Bundler
Gemfile.lock
.bundle
vendor/

## rbenv / rvm
.rbenv*
.rvmrc*
.ruby-*

## rspec
spec/fixtures/
junit/

## Puppet module
pkg/
coverage/
.yardoc/

## InteliJ / RubyMine
.idea

## Beaker
.vagrant/
log/

# Files we don't want to ship in a release
CONTRIBUTING.md
Gemfile
Rakefile
spec/
18 changes: 6 additions & 12 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,17 @@
# This file is managed centrally by modulesync
# https://github.com/theforeman/foreman-installer-modulesync
rvm:
- 2.1.5
- 2.1.9
- 2.2.6
- 2.3.0
- 2.4.1
env:
matrix:
# First test the major distros
- PUPPET_VERSION=4.6 ONLY_OS=centos-6-x86_64,centos-7-x86_64,debian-7-x86_64,debian-8-x86_64,ubuntu-14-x86_64,ubuntu-14.04-x86_64,ubuntu-16-x86_64,ubuntu-16.04-x86_64
# Test the rest of the supported platforms
- PUPPET_VERSION=4.6 EXCLUDE_OS=centos-6-x86_64,centos-7-x86_64,debian-7-x86_64,debian-8-x86_64,ubuntu-14-x86_64,ubuntu-14.04-x86_64,ubuntu-16-x86_64,ubuntu-16.04-x86_64,scientific-6-x86_64,scientific-7-x86_64
- PUPPET_VERSION=4.9
matrix:
fast_finish: true
include:
- rvm: 2.2.6
env: PUPPET_VERSION=4.6 ONLY_OS="debian-8-x86_64,centos-7-x86_64,ubuntu-16-x86_64,ubuntu-16.04-x86_64,freebsd-10-amd64,windows-2012 R2-x64"
- rvm: 2.3.0
env: PUPPET_VERSION=4.6 ONLY_OS="debian-8-x86_64,centos-7-x86_64,ubuntu-16-x86_64,ubuntu-16.04-x86_64,freebsd-10-amd64,windows-2012 R2-x64"
- rvm: 2.4.1
env: PUPPET_VERSION=4.6 ONLY_OS="debian-8-x86_64,centos-7-x86_64,ubuntu-16-x86_64,ubuntu-16.04-x86_64,freebsd-10-amd64,windows-2012 R2-x64"
- rvm: 2.4.1
env: PUPPET_VERSION=5.0 ONLY_OS="debian-8-x86_64,centos-7-x86_64,ubuntu-16-x86_64,ubuntu-16.04-x86_64,freebsd-10-amd64,windows-2012 R2-x64"
env: PUPPET_VERSION=5.0
bundler_args: --without system_tests development
sudo: false
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Changelog

## [4.0.0](https://github.com/theforeman/puppet-git/tree/4.0.0) (2018-01-25)
[Full Changelog](https://github.com/theforeman/puppet-git/compare/3.0.0...4.0.0)

**Breaking changes:**

- Update hiera yaml to version 5 [\#30](https://github.com/theforeman/puppet-git/pull/30) ([mmoll](https://github.com/mmoll))

**Implemented enhancements:**

- remove EOL OSes, add new ones [\#33](https://github.com/theforeman/puppet-git/pull/33) ([mmoll](https://github.com/mmoll))
- Use stdlib for ensure\_packages and Absolutepath [\#32](https://github.com/theforeman/puppet-git/pull/32) ([ekohl](https://github.com/ekohl))

## 3.0.0
* Drop Puppet 3 support
* Use Puppet 4 data types
Expand Down
20 changes: 10 additions & 10 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ Checklist (and a short version for the impatient)
description (50 characters is the soft limit, excluding ticket
number(s)), and should skip the full stop.

- If you have a [http://projects.theforeman.org/projects/puppet-foreman/issues](Redmine issue)
- If you have a [https://projects.theforeman.org/projects/puppet-foreman/issues](Redmine issue)
number, associate the issue in the message. The first line should start
with the issue number in the form "fixes #XXXX - rest of message".
[More information on the Redmine style](http://projects.theforeman.org/projects/foreman/wiki/Reviewing_patches-commit_message_format).
[More information on the Redmine style](https://projects.theforeman.org/projects/foreman/wiki/Reviewing_patches-commit_message_format).
Tickets are not required for our installer Puppet modules.

- If you have a GitHub issue number, associate the issue in the message.
Expand Down Expand Up @@ -108,9 +108,9 @@ The long version
is merged in.

GitHub has some pretty good
[general documentation](http://help.github.com/) on using
[general documentation](https://help.github.com/) on using
their site. They also have documentation on
[creating pull requests](http://help.github.com/send-pull-requests/).
[creating pull requests](https://help.github.com/send-pull-requests/).

In general, after pushing your topic branch up to your
repository on GitHub, you can switch to the branch in the
Expand All @@ -132,10 +132,10 @@ Getting Started
---------------

Our puppet modules provide [`Gemfile`](./Gemfile)s which can tell a ruby
package manager such as [bundler](http://bundler.io/) what Ruby packages,
package manager such as [bundler](https://bundler.io/) what Ruby packages,
or Gems, are required to build, develop, and test this software.

Please make sure you have [bundler installed](http://bundler.io/#getting-started)
Please make sure you have [bundler installed](https://bundler.io/#getting-started)
on your system, then use it to install all dependencies needed for this project,
by running

Expand Down Expand Up @@ -238,11 +238,11 @@ review.
Additional Resources
====================

* [Support and contact details](http://theforeman.org/support.html)
* [Support and contact details](https://theforeman.org/support.html)

* [General Foreman contribution details](http://theforeman.org/contribute.html)
* [General Foreman contribution details](https://theforeman.org/contribute.html)

* [General GitHub documentation](http://help.github.com/)
* [General GitHub documentation](https://help.github.com/)

* [GitHub pull request documentation](http://help.github.com/send-pull-requests/)
* [GitHub pull request documentation](https://help.github.com/send-pull-requests/)

25 changes: 14 additions & 11 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,29 @@ gem 'puppet', ENV.key?('PUPPET_VERSION') ? "~> #{ENV['PUPPET_VERSION']}" : '>= 4

gem 'rake'
gem 'rspec', '~> 3.0'
gem 'rdoc', '~> 5.1.0', {"platforms"=>["ruby_21"]}
gem 'rspec-puppet', '~> 2.3'
gem 'rspec-puppet-facts', '>= 1.7'
gem 'puppetlabs_spec_helper', '>= 2.1.1'
gem 'puppet-lint', '>= 2'
gem 'puppet-lint-unquoted_string-check'
gem 'puppet-lint-empty_string-check'
gem 'puppet-lint-spaceship_operator_without_tag-check'
gem 'puppet-lint-variable_contains_upcase'
gem 'puppet-lint-absolute_classname-check'
gem 'puppet-lint-undef_in_function-check'
gem 'puppet-lint-leading_zero-check'
gem 'puppet-lint-trailing_comma-check'
gem 'puppet-lint-classes_and_types_beginning_with_digits-check'
gem 'puppet-lint-empty_string-check'
gem 'puppet-lint-file_ensure-check'
gem 'puppet-lint-leading_zero-check'
gem 'puppet-lint-param-docs', '>= 1.3.0'
gem 'puppet-lint-spaceship_operator_without_tag-check'
gem 'puppet-lint-strict_indent-check'
gem 'puppet-lint-trailing_comma-check'
gem 'puppet-lint-undef_in_function-check'
gem 'puppet-lint-unquoted_string-check'
gem 'puppet-lint-variable_contains_upcase'
gem 'puppet-lint-version_comparison-check'
gem 'simplecov'
gem 'puppet-blacksmith', '>= 3.1.0', {"groups"=>["development"]}
gem 'json', '~> 1.0', {"platforms"=>["ruby_19"], "groups"=>["test"]}
gem 'json_pure', '~> 1.0', {"platforms"=>["ruby_19"], "groups"=>["test"]}
gem 'logging', '~> 2.1.0', {"platforms"=>["ruby_19"], "groups"=>["test"]}
gem 'puppet-blacksmith', '>= 4.1.0', {"groups"=>["development"]}
gem 'beaker', '>= 3.9.0', {"groups"=>["system_tests"]}
gem 'beaker-rspec', {"groups"=>["system_tests"]}
gem 'beaker-module_install_helper', {"groups"=>["system_tests"]}
gem 'beaker-puppet_install_helper', {"groups"=>["system_tests"]}
gem 'metadata-json-lint'
gem 'kafo_module_lint'
Expand Down
2 changes: 2 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ begin
require 'puppet_blacksmith/rake_tasks'
Blacksmith::RakeTask.new do |t|
t.tag_pattern = "%s"
t.tag_message_pattern = "Version %s"
t.tag_sign = true
end
rescue LoadError
end
Expand Down
32 changes: 16 additions & 16 deletions hiera.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
---
version: 4
datadir: data
version: 5

defaults:
datadir: data
data_hash: 'yaml_data'

hierarchy:
- name: "Full Version"
backend: yaml
path: "%{facts.os.name}-%{facts.os.release.full}"
- name: 'Full Version'
path: '%{facts.os.name}-%{facts.os.release.full}.yaml'

- name: "Major Version"
backend: yaml
path: "%{facts.os.name}-%{facts.os.release.major}"
- name: 'Major Version'
path: '%{facts.os.name}-%{facts.os.release.major}.yaml'

- name: "Distribution Name"
backend: yaml
path: "%{facts.os.name}"
- name: 'Distribution Name'
path: '%{facts.os.name}.yaml'

- name: "Operating System Family"
backend: yaml
path: "%{facts.os.family}"
- name: 'Operating System Family'
path: '%{facts.os.family}.yaml'

- name: "common"
backend: yaml
- name: 'common'
path: 'common.yaml'
4 changes: 1 addition & 3 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,5 @@
$package = undef,
$package_ensure = undef,
) {
package { $package:
ensure => $package_ensure,
}
ensure_packages([$package], {'ensure' => $package_ensure})
}
2 changes: 1 addition & 1 deletion manifests/repo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
String $user = 'root',
String $group = 'root',
String $mode = '0755',
String $workdir = '/tmp',
Stdlib::Absolutepath $workdir = '/tmp',
Optional[String] $args = undef,
String $bin = $::git::bin,
) {
Expand Down
22 changes: 12 additions & 10 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "theforeman-git",
"version": "3.0.0",
"version": "4.0.0",
"author": "theforeman",
"summary": "git installation and configuration",
"license": "GPL-3.0+",
Expand All @@ -12,14 +12,18 @@
"foreman",
"git"
],
"dependencies": [],
"dependencies": [
{
"name": "puppetlabs/stdlib",
"version_requirement": ">= 4.13.0 < 5.0.0"
}
],
"requirements": [
{
"name": "puppet",
"version_requirement": ">= 4.6.1 < 6.0.0"
"version_requirement": ">= 4.9.0 < 6.0.0"
}
],
"data_provider": "hiera",
"operatingsystem_support": [
{
"operatingsystem": "RedHat",
Expand All @@ -45,7 +49,8 @@
{
"operatingsystem": "Fedora",
"operatingsystemrelease": [
"25"
"25",
"26"
]
},
{
Expand All @@ -59,23 +64,20 @@
{
"operatingsystem": "Ubuntu",
"operatingsystemrelease": [
"12.04",
"14.04",
"16.04"
]
},
{
"operatingsystem": "FreeBSD",
"operatingsystemrelease": [
"9",
"10"
"10",
"11"
]
},
{
"operatingsystem": "DragonFly",
"operatingsystemrelease": [
"3.6",
"3.8",
"4"
]
}
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/docker/centos-6.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/voxpupuli/modulesync
# https://github.com/theforeman/foreman-installer-modulesync
HOSTS:
centos-6-x64:
centos-6-x64.example.com:
platform: el-6-x86_64
hypervisor: docker
image: centos:6
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/docker/centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/voxpupuli/modulesync
# https://github.com/theforeman/foreman-installer-modulesync
HOSTS:
centos-7-x64:
centos-7-x64.example.com:
platform: el-7-x86_64
hypervisor: docker
image: centos:7
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/docker/debian-8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/voxpupuli/modulesync
# https://github.com/theforeman/foreman-installer-modulesync
HOSTS:
debian-8-x64:
debian-8-x64.example.com:
platform: debian-8-amd64
hypervisor: docker
image: debian:8
Expand Down
20 changes: 20 additions & 0 deletions spec/acceptance/nodesets/docker/debian-9.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
# This file is managed via modulesync
# https://github.com/voxpupuli/modulesync
# https://github.com/theforeman/foreman-installer-modulesync
HOSTS:
debian-9-x64.example.com:
platform: debian-9-amd64
hypervisor: docker
image: debian:9
docker_preserve_image: true
docker_cmd: '["/sbin/init"]'
docker_image_commands:
- 'apt-get update && apt-get install -y cron locales-all net-tools wget systemd-sysv'
- 'rm -f /usr/sbin/policy-rc.d'
- 'systemctl mask getty@tty1.service getty-static.service'
CONFIG:
trace_limit: 200
masterless: true
...
# vim: syntax=yaml
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/docker/ubuntu-14.04.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# https://github.com/voxpupuli/modulesync
# https://github.com/theforeman/foreman-installer-modulesync
HOSTS:
ubuntu-1404-x64:
ubuntu-1404-x64.example.com:
platform: ubuntu-14.04-amd64
hypervisor: docker
image: ubuntu:14.04
Expand Down
Loading