Skip to content

Commit

Permalink
Update deps to use puppet/systemd (#121)
Browse files Browse the repository at this point in the history
This patch updates from camptocamp/systemd 2.x to puppet/systemd 3.x

This bump is driven by simp/simp-core#829

* Remove deprecated daemon_reload
* avoid sssd race condition in tests
* Switch to centos/stream8 boxes
  • Loading branch information
op-ct authored Jun 17, 2022
1 parent 6f20473 commit 16082c5
Show file tree
Hide file tree
Showing 16 changed files with 24 additions and 25 deletions.
4 changes: 3 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ fixtures:
simp: https://github.com/simp/pupmod-simp-simp.git
simp_options: https://github.com/simp/pupmod-simp-simp_options.git
ssh: https://github.com/simp/pupmod-simp-ssh.git
systemd: https://github.com/simp/puppet-systemd.git
systemd:
repo: https://github.com/simp/puppet-systemd.git
branch: simp-master
simp_openldap: https://github.com/simp/pupmod-simp-simp_openldap.git
simp_ds389: https://github.com/simp/pupmod-simp-simp_ds389.git
ds389: https://github.com/simp/pupmod-simp-ds389.git
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,12 @@
.idea/
dist
/pkg
/spec/fixtures
# Read everything in fixtures
/spec/fixtures/*
# Un-ignore hieradata
!/spec/fixtures/hieradata/*
# Except this one, which is auto-generated
/spec/fixtures/hieradata/hiera.yaml
/spec/rp_env
/.rspec_system
/.vagrant
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Fri Jun 03 2022 Chris Tessmer <[email protected]> - 7.4.0
- Update from camptocamp/systemd to puppet/systemd

* Thu May 26 2022 Chris Tessmer <[email protected]> - 7.3.0
- Changed:
- Made provider parameters Optional to support certain AD/realmd configurations:
Expand Down
1 change: 0 additions & 1 deletion manifests/service/sudo.pp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
systemd::dropin_file { '00_sssd_sudo_user_group.conf':
unit => 'sssd-sudo.service',
content => $_override_content,
daemon_reload => 'eager',
selinux_ignore_defaults => true
}

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": "simp-sssd",
"version": "7.3.0",
"version": "7.4.0",
"author": "SIMP Team",
"summary": "Manages SSSD",
"license": "Apache-2.0",
Expand All @@ -13,8 +13,8 @@
],
"dependencies": [
{
"name": "camptocamp/systemd",
"version_requirement": ">= 2.2.0 < 3.0.0"
"name": "puppet/systemd",
"version_requirement": ">= 3.0.0 < 4.0.0"
},
{
"name": "puppetlabs/stdlib",
Expand Down
3 changes: 1 addition & 2 deletions spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HOSTS:
- client
- sssdv2
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>
centos7-cli:
roles:
Expand All @@ -41,7 +41,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
1 change: 0 additions & 1 deletion spec/acceptance/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
4 changes: 1 addition & 3 deletions spec/acceptance/suites/ad/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ HOSTS:
platform: windows-server-amd64
box: devopsgroup-io/windows_server-2012r2-standard-amd64-nocm # VBOX ONLY
hypervisor: <%= hypervisor %>
vagrant_memsize: 2048
vagrant_cpus: 2
user: vagrant
communicator: winrm
Expand All @@ -29,12 +28,11 @@ HOSTS:
roles:
- client
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
2 changes: 0 additions & 2 deletions spec/acceptance/suites/ad/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ HOSTS:
platform: windows-server-amd64
box: devopsgroup-io/windows_server-2012r2-standard-amd64-nocm # VBOX ONLY
hypervisor: <%= hypervisor %>
vagrant_memsize: 2048
vagrant_cpus: 2
user: vagrant
communicator: winrm
Expand All @@ -34,7 +33,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
6 changes: 4 additions & 2 deletions spec/acceptance/suites/default/00_default_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,6 @@ class {'sssd':

clients.each do |client|
context 'default parameters' do
os_release = fact_on(client, 'operatingsystemmajrelease')

it 'manifest should work with no errors' do
set_hieradata_on(client, default_hieradata)
apply_manifest_on(client, manifest, :catch_failures => true)
Expand Down Expand Up @@ -92,6 +90,10 @@ class {'sssd':

it 'should get local user information' do
on(client, 'useradd testuser --password "mypassword" -M -u 97979 -U')

# Allow sssd to wake up and do whatever it does :-|
sleep(10)

result = on(client, 'sssctl user-checks testuser').stdout
expect(result).to match(/.*- user id: 97979.*/)
end
Expand Down
5 changes: 2 additions & 3 deletions spec/acceptance/suites/ds389/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ HOSTS:
- ldap
- default
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>

centos8.beaker:
roles:
- client
- sssdv2
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>

centos7.beaker:
Expand All @@ -32,7 +32,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
1 change: 0 additions & 1 deletion spec/acceptance/suites/ds389/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
3 changes: 1 addition & 2 deletions spec/acceptance/suites/ldap/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ HOSTS:
- client
- sssdv2
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>
centos7:
roles:
Expand All @@ -35,7 +35,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
1 change: 0 additions & 1 deletion spec/acceptance/suites/ldap/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_ENVIRONMENT'] -%>
puppet_environment: <%= ENV['BEAKER_PUPPET_ENVIRONMENT'] %>
<% end -%>
Expand Down
1 change: 0 additions & 1 deletion spec/classes/service/sudo_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
.with_content(%r(ExecStartPre=-/bin/chown sssd:sssd /var/log/sssd/sssd_sudo.log))
.with_content(/User=root/)
.with_content(/Group=root/)
.with_daemon_reload('eager')
.with_selinux_ignore_defaults(true)
}
it {
Expand Down
1 change: 0 additions & 1 deletion spec/spec_helper_acceptance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
require 'simp/beaker_helpers'
include Simp::BeakerHelpers

require 'beaker/puppet_install_helper'
require 'beaker-windows'
include BeakerWindows::Path
include BeakerWindows::Powershell
Expand Down

0 comments on commit 16082c5

Please sign in to comment.