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 156
156
# }
157
157
158
158
# Generate Elasticsearch config
159
- $_es_config = merge(
159
+ $data = merge(
160
160
$elasticsearch::config ,
161
161
{ ' path.data' => $elasticsearch::datadir },
162
162
{ ' path.logs' => $elasticsearch::logdir },
163
163
$_tls_config
164
164
)
165
165
166
- datacat_fragment { 'main_config' :
167
- target => " ${elasticsearch::configdir} /elasticsearch.yml" ,
168
- data => $_es_config,
169
- }
170
-
171
- datacat { "${elasticsearch::configdir}/elasticsearch.yml" :
172
- template => " ${module_name} /etc/elasticsearch/elasticsearch.yml.erb" ,
173
- notify => $elasticsearch::_notify_service ,
174
- require => Class[' elasticsearch::package' ],
175
- owner => $elasticsearch::elasticsearch_user ,
176
- group => $elasticsearch::elasticsearch_group ,
177
- mode => ' 0440' ,
166
+ file { "${elasticsearch::configdir}/elasticsearch.yml" :
167
+ ensure => ' file' ,
168
+ content => template (" ${module_name} /etc/elasticsearch/elasticsearch.yml.erb" ),
169
+ notify => $elasticsearch::_notify_service ,
170
+ require => Class[' elasticsearch::package' ],
171
+ owner => $elasticsearch::elasticsearch_user ,
172
+ group => $elasticsearch::elasticsearch_group ,
173
+ mode => ' 0440' ,
178
174
}
179
175
180
176
# Add any additional JVM options
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