-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
--relative | ||
--no-parameter_documentation | ||
--no-params_empty_string |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# This file can be used to customize the files managed by PDK. | ||
# | ||
# See https://github.com/puppetlabs/pdk-templates/blob/main/README.md | ||
# for more information. | ||
# | ||
# See https://github.com/puppetlabs/pdk-templates/blob/main/config_defaults.yml | ||
# for the default values. | ||
--- {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## Release 3.0.0 | ||
|
||
**Features** | ||
|
||
**Bugfixes** | ||
|
||
**Known Issues** |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--- {} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
--- | ||
version: 5 | ||
|
||
defaults: # Used for any hierarchy level that omits these keys. | ||
datadir: data # This path is relative to hiera.yaml's directory. | ||
data_hash: yaml_data # Use the built-in YAML backend. | ||
|
||
hierarchy: | ||
- name: "osfamily/major release" | ||
paths: | ||
# Used to distinguish between Debian and Ubuntu | ||
- "os/%{facts.os.name}/%{facts.os.release.major}.yaml" | ||
- "os/%{facts.os.family}/%{facts.os.release.major}.yaml" | ||
# Used for Solaris | ||
- "os/%{facts.os.family}/%{facts.kernelrelease}.yaml" | ||
- name: "osfamily" | ||
paths: | ||
- "os/%{facts.os.name}.yaml" | ||
- "os/%{facts.os.family}.yaml" | ||
- name: 'common' | ||
path: 'common.yaml' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::dependencies' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::extras' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
Check failure on line 10 in spec/classes/extras_spec.rb GitHub Actions / Unit tests
|
||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::helpers' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::mcollective::client' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::mcollective::server' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::one' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::params' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
let(:node) { 'rspec.example42.com' } | ||
let(:node) { 'rspec.example42.com' } | ||
let(:facts) { { :ipaddress => '10.42.42.42' } } | ||
|
||
describe 'Test standard installation' do | ||
it { should contain_file('puppi').with_ensure('present') } | ||
it { should contain_file('puppi.conf').with_ensure('present') } | ||
it { should contain_file('puppi.scripts').with_ensure('present') } | ||
it { should contain_file('puppi_basedir').with_ensure('directory') } | ||
it { should contain_file('puppi_datadir').with_ensure('directory') } | ||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
|
||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::skel' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
|
||
describe 'puppi::two' do | ||
on_supported_os.each do |os, os_facts| | ||
context "on #{os}" do | ||
let(:facts) { os_facts } | ||
|
||
it { is_expected.to compile.with_all_deps } | ||
end | ||
end | ||
end |