Skip to content

Commit

Permalink
Merge pull request #498 from voxpupuli/remove-legacy-top-scope-syntax
Browse files Browse the repository at this point in the history
Remove legacy top-scope syntax
  • Loading branch information
rwaffen authored Feb 16, 2024
2 parents 972239a + 21e6213 commit 3e54288
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 15 deletions.
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
### Standalone

```puppet
include ::redis
include redis
```

### Master node

```puppet
class { '::redis':
class { 'redis':
bind => '10.0.1.1',
}
```

With authentication

```puppet
class { '::redis':
class { 'redis':
bind => '10.0.1.1',
masterauth => 'secret',
}
Expand All @@ -36,7 +36,7 @@ class { '::redis':
### Slave node

```puppet
class { '::redis':
class { 'redis':
bind => '10.0.1.2',
slaveof => '10.0.1.1 6379',
}
Expand All @@ -45,7 +45,7 @@ class { '::redis':
With authentication

```puppet
class { '::redis':
class { 'redis':
bind => '10.0.1.2',
slaveof => '10.0.1.1 6379',
masterauth => 'secret',
Expand All @@ -55,7 +55,7 @@ class { '::redis':
### Redis 3.0 Clustering

```puppet
class { '::redis':
class { 'redis':
bind => '10.0.1.2',
appendonly => true,
cluster_enabled => true,
Expand All @@ -70,7 +70,7 @@ class { '::redis':
```puppet
$listening_ports = [6379,6380,6381,6382]
class { '::redis':
class { 'redis':
default_install => false,
service_enable => false,
service_ensure => 'stopped',
Expand All @@ -97,15 +97,15 @@ Disabled by default but if you really want the module to manage the required
repositories you can use this snippet:

```puppet
class { '::redis':
class { 'redis':
manage_repo => true,
}
```

On Ubuntu, you can use a PPA by using the `ppa_repo` parameter:

```puppet
class { '::redis':
class { 'redis':
manage_repo => true,
ppa_repo => 'ppa:rwky/redis',
}
Expand All @@ -120,13 +120,13 @@ Optionally install and configuration a redis-sentinel server.
With default settings:

```puppet
include ::redis::sentinel
include redis::sentinel
```

With adjustments:

```puppet
class { '::redis::sentinel':
class { 'redis::sentinel':
master_name => 'cow',
redis_host => '192.168.1.5',
failover_timeout => 30000,
Expand Down
2 changes: 1 addition & 1 deletion REFERENCE.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ include redis
##### Slave Node

```puppet
class { '::redis':
class { 'redis':
bind => '10.0.1.2',
slaveof => '10.0.1.1 6379',
}
Expand Down
2 changes: 1 addition & 1 deletion manifests/init.pp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# include redis
#
# @example Slave Node
# class { '::redis':
# class { 'redis':
# bind => '10.0.1.2',
# slaveof => '10.0.1.1 6379',
# }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
pp = <<-EOS
$listening_ports = #{instances}
class { '::redis':
class { 'redis':
default_install => false,
service_enable => false,
service_ensure => 'stopped',
Expand Down
2 changes: 1 addition & 1 deletion spec/acceptance/suites/default/redis_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

it 'runs successfully when using Redis apt repository', if: (fact('os.family') == 'Debian') do
pp = <<-EOS
class { '::redis':
class { 'redis':
manage_repo => true,
redis_apt_repo => true,
}
Expand Down

0 comments on commit 3e54288

Please sign in to comment.