Skip to content

Commit

Permalink
Align purge and recurse
Browse files Browse the repository at this point in the history
Added `recurse => true` to all `file` resources where `purge => true`
was set so that it actually takes effect as intended.

Closes #66
  • Loading branch information
trevor-vaughan committed Sep 17, 2022
1 parent 2c48af3 commit 2c53622
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 23 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Sat Sep 17 2022 Trevor Vaughan <trevor@sicura.us> - 8.2.1
- Added `purge => true` where `recurse => true` was present

* Tue Jun 15 2021 Chris Tessmer <chris.tessmer@onyxpoint.com> - 8.2.0
- Removed support for Puppet 5
- Ensured support for Puppet 7 in requirements and stdlib
Expand Down
13 changes: 7 additions & 6 deletions manifests/v3/conf/instantiate.pp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@

ensure_resource ('file', "${freeradius::confdir}/conf.d",
{
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
purge => true,
before => Service['radiusd'],
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
recurse => true,
purge => true,
before => Service['radiusd'],
})

file { "${freeradius::confdir}/conf.d/instantiate.inc":
Expand Down
13 changes: 7 additions & 6 deletions manifests/v3/conf/security.pp
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@

ensure_resource ('file', "${freeradius::confdir}/conf.d",
{
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
purge => true,
before => Service['radiusd'],
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
purge => true,
recurse => true,
before => Service['radiusd'],
})

file { "${freeradius::confdir}/conf.d/security.inc":
Expand Down
13 changes: 7 additions & 6 deletions manifests/v3/conf/thread_pool.pp
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,13 @@

ensure_resource ('file', "${freeradius::confdir}/conf.d",
{
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
purge => true,
before => Service['radiusd'],
ensure => 'directory',
owner => 'root',
group => $freeradius::group,
mode => '0640',
purge => true,
recurse => true,
before => Service['radiusd'],
})

file { "${freeradius::confdir}/conf.d/thread_pool.inc":
Expand Down
2 changes: 1 addition & 1 deletion metadata.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simp-freeradius",
"version": "8.2.0",
"version": "8.2.1",
"author": "SIMP Team",
"summary": "manages FreeRADIUS authentication servers",
"license": "Apache-2.0",
Expand Down
5 changes: 2 additions & 3 deletions spec/acceptance/nodesets/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,21 @@ HOSTS:
- server
- client
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>

el8-ldap:
roles:
- 389ds
- client
platform: el-8-x86_64
box: generic/centos8
box: centos/stream8
hypervisor: <%= hypervisor %>

CONFIG:
log_level: verbose
synced_folder : disabled
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
<% end -%>
1 change: 0 additions & 1 deletion spec/acceptance/nodesets/oel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ CONFIG:
log_level: verbose
synced_folder : disabled
type: aio
vagrant_memsize: 256
<% if ENV['BEAKER_PUPPET_COLLECTION'] -%>
puppet_collection: <%= ENV['BEAKER_PUPPET_COLLECTION'] %>
<% end -%>

0 comments on commit 2c53622

Please sign in to comment.