Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

enh(core): update script to manage gorgone configuration file #8229

Merged

Conversation

sc979
Copy link
Contributor

@sc979 sc979 commented Jan 2, 2020

Pull Request Template

Description

Generate the gorgoned.yml configuration file at 20.04.x upgrade.
Get the current user's configuration values to enable the legacy mode of the module

Fixes # (none)

Type of change

  • Patch fixing an issue (non-breaking change)
  • New functionality (non-breaking change)
  • Breaking change (patch or feature) that might cause side effects breaking part of the Software
  • Updating documentation (missing information, typo...)

Target serie

  • 2.8.x
  • 18.10.x
  • 19.04.x
  • 19.10.x
  • 20.04.x (master)

How this pull request can be tested ?

1- default folders / OVF / ISO :
In the centreon's specific folder, the gorgoned.yml file should be created without throwing an error in the logs.
The default folder is "/etc/centreon".

2 - custom folders :
You need to test the upgrade using custom folders, chosen in the fresh install form of a previous major release, and then upgrade to the 20.04.x.
These values should be backported in a new gorgoned.yml file.

Checklist

Community contributors & Centreon team

  • I followed the coding style guidelines provided by Centreon
  • I have commented my code, especially new classes, functions or any legacy code modified. (docblock)
  • I have commented my code, especially hard-to-understand areas of the PR.
  • I have made corresponding changes to the documentation.
  • I have rebased my development branch on the base branch (master, maintenance).

Centreon team only

  • I have made sure that the unit tests related to the story are successful.
  • I have made sure that unit tests cover 80% of the code written for the story.
  • I have made sure that acceptance tests related to the story are successful (local and CI)

@sc979 sc979 force-pushed the MON-4403-migrate-centreon-legacy-to-gorgone branch from 362cfff to a4a2f6e Compare January 2, 2020 14:43
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
www/install/php/Update-20.04.0-beta.1.php Outdated Show resolved Hide resolved
@sc979 sc979 force-pushed the MON-4403-migrate-centreon-legacy-to-gorgone branch from 54dad9b to e7b1f5c Compare January 7, 2020 16:30
@sc979 sc979 changed the base branch from MON-gorgone-integration to MON-update-using-transactions January 7, 2020 16:31
@sc979 sc979 changed the base branch from MON-update-using-transactions to MON-gorgone-integration January 7, 2020 16:34
lang/pt_BR.UTF-8/LC_MESSAGES/messages.po Outdated Show resolved Hide resolved
lang/pt_PT.UTF-8/LC_MESSAGES/messages.po Outdated Show resolved Hide resolved
@centreon centreon deleted a comment from kduret Jan 9, 2020
@sc979 sc979 requested a review from callapa January 9, 2020 10:17
@sc979 sc979 merged commit 9bc87fd into MON-gorgone-integration Jan 14, 2020
@sc979 sc979 deleted the MON-4403-migrate-centreon-legacy-to-gorgone branch January 14, 2020 12:10
sc979 added a commit that referenced this pull request Mar 18, 2020
* enh(core): generate centreon gorgone configuration file (#8160)

* enh(core): add gorgone configuration file generation

* fix: folder paths

* fix(core): naming of file and field type

* enh(core): update configuration file to take in account last modif

* fix(core): correct path to private key

* enh(core): add nodes module

* enh(core): store stats in cache dir

* enh(core): enable broker stats collection

* enh(poller) Update poller form to manage gorgone (#8184)

* enh(gorgone) Update config form to manage gorgone options  (#8197)

* enh(chore) replace centcore by gorgone (#8172)

* remove centcore perl script (#8209)

* fix(UI): do not display gorgone options on central's form (#8206)

* fix(UI): do not display gorgone options on central

* remove duplicated code (#8215)

* enh(admin): adapt broker stats page to new folder tree (#8216)

* enh(core): update script to manage gorgone configuration file (#8229)

* enh: exception management

* enh(update): generate gorgone conf file on update

* fix(translation): avoid empty gettext translation

* enh(core): Add a yaml configuration loader (#8270)

* MON-4737 enh(core): split gorgone configuration in different files (#8276)

* enh(core): adapt upgrade script to latest modifications (#8284)

* adapt update script

* enh: add more check brefore trying to create the conf files

* fix: correct path in the template

* enh(core): update gorgone configuration files (#8293)

* update configuration location

* enh(gorgone): Added API to communicate with the Gorgone server (#8294)

* enh(install): fix default keys pathes (#8302)

* fix db name configuration template

* replace remote data folder

* fix rest api test

* enh(UI): Add nowrap style to badge class - from aladdinchan (#8314)

* fix(ui): Add hash:8 suffix to font files to avoid asset conflicts and optimize Webpack config (#8305)

* Mon 4640 remove deprecated engine fields (#8233)

* fix(CI): add new tests to clapi diff

* fix(core): source install (#8396)

* enh(core): add gorgone user and copy ssh keys

* fix(api): fix options retrieval issue (#8412)

* fix(core): manage the gorgone configuration files (#8400)

* fix(core): duplicate SSH key on source upgrade (#8421)

Co-authored-by: loiclau <loic.lau@gmail.com>
Co-authored-by: Colin Gagnaire <cgagnaire@centreon.com>
Co-authored-by: Laurent Calvet <lcalvet@centreon.com>
Co-authored-by: Bruno d'Auria <bdauria@centreon.com>
Co-authored-by: Matthieu Kermagoret <mkermagoret@centreon.com>
Co-authored-by: Laurent Pinsivy <lpinsivy@centreon.com>
Co-authored-by: Kevin Duret <duret.kevin@gmail.com>
Co-authored-by: Laurent Calvet <laurent@callapa.com>
Co-authored-by: Kevin Duret <kduret@centreon.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants