Skip to content

Commit

Permalink
Update deps to use puppet/systemd (#133)
Browse files Browse the repository at this point in the history
This patch updates from camptocamp/systemd 2.x to puppet/systemd 3.x
  • Loading branch information
op-ct authored Jun 11, 2022
1 parent d1d5ef1 commit 2b0fa3e
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 20 deletions.
4 changes: 3 additions & 1 deletion .fixtures.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ fixtures:
simplib: https://github.com/simp/pupmod-simp-simplib.git
stdlib: https://github.com/simp/puppetlabs-stdlib.git
stunnel: https://github.com/simp/pupmod-simp-stunnel.git
systemd: https://github.com/simp/puppet-systemd.git
systemd:
repo: https://github.com/simp/puppet-systemd.git
branch: simp-master
tcpwrappers: https://github.com/simp/pupmod-simp-tcpwrappers.git
disa_stig-el7-baseline:
repo: https://github.com/simp/inspec-profile-disa_stig-el7.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]> - 8.2.0
- Update from camptocamp/systemd to puppet/systemd

* Wed Jun 16 2021 Chris Tessmer <[email protected]> - 8.1.0
- Removed support for Puppet 5
- Ensured support for Puppet 7 in requirements and stdlib
Expand Down
5 changes: 1 addition & 4 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -602,9 +602,6 @@
systemd::dropin_file { $systemd_override_file:
unit => 'rsyslog.service',
content => $_override
}

# make sure service gets restarted after systemctl daemon-reload
Class['systemd::systemctl::daemon_reload'] ~> Class['rsyslog::service']
} ~> Class['rsyslog::service']
}
}
6 changes: 3 additions & 3 deletions metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-rsyslog",
"version": "8.1.0",
"version": "8.2.0",
"author": "SIMP Team",
"summary": "A puppet module to support RSyslog version 8.",
"license": "Apache-2.0",
Expand All @@ -15,8 +15,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
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
vagrant_memsize: 512
ssh:
keepalive: true
keepalive_interval: 10
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
vagrant_memsize: 512
ssh:
keepalive: true
keepalive_interval: 10
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
vagrant_memsize: 512
ssh:
keepalive: true
keepalive_interval: 10
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/suites/doubleforward/nodesets/centos-7.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
vagrant_memsize: 512
ssh:
keepalive: true
keepalive_interval: 10
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/suites/doubleforward/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
vagrant_memsize: 512
ssh:
keepalive: true
keepalive_interval: 10
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/suites/doubleforward/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ HOSTS:
CONFIG:
log_level: verbose
type: aio
vagrant_memsize: 256
vagrant_memsize: 512
ssh:
keepalive: true
keepalive_interval: 10
Expand Down
7 changes: 2 additions & 5 deletions spec/classes/init_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,8 @@
is_expected.to contain_systemd__dropin_file('unit.conf')
.with( {
:unit => 'rsyslog.service',
:content => expected
} )

is_expected.to contain_class('systemd::systemctl::daemon_reload')
.that_comes_before('Class[rsyslog::service]')
:content => expected,
} ).that_comes_before('Class[rsyslog::service]')
end
end

Expand Down

0 comments on commit 2b0fa3e

Please sign in to comment.