stable

Clone or download

Read-only

chore(forge-config) Write local.inc with TuleapCfg

This is part of the work to transfer most of the configuration to Tuleap code so Containers will have access to a flexible installation while the code stays as close as possible to the non container install. This commit propose a new approach for local inc: only set the values that are rewritten. As we load `local.inc.dist` behind the scene it should give a better understand of what was overloaded by local lord. In order to leverage the work started on database.inc serialization, the code is transfered and re-used. At this stage, the variables in ServerHostname and ConfigurationVariables classes is only there for local.inc serialization. The work to have those variables properly managed end-to-end will come later on. Part of: story #22708 flexibility in the management of Tuleap Configuration Change-Id: Ia1f710894a2978e8d914e2845b365d4b7aa14d4c

Modified Files

Name
M src/common/CLI/Events/GetWhitelistedKeys.php +2 −2 Go to diff View file
M src/common/Config/ConfigCannotBeModified.php +1 −1 Go to diff View file
A src/common/Config/ConfigCannotBeModifiedInterface.php +28 −0 Go to diff View file
A src/common/Config/ConfigCannotBeModifiedYet.php +33 −0 Go to diff View file
M src/common/Config/ConfigKeyHelp.php +0 −1 Go to diff View file
M src/common/Config/ConfigKeyLegacyBool.php +1 −1 Go to diff View file
A src/common/Config/ConfigSerializer.php +117 −0 Go to diff View file
A src/common/Config/ConfigurationVariables.php +82 −0 Go to diff View file
M src/common/Config/ForgeConfig.php +17 −0 Go to diff View file
M src/common/include/ServerHostname.php +31 −1 Go to diff View file
M src/tuleap-cfg/Command/SetupMysql/DatabaseConfigurator.php +17 −61 Go to diff View file
M src/tuleap-cfg/Command/SetupMysqlInitCommand.php +2 −2 Go to diff View file
A src/tuleap-cfg/Command/SetupTuleapCommand.php +102 −0 Go to diff View file
M src/tuleap-cfg/tuleap-cfg.php +1 −0 Go to diff View file
M tests/integration/tests/Backend/BackendSVNTest.php +2 −0 Go to diff View file
M tests/unit/tuleap-cfg/Command/SetupMysqlInitCommandAzureTest.php +3 −0 Go to diff View file
M tests/unit/tuleap-cfg/Command/SetupMysqlInitCommandTest.php +3 −0 Go to diff View file
A tests/unit/tuleap-cfg/Command/SetupTuleapCommandTest.php +128 −0 Go to diff View file
M tools/setup.el7.sh +1 −14 Go to diff View file
M tools/setup/el7/include/setup.sh +0 −16 Go to diff View file