-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Begin migration to exclusive puppet4 support
This work drops support for puppet 3.x, using native type validation and data in modules, updates build matrix to drop older Puppet builds, uses rspec-puppet-facts to improve testing.
- Loading branch information
Showing
22 changed files
with
59 additions
and
696 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
Gemfile.lock | ||
.bundle | ||
pkg/ | ||
spec/fixtures/manifests | ||
spec/fixtures/modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
bacula::director::postgresql::make_bacula_tables: '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
bacula::director::postgresql::make_bacula_tables: '/usr/share/bacula-director/make_postgresql_tables' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
bacula::director::postgresql::make_bacula_tables: '/usr/local/share/bacula/make_postgresql_tables' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
bacula::director::postgresql::make_bacula_tables: '/usr/local/libexec/bacula/make_postgresql_tables' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
bacula::director::postgresql::make_bacula_tables: '/usr/libexec/bacula/make_bacula_tables.postgresql' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
version: 4 | ||
datadir: data | ||
hierarchy: | ||
- name: "OS family" | ||
backend: yaml | ||
path: "os/%{facts.os.family}" | ||
- name: "common" | ||
backend: yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
require 'spec_helper' | ||
|
||
describe 'bacula::client' do | ||
require 'hiera' | ||
let(:facts) { | ||
{ | ||
:operatingsystem => 'Debian', | ||
:concat_basedir => '/dne', | ||
:ipaddress => '10.0.0.1' | ||
} | ||
} | ||
it { should contain_class('bacula::client') } | ||
on_supported_os.each do |os, facts| | ||
let(:facts) { facts } | ||
context "on #{os}" do | ||
it { should contain_class('bacula::client') } | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,52 +1,15 @@ | ||
require 'spec_helper' | ||
|
||
describe 'bacula::director' do | ||
require 'hiera' | ||
context 'Debian' do | ||
let(:facts) { | ||
{ | ||
:osfamily => 'Debian', | ||
:operatingsystem => 'Debian', | ||
:operatingsystemrelease => '7.0', | ||
:concat_basedir => '/dne', | ||
:ipaddress => '10.0.0.1' | ||
} | ||
} | ||
it { should contain_class('bacula::director') } | ||
end | ||
context 'RedHat' do | ||
let(:facts) { | ||
{ | ||
:osfamily => 'RedHat', | ||
:operatingsystem => 'RedHat', | ||
:operatingsystemrelease => '7.0', | ||
:operatingsystemmajrelease => '7', | ||
:concat_basedir => '/dne', | ||
:ipaddress => '10.0.0.1' | ||
} | ||
} | ||
it { should contain_class('bacula::director') } | ||
context 'New packages' do | ||
it { should contain_package('bacula-director').with( | ||
'ensure' => 'present', | ||
) | ||
} | ||
it { should_not contain_package('bacula-director-common') } | ||
end | ||
context 'Old packages' do | ||
let(:facts) do | ||
super().merge( | ||
{ | ||
:operatingsystemrelease => '6.0', | ||
:operatingsystemmajrelease => '6', | ||
} | ||
) | ||
on_supported_os.each do |os, facts| | ||
let(:facts) { facts } | ||
context "on #{os}" do | ||
|
||
case facts[:osfamily] | ||
when 'Debian' | ||
it { should contain_class('bacula::director') } | ||
end | ||
it { should contain_package('bacula-director-common').with( | ||
'ensure' => 'present', | ||
) | ||
} | ||
it { should_not contain_package('bacula-director') } | ||
|
||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.