Skip to content

Commit

Permalink
Remove legacy top-scope syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex authored and bastelfreak committed Jul 23, 2024
1 parent 1a92daa commit 369985d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ main `/etc/logrotate.conf` configuration file.
This example will ensure that the logrotate package is latest and that the `dateext` and `compress` options are added to the defaults for a node.

```puppet
class { '::logrotate':
class { 'logrotate':
ensure => 'latest',
config => {
dateext => true,
Expand All @@ -166,7 +166,7 @@ With parameter `logrotate_args` you can specify additional startup arguments for
This example tells logrotate to use an alternate state file and which command to use when mailing logs.

```puppet
class { '::logrotate':
class { 'logrotate':
ensure => 'latest',
logrotate_args => ['-s /var/lib/logrotate/logrotate.status', '-m /usr/local/bin/mailer']
}
Expand All @@ -177,7 +177,7 @@ class { '::logrotate':
By default, the cron output is discarded if there is no error output. To enable this output, when you (for example) enable the verbose startup argument, enable the `cron_always_output` boolean on the logrotate class:

```puppet
class { '::logrotate':
class { 'logrotate':
ensure => 'latest',
cron_always_output => true,
config => {
Expand Down
2 changes: 1 addition & 1 deletion spec/classes/defaults_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
require 'spec_helper'

describe 'logrotate' do
let(:pre_condition) { 'class { "::logrotate": }' }
let(:pre_condition) { 'class { "logrotate": }' }

context 'no osfamily' do
let(:facts) { { os: { family: 'fake' } } }
Expand Down
8 changes: 4 additions & 4 deletions spec/defines/cron_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

describe 'logrotate::cron' do
context 'supported operating systems' do
let(:pre_condition) { 'class { "::logrotate": }' }
let(:pre_condition) { 'class { "logrotate": }' }

on_supported_os.each do |os, facts|
context "on #{os}" do
Expand Down Expand Up @@ -32,7 +32,7 @@
end

context 'With additional arguments' do
let(:pre_condition) { 'class {"::logrotate": logrotate_args => ["-s /var/lib/logrotate/logrotate.status", "-m /usr/sbin/mailer"]}' }
let(:pre_condition) { 'class {"logrotate": logrotate_args => ["-s /var/lib/logrotate/logrotate.status", "-m /usr/sbin/mailer"]}' }
let(:title) { 'test' }
let(:params) { { ensure: 'present' } }

Expand Down Expand Up @@ -70,7 +70,7 @@
end

context 'With additional arguments and status' do
let(:pre_condition) { 'class {"::logrotate": logrotate_args => ["-s /var/lib/logrotate/logrotate.status", "-m /usr/sbin/mailer"]}' }
let(:pre_condition) { 'class {"logrotate": logrotate_args => ["-s /var/lib/logrotate/logrotate.status", "-m /usr/sbin/mailer"]}' }
let(:title) { 'test' }
let(:params) { { ensure: 'present' } }

Expand All @@ -82,7 +82,7 @@
end

context 'With additional arguments' do
let(:pre_condition) { 'class {"::logrotate": cron_always_output => true}' }
let(:pre_condition) { 'class {"logrotate": cron_always_output => true}' }
let(:title) { 'test' }
let(:params) { { ensure: 'present' } }

Expand Down

0 comments on commit 369985d

Please sign in to comment.