File tree 3 files changed +37
-3
lines changed
3 files changed +37
-3
lines changed Original file line number Diff line number Diff line change @@ -133,6 +133,15 @@ class { 'redis::sentinel':
133
133
}
134
134
```
135
135
136
+ If installation without redis-server is desired, set ` require_redis ` parameter to false, i.e
137
+ ``` puppet
138
+ class { 'redis::sentinel':
139
+ ...
140
+ require_redis => false,
141
+ ...
142
+ }
143
+ ```
144
+
136
145
### Soft dependency
137
146
138
147
When managing the repo, it needs [ puppetlabs/apt] ( https://forge.puppet.com/puppetlabs/apt ) .
Original file line number Diff line number Diff line change @@ -1509,6 +1509,15 @@ class {'redis::sentinel':
1509
1509
}
1510
1510
```
1511
1511
1512
+ If installation without redis-server is desired, set ` require_redis ` parameter to false, i.e
1513
+ ``` puppet
1514
+ class { 'redis::sentinel':
1515
+ ...
1516
+ require_redis => false,
1517
+ ...
1518
+ }
1519
+ ```
1520
+
1512
1521
#### Parameters
1513
1522
1514
1523
The following parameters are available in the ` redis::sentinel ` class:
@@ -1899,6 +1908,14 @@ Data type: `Stdlib::Ensure::Service`
1899
1908
1900
1909
Default value: ` 'running' `
1901
1910
1911
+ ##### <a name =" -redis--sentinel--require_redis " ></a >` require_redis `
1912
+
1913
+ Data type: ` Boolean `
1914
+
1915
+ Require redis base class. If set to false, sentinel is installed without redis server.
1916
+
1917
+ Default value: ` true `
1918
+
1902
1919
## Defined types
1903
1920
1904
1921
### <a name =" redis--instance " ></a >` redis::instance `
Original file line number Diff line number Diff line change 133
133
# @param acls
134
134
# This is a way to pass an array of raw ACLs to Sentinel. The ACLs must be
135
135
# in the form of:
136
- #
136
+ #
137
137
# user USERNAME [additional ACL options]
138
138
#
139
139
# @example Basic inclusion
145
145
# log_file => '/var/log/redis/sentinel.log',
146
146
# }
147
147
#
148
+ # @param contain_redis
149
+ # Contain redis base class. If set to false, sentinel is installed without redis server.
150
+ #
148
151
class redis::sentinel (
149
152
Optional[Variant[String[1], Sensitive[String[1]]]] $auth_pass = undef ,
150
153
Stdlib::Absolutepath $config_file = $redis::params::sentinel_config_file,
187
190
Optional[Stdlib::Absolutepath] $notification_script = undef ,
188
191
Optional[Stdlib::Absolutepath] $client_reconfig_script = undef ,
189
192
Array[String[1]] $acls = [],
193
+ Boolean $contain_redis = true ,
190
194
) inherits redis::params {
191
195
$auth_pass_unsensitive = if $auth_pass =~ Sensitive {
192
196
$auth_pass .unwrap
193
197
} else {
194
198
$auth_pass
195
199
}
196
200
197
- contain ' redis'
201
+ if $contain_redis {
202
+ contain ' redis'
203
+ }
198
204
199
205
if $package_name != $redis::package_name {
200
206
ensure_packages([$package_name ], {
201
207
ensure => $package_ensure
202
208
})
203
- Package[$package_name ] -> Class[' redis' ]
209
+ if $contain_redis {
210
+ Package[$package_name ] -> Class[' redis' ]
211
+ }
204
212
}
205
213
Package[$package_name ] -> File [$config_file_orig ]
206
214
You can’t perform that action at this time.
0 commit comments