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 committed Nov 24, 2023
1 parent 039cee2 commit f9a9707
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ You can use the module [stahnma-epel](https://forge.puppetlabs.com/stahnma/epel)
### Beginning with monit

```puppet
include ::monit
include monit
```

## Usage
Expand Down
2 changes: 1 addition & 1 deletion examples/check.pp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ::monit
include monit

monit::check { 'fake':
content => 'fake content for the fake service check',
Expand Down
2 changes: 1 addition & 1 deletion examples/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# Learn more about module testing here:
# http://docs.puppetlabs.com/guides/tests_smoke.html
#
include ::monit
include monit
4 changes: 2 additions & 2 deletions manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@

# Use the monit_version fact if available, else use the default for the
# platform.
if defined('$::monit_version') and $::monit_version {
$monit_version_real = $::monit_version
if $facts['monit_version'] {
$monit_version_real = $facts['monit_version']
} else {
$monit_version_real = $monit::params::monit_version
}
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# Using puppet_apply as a helper
it 'works with no errors' do
pp = <<-EOS
include ::monit
include monit
EOS

# Run it twice and test for idempotency
Expand Down
2 changes: 1 addition & 1 deletion spec/defines/check_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

describe 'monit::check' do
let :pre_condition do
'include ::monit'
'include monit'
end
let(:title) { 'test' }
let(:facts) do
Expand Down

0 comments on commit f9a9707

Please sign in to comment.