File tree 6 files changed +9
-23
lines changed
6 files changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ fixtures:
4
4
archive : https://github.com/voxpupuli/puppet-archive.git
5
5
augeas_core : https://github.com/puppetlabs/puppetlabs-augeas_core.git
6
6
concat : https://github.com/puppetlabs/puppetlabs-concat.git
7
- datacat : https://github.com/richardc/puppet-datacat.git
8
7
elastic_stack : https://github.com/voxpupuli/puppet-elastic_stack.git
9
8
java : https://github.com/puppetlabs/puppetlabs-java.git
10
9
java_ks : https://github.com/puppetlabs/puppetlabs-java_ks.git
Original file line number Diff line number Diff line change @@ -60,7 +60,6 @@ Therefore please ensure that you test this major release in your environment bef
60
60
### Requirements
61
61
62
62
* The [ stdlib] ( https://forge.puppetlabs.com/puppetlabs/stdlib ) Puppet library.
63
- * [ richardc/datacat] ( https://forge.puppetlabs.com/richardc/datacat )
64
63
* [ Augeas] ( http://augeas.net/ )
65
64
* [ puppetlabs-java_ks] ( https://forge.puppetlabs.com/puppetlabs/java_ks ) for certificate management (optional).
66
65
Original file line number Diff line number Diff line change 157
157
# }
158
158
159
159
# Generate Elasticsearch config
160
- $_es_config = merge(
160
+ $data = merge(
161
161
$elasticsearch::config ,
162
162
{ ' path.data' => $elasticsearch::datadir },
163
163
{ ' path.logs' => $elasticsearch::logdir },
164
164
$_tls_config
165
165
)
166
166
167
- datacat_fragment { 'main_config' :
168
- target => " ${elasticsearch::configdir} /elasticsearch.yml" ,
169
- data => $_es_config,
170
- }
171
-
172
- datacat { "${elasticsearch::configdir}/elasticsearch.yml" :
173
- template => " ${module_name} /etc/elasticsearch/elasticsearch.yml.erb" ,
174
- notify => $elasticsearch::_notify_service ,
175
- require => Class[' elasticsearch::package' ],
176
- owner => $elasticsearch::elasticsearch_user ,
177
- group => $elasticsearch::elasticsearch_group ,
178
- mode => ' 0440' ,
167
+ file { "${elasticsearch::configdir}/elasticsearch.yml" :
168
+ ensure => ' file' ,
169
+ content => template (" ${module_name} /etc/elasticsearch/elasticsearch.yml.erb" ),
170
+ notify => $elasticsearch::_notify_service ,
171
+ require => Class[' elasticsearch::package' ],
172
+ owner => $elasticsearch::elasticsearch_user ,
173
+ group => $elasticsearch::elasticsearch_group ,
174
+ mode => ' 0440' ,
179
175
}
180
176
181
177
if ($elasticsearch::version != false and versioncmp($elasticsearch::version , ' 7.7.0' ) >= 0) {
Original file line number Diff line number Diff line change 12
12
"name" : " puppet/elastic_stack" ,
13
13
"version_requirement" : " >= 8.0.0 < 9.0.0"
14
14
},
15
- {
16
- "name" : " richardc/datacat" ,
17
- "version_requirement" : " >= 0.6.2 < 1.0.0"
18
- },
19
15
{
20
16
"name" : " puppetlabs/java" ,
21
17
"version_requirement" : " >= 1.0.0 < 9.0.0"
Original file line number Diff line number Diff line change 59
59
60
60
it { is_expected . to contain_augeas ( '/etc/sysconfig/elasticsearch' ) }
61
61
it { is_expected . to contain_file ( '/etc/elasticsearch/elasticsearch.yml' ) }
62
- it { is_expected . to contain_datacat ( '/etc/elasticsearch/elasticsearch.yml' ) }
63
- it { is_expected . to contain_datacat_fragment ( 'main_config' ) }
64
62
65
63
it {
66
64
expect ( subject ) . to contain_service ( 'elasticsearch' ) . with (
Original file line number Diff line number Diff line change 4
4
it { is_expected . to compile . with_all_deps }
5
5
it { is_expected . to contain_augeas ( '/etc/sysconfig/elasticsearch' ) }
6
6
it { is_expected . to contain_file ( '/etc/elasticsearch/elasticsearch.yml' ) }
7
- it { is_expected . to contain_datacat ( '/etc/elasticsearch/elasticsearch.yml' ) }
8
- it { is_expected . to contain_datacat_fragment ( 'main_config' ) }
9
7
it { is_expected . to contain_service ( 'elasticsearch' ) }
10
8
end
You can’t perform that action at this time.
0 commit comments