File tree Expand file tree Collapse file tree 6 files changed +9
-23
lines changed Expand file tree Collapse file tree 6 files changed +9
-23
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,6 @@ fixtures:
44 archive : https://github.com/voxpupuli/puppet-archive.git
55 augeas_core : https://github.com/puppetlabs/puppetlabs-augeas_core.git
66 concat : https://github.com/puppetlabs/puppetlabs-concat.git
7- datacat : https://github.com/richardc/puppet-datacat.git
87 elastic_stack : https://github.com/voxpupuli/puppet-elastic_stack.git
98 java : https://github.com/puppetlabs/puppetlabs-java.git
109 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
6060### Requirements
6161
6262* The [ stdlib] ( https://forge.puppetlabs.com/puppetlabs/stdlib ) Puppet library.
63- * [ richardc/datacat] ( https://forge.puppetlabs.com/richardc/datacat )
6463* [ Augeas] ( http://augeas.net/ )
6564* [ puppetlabs-java_ks] ( https://forge.puppetlabs.com/puppetlabs/java_ks ) for certificate management (optional).
6665
Original file line number Diff line number Diff line change 156156 # }
157157
158158 # Generate Elasticsearch config
159- $_es_config = merge(
159+ $data = merge(
160160 $elasticsearch::config ,
161161 { ' path.data' => $elasticsearch::datadir },
162162 { ' path.logs' => $elasticsearch::logdir },
163163 $_tls_config
164164 )
165165
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' ,
178174 }
179175
180176 # Add any additional JVM options
Original file line number Diff line number Diff line change 1212 "name" : " puppet/elastic_stack" ,
1313 "version_requirement" : " >= 8.0.0 < 9.0.0"
1414 },
15- {
16- "name" : " richardc/datacat" ,
17- "version_requirement" : " >= 0.6.2 < 1.0.0"
18- },
1915 {
2016 "name" : " puppetlabs/java" ,
2117 "version_requirement" : " >= 1.0.0 < 9.0.0"
Original file line number Diff line number Diff line change 5959
6060 it { is_expected . to contain_augeas ( '/etc/sysconfig/elasticsearch' ) }
6161 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' ) }
6462
6563 it {
6664 expect ( subject ) . to contain_service ( 'elasticsearch' ) . with (
Original file line number Diff line number Diff line change 44 it { is_expected . to compile . with_all_deps }
55 it { is_expected . to contain_augeas ( '/etc/sysconfig/elasticsearch' ) }
66 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' ) }
97 it { is_expected . to contain_service ( 'elasticsearch' ) }
108end
You can’t perform that action at this time.
0 commit comments