File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 22
33#### Fixes
44* The Elasticsearch log directory is no longer recursively managed to avoid stomping on the user/mode settings that Elasticsearch prefers.
5+ * Package management on apt-based systems no longer encounters dependency errors when ` manage_repo => false ` .
56
67#### Features
78
Original file line number Diff line number Diff line change 154154 }
155155
156156 } else {
157- if ($facts [' os' ][' family' ] == ' Debian' ) {
157+ if ($elasticsearch::manage_repo and $ facts [' os' ][' family' ] == ' Debian' ) {
158158 Class[' apt::update' ] -> Package[' elasticsearch' ]
159159 }
160160 }
Original file line number Diff line number Diff line change 236236
237237 it { should contain_class ( 'elastic_stack::repo' ) }
238238 end
239+
240+ context 'When not managing the repository' do
241+ let ( :params ) do
242+ default_params . merge (
243+ :manage_repo => false
244+ )
245+ end
246+
247+ it { should compile . with_all_deps }
248+ end
239249 end
240250 end
241251
You can’t perform that action at this time.
0 commit comments