Skip to content

Commit 0d54b67

Browse files
trevor-vaughanop-ct
authored andcommitted
(SIMP-918) Use SSSD for EL6.7+
* Updated to use SSSD as the default for EL6.7+ since it should be fixed going forward. * Validated against Puppet 4.3.2 * Updated travis.yml * Updated fixtures.yml * Updated all tests to use the facts gem * Added spec_parallel since these take *forever* to run otherwise * Corrected metadata.json SIMP-918 #close Change-Id: Ia242f6086ea16604222a4b1c30106cd7f5abc758
1 parent 3ccfe6f commit 0d54b67

33 files changed

+738
-741
lines changed

.fixtures.yml

Lines changed: 57 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,64 @@ fixtures:
66
aide: "git://github.com/simp/pupmod-simp-aide"
77
apache: "git://github.com/simp/pupmod-simp-apache"
88
auditd: "git://github.com/simp/pupmod-simp-auditd"
9-
augeasproviders: "git://github.com/simp/augeasproviders"
10-
augeasproviders_base: "git://github.com/simp/augeasproviders_base"
11-
augeasproviders_core: "git://github.com/simp/augeasproviders_core"
12-
augeasproviders_grub: "git://github.com/simp/augeasproviders_grub"
13-
augeasproviders_puppet: "git://github.com/simp/augeasproviders_puppet"
14-
augeasproviders_apache: "git://github.com/simp/augeasproviders_apache"
15-
augeasproviders_mounttab: "git://github.com/simp/augeasproviders_mounttab"
16-
augeasproviders_nagios: "git://github.com/simp/augeasproviders_nagios"
17-
augeasproviders_pam: "git://github.com/simp/augeasproviders_pam"
18-
augeasproviders_postgresql: "git://github.com/simp/augeasproviders_postgresql"
19-
augeasproviders_shellvar: "git://github.com/simp/augeasproviders_shellvar"
20-
augeasproviders_ssh: "git://github.com/simp/augeasproviders_ssh"
21-
augeasproviders_sysctl: "git://github.com/simp/augeasproviders_sysctl"
9+
augeasproviders:
10+
repo: "git://github.com/simp/augeasproviders"
11+
branch: "simp-master"
12+
augeasproviders_base:
13+
repo: "git://github.com/simp/augeasproviders_base"
14+
branch: "simp-master"
15+
augeasproviders_core:
16+
repo: "git://github.com/simp/augeasproviders_core"
17+
branch: "simp-master"
18+
augeasproviders_grub:
19+
repo: "git://github.com/simp/augeasproviders_grub"
20+
branch: "simp-master"
21+
augeasproviders_puppet:
22+
repo: "git://github.com/simp/augeasproviders_puppet"
23+
branch: "simp-master"
24+
augeasproviders_apache:
25+
repo: "git://github.com/simp/augeasproviders_apache"
26+
branch: "simp-master"
27+
augeasproviders_mounttab:
28+
repo: "git://github.com/simp/augeasproviders_mounttab"
29+
branch: "simp-master"
30+
augeasproviders_nagios:
31+
repo: "git://github.com/simp/augeasproviders_nagios"
32+
branch: "simp-master"
33+
augeasproviders_pam:
34+
repo: "git://github.com/simp/augeasproviders_pam"
35+
branch: "simp-master"
36+
augeasproviders_postgresql:
37+
repo: "git://github.com/simp/augeasproviders_postgresql"
38+
branch: "simp-master"
39+
augeasproviders_shellvar:
40+
repo: "git://github.com/simp/augeasproviders_shellvar"
41+
branch: "simp-master"
42+
augeasproviders_ssh:
43+
repo: "git://github.com/simp/augeasproviders_ssh"
44+
branch: "simp-master"
45+
augeasproviders_sysctl:
46+
repo: "git://github.com/simp/augeasproviders_sysctl"
47+
branch: "simp-master"
2248
autofs: "git://github.com/simp/pupmod-simp-autofs"
2349
clamav: "git://github.com/simp/pupmod-simp-clamav"
24-
datacat: "git://github.com/simp/puppet-datacat"
50+
datacat:
51+
repo: "git://github.com/simp/puppet-datacat"
52+
branch: "simp-master"
2553
compliance: "https://github.com/trevor-vaughan/pupmod-compliance"
2654
dhcp: "git://github.com/simp/pupmod-simp-dhcp"
2755
freeradius: "git://github.com/simp/pupmod-simp-freeradius"
2856
ganglia: "git://github.com/simp/pupmod-simp-ganglia"
29-
inifile: "git://github.com/simp/puppetlabs-inifile"
57+
inifile:
58+
repo: "git://github.com/simp/puppetlabs-inifile"
59+
branch: "simp-master"
3060
iptables: "git://github.com/simp/pupmod-simp-iptables"
31-
java: "git://github.com/simp/puppetlabs-java"
32-
java_ks: "git://github.com/simp/puppetlabs-java_ks"
61+
java:
62+
repo: "git://github.com/simp/puppetlabs-java"
63+
branch: "simp-master"
64+
java_ks:
65+
repo: "git://github.com/simp/puppetlabs-java_ks"
66+
branch: "simp-master"
3367
logrotate: "git://github.com/simp/pupmod-simp-logrotate"
3468
mcollective: "git://github.com/simp/pupmod-simp-mcollective"
3569
named: "git://github.com/simp/pupmod-simp-named"
@@ -41,6 +75,9 @@ fixtures:
4175
pam: "git://github.com/simp/pupmod-simp-pam"
4276
pki: "git://github.com/simp/pupmod-simp-pki"
4377
postfix: "git://github.com/simp/pupmod-simp-postfix"
78+
puppetdb:
79+
repo: "git://github.com/simp/puppetlabs-puppetdb"
80+
branch: "simp-master"
4481
pupmod: "git://github.com/simp/pupmod-simp-pupmod"
4582
rsync: "git://github.com/simp/pupmod-simp-rsync"
4683
rsyslog: "git://github.com/simp/pupmod-simp-rsyslog"
@@ -49,7 +86,9 @@ fixtures:
4986
simplib: "git://github.com/simp/pupmod-simp-simplib"
5087
snmpd: "git://github.com/simp/pupmod-simp-snmpd"
5188
ssh: "git://github.com/simp/pupmod-simp-ssh"
52-
stdlib: "git://github.com/simp/puppetlabs-stdlib"
89+
stdlib:
90+
repo: "git://github.com/simp/puppetlabs-stdlib"
91+
branch: "simp-master"
5392
stunnel: "git://github.com/simp/pupmod-simp-stunnel"
5493
sssd: "git://github.com/simp/pupmod-simp-sssd"
5594
sudo: "git://github.com/simp/pupmod-simp-sudo"

.fixtures.yml.local

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ fixtures:
2929
pam: "#{source_dir}/../pam"
3030
pki: "#{source_dir}/../pki"
3131
postfix: "#{source_dir}/../postfix"
32+
puppetdb: "#{source_dir}/../puppetdb"
3233
pupmod: "#{source_dir}/../pupmod"
3334
rsync: "#{source_dir}/../rsync"
3435
rsyslog: "#{source_dir}/../rsyslog"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
dist
44
/pkg
55
/spec/fixtures
6+
/spec/rp_env
67
!/spec/hieradata/default.yaml
78
!/spec/fixtures/site.pp
89
/.rspec_system

.puppet-lint.rc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
--relative
33
--no-class_inherits_from_params_class-check
44
--no-80chars-check
5+
--no-inherits_across_namespaces-check

.travis.yml

Lines changed: 5 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -31,60 +31,33 @@ env:
3131
- PUPPET_VERSION="~> 4.0.0"
3232
- PUPPET_VERSION="~> 4.1.0"
3333
- PUPPET_VERSION="~> 4.2.0"
34+
- PUPPET_VERSION="~> 4.3.0"
3435
matrix:
3536
fast_finish: true
3637
allow_failures:
3738
- rvm: 1.8.7
38-
- rvm: 2.1.0
3939
- rvm: 2.2.1
4040
- env: PUPPET_VERSION="~> 3.5.0"
4141
- env: PUPPET_VERSION="~> 3.6.0"
4242
- env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes
4343
- env: PUPPET_VERSION="~> 3.8.0" FUTURE_PARSER=yes
44-
- env: PUPPET_VERSION="~> 4.0.0"
45-
- env: PUPPET_VERSION="~> 4.1.0"
46-
- env: PUPPET_VERSION="~> 4.2.0"
4744

4845
exclude:
4946
# Ruby 1.8.7
5047
# - Ruby 1.8.7 & Puppet 4.X is impossibru
5148
- rvm: 1.8.7
52-
env: PUPPET_VERSION="~> 4.0.0"
53-
- rvm: 1.8.7
54-
env: PUPPET_VERSION="~> 4.1.0"
55-
- rvm: 1.8.7
56-
env: PUPPET_VERSION="~> 4.2.0"
49+
env: PUPPET_VERSION="~> 4.0"
5750

5851
# - simp-rake-helpers deps currently break between 1.8.7 and 3.X
5952
# - Currently there is Gemfile logic testing for TRAVIS to avoid this.
6053
# - For Ruby 1.8.7, testing earliest and latest 3.X is sufficient.
6154
- rvm: 1.8.7
62-
env: PUPPET_VERSION="~> 3.5.0"
63-
- rvm: 1.8.7
64-
env: PUPPET_VERSION="~> 3.6.0"
65-
- rvm: 1.8.7
66-
env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes
67-
- rvm: 1.8.7
68-
env: PUPPET_VERSION="~> 3.8.0" FUTURE_PARSER=yes
55+
env: PUPPET_VERSION="~> 3.0"
6956

7057
# Ruby 2.1.0
7158
- rvm: 2.1.0
72-
env: PUPPET_VERSION="~> 3.5.0"
73-
- rvm: 2.1.0
74-
env: PUPPET_VERSION="~> 3.6.0"
75-
- rvm: 2.1.0
76-
env: PUPPET_VERSION="~> 3.7.0"
59+
env: PUPPET_VERSION="< 3.8"
7760

7861
# Ruby 2.2.1
7962
- rvm: 2.2.1
80-
env: PUPPET_VERSION="~> 3.5.0"
81-
- rvm: 2.2.1
82-
env: PUPPET_VERSION="~> 3.6.0"
83-
- rvm: 2.2.1
84-
env: PUPPET_VERSION="~> 3.7.0"
85-
- rvm: 2.2.1
86-
env: PUPPET_VERSION="~> 3.7.0" FUTURE_PARSER=yes
87-
- rvm: 2.2.1
88-
env: PUPPET_VERSION="~> 3.8.0"
89-
- rvm: 2.2.1
90-
env: PUPPET_VERSION="~> 3.8.0" FUTURE_PARSER=yes
63+
env: PUPPET_VERSION="~> 3.0"

Gemfile

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,7 @@ gem_sources = ENV.key?('SIMP_GEM_SERVERS') ? ENV['SIMP_GEM_SERVERS'].split(/[,
88
gem_sources.each { |gem_source| source gem_source }
99

1010
group :test do
11-
gem "rake"
1211
gem 'puppet', puppetversion
13-
gem "rspec", '< 3.2.0'
14-
gem "rspec-puppet"
15-
gem "puppetlabs_spec_helper"
16-
gem "metadata-json-lint"
17-
gem "simp-rspec-puppet-facts"
18-
19-
# dependency hacks:
20-
gem "fog-google", '~> 0.0.9' # 0.1 dropped support for ruby 1.9
2112

2213
# simp-rake-helpers does not suport puppet 2.7.X
2314
if "#{ENV['PUPPET_VERSION']}".scan(/\d+/).first != '2' &&
@@ -27,26 +18,3 @@ group :test do
2718
gem 'simp-rake-helpers'
2819
end
2920
end
30-
31-
group :development do
32-
gem "travis"
33-
gem "travis-lint"
34-
gem "vagrant-wrapper"
35-
gem "puppet-blacksmith"
36-
gem "guard-rake"
37-
gem 'pry'
38-
gem 'pry-doc'
39-
end
40-
41-
group :system_tests do
42-
gem 'beaker'
43-
gem 'beaker-rspec'
44-
45-
# 1.0.5 introduces FIPS-first acc tests
46-
gem 'simp-beaker-helpers', '>= 1.0.11'
47-
48-
# dependency hacks:
49-
# NOTE: Workaround because net-ssh 2.10 is busting beaker
50-
# lib/ruby/1.9.1/socket.rb:251:in `tcp': wrong number of arguments (5 for 4) (ArgumentError)
51-
gem 'net-ssh', '~> 2.9.0'
52-
end

Rakefile

Lines changed: 2 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,68 +1,3 @@
1-
require 'puppetlabs_spec_helper/rake_tasks'
2-
require 'puppet/version'
3-
require 'puppet/vendor/semantic/lib/semantic' unless Puppet.version.to_f < 3.6
4-
require 'puppet-syntax/tasks/puppet-syntax'
5-
require 'puppet-lint/tasks/puppet-lint'
1+
require 'simp/rake/pupmod/helpers'
62

7-
# These gems aren't always present, for instance
8-
# on Travis with --without development
9-
begin
10-
require 'puppet_blacksmith/rake_tasks'
11-
rescue LoadError
12-
end
13-
14-
15-
# Lint & Syntax exclusions
16-
exclude_paths = [
17-
"bundle/**/*",
18-
"pkg/**/*",
19-
"dist/**/*",
20-
"vendor/**/*",
21-
"spec/**/*",
22-
]
23-
PuppetSyntax.exclude_paths = exclude_paths
24-
25-
# See: https://github.com/rodjek/puppet-lint/pull/397
26-
Rake::Task[:lint].clear
27-
PuppetLint.configuration.ignore_paths = exclude_paths
28-
PuppetLint::RakeTask.new :lint do |config|
29-
config.ignore_paths = PuppetLint.configuration.ignore_paths
30-
end
31-
32-
begin
33-
require 'simp/rake/pkg'
34-
Simp::Rake::Pkg.new( File.dirname( __FILE__ ) ) do | t |
35-
t.clean_list << "#{t.base_dir}/spec/fixtures/hieradata/hiera.yaml"
36-
end
37-
rescue LoadError
38-
puts "== WARNING: Gem simp-rake-helpers not found, pkg: tasks cannot be run! =="
39-
end
40-
41-
begin
42-
require 'simp/rake/beaker'
43-
Simp::Rake::Beaker.new( File.dirname( __FILE__ ) )
44-
rescue LoadError
45-
# Ignoring this for now since all of these are currently convenience methods.
46-
end
47-
48-
desc "Run acceptance tests"
49-
RSpec::Core::RakeTask.new(:acceptance) do |t|
50-
t.pattern = 'spec/acceptance'
51-
end
52-
53-
desc "Populate CONTRIBUTORS file"
54-
task :contributors do
55-
system("git log --format='%aN' | sort -u > CONTRIBUTORS")
56-
end
57-
58-
task :metadata do
59-
sh "metadata-json-lint metadata.json"
60-
end
61-
62-
desc "Run syntax, lint, and spec tests."
63-
task :test => [
64-
:syntax,
65-
:lint,
66-
:spec,
67-
:metadata,
68-
]
3+
Simp::Rake::Pupmod::Helpers.new(File.dirname(__FILE__))

build/pupmod-simp.spec

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
Summary: SIMP Puppet Module
22
Name: pupmod-simp
3-
Version: 1.1.0
4-
Release: 9
3+
Version: 1.2.0
4+
Release: 0
55
License: Apache License, Version 2.0
66
Group: Applications/System
77
Source: %{name}-%{version}-%{release}.tar.gz
88
Requires: pupmod-aide >= 4.1.0-2
99
Requires: pupmod-apache >= 4.1.0-4
1010
Requires: pupmod-auditd >= 4.1.0-3
1111
Requires: pupmod-augeasproviders_puppet
12+
Requires: pupmod-autofs >= 4.1.1-0
1213
Requires: pupmod-clamav >= 4.1.0-2
1314
Requires: pupmod-dhcp >= 4.1.0-0
15+
Requires: pupmod-freeradius >= 5.0.0-0
16+
Requires: pupmod-ganglia >= 5.0.0-0
1417
Requires: pupmod-iptables >= 4.1.0-3
1518
Requires: pupmod-logrotate >= 4.1.0-0
1619
Requires: pupmod-named >= 4.2.0-0
@@ -26,7 +29,7 @@ Requires: pupmod-rsync >= 4.1.0-1
2629
Requires: pupmod-rsyslog >= 5.0.0-0
2730
Requires: pupmod-selinux >= 1.0.0-1
2831
Requires: pupmod-simpcat
29-
Requires: pupmod-simplib
32+
Requires: pupmod-simplib >= 1.1.0-0
3033
Requires: pupmod-ssh >= 4.1.0-2
3134
Requires: pupmod-stunnel >= 4.2.0-0
3235
Requires: pupmod-sudo >= 4.1.0-0
@@ -40,7 +43,6 @@ Requires: pupmod-xinetd >= 2.1.0-0
4043
Requires: puppetlabs-stdlib >= 4.1.0-1.SIMP
4144
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
4245
Buildarch: noarch
43-
Requires: simp-bootstrap >= 4.2.0
4446
Obsoletes: pupmod-simp-test >= 0.0.1
4547

4648
Prefix: %{_sysconfdir}/puppet/environments/simp/modules
@@ -85,6 +87,12 @@ fi
8587
# Post uninstall stuff
8688

8789
%changelog
90+
* Mon Mar 14 2016 Trevor Vaughan <[email protected]> - 1.2.0-0
91+
- Moved to Semantic Versioning 2.0
92+
- Ensure that SSSD is used for systems EL6.7+
93+
- Removed RPM dependency on simp-bootstrap as it is not technically required.
94+
- Test against Puppet 4.3.2
95+
8896
* Tue Mar 08 2016 Nick Markowski <[email protected]> - 1.1.0-9
8997
- Updated a bad default for nfs_server in the home_client class, which
9098
otherwise had the potential to render a nil server value, and

manifests/freeradius/stock_ldap.pp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
# * Trevor Vaughan <[email protected]>
1919
#
2020
class simp::freeradius::stock_ldap {
21-
include 'freeradius::stock'
22-
include 'freeradius::modules::ldap'
21+
include '::simp::freeradius::stock'
22+
include '::freeradius::modules::ldap'
2323
}

manifests/params.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
# issues which significantly weaken your security posture.
1212
class simp::params {
1313
if $::operatingsystem in ['RedHat','CentOS'] {
14-
if versioncmp($::operatingsystemmajrelease,'7') < 0 {
14+
if (versioncmp($::operatingsystemmajrelease,'6.7') < 0) {
1515
$_use_sssd = false
1616
$_use_nscd = true
1717
}

0 commit comments

Comments
 (0)