Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove legacy top-scope syntax #498

Merged
merged 1 commit into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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