stable

Clone or download

Read-only

Introduce a CLI tuleap-cfg to replace setup.sh

setup.el7.sh is better than setup.sh (c4/5/6) but it's still a shell script that is a nightmare to debug and test. The goal of tuleap-cfg is to have a well (unit) tested configurator made with modern tooling. tuleap-cfg should be safe by default and idempotent so admins can run it "with closed eyes". Note: I put it in src/tuleap-cfg, I don't know if it's the right place. Part of story #12639 a central tool to configure/setup/customize tuleap Change-Id: Iee6003684bd53c616560996557842998ee612260

Modified Files

Name
M .gitignore +1 −0 Go to diff View file
M src/composer.json +2 −1 Go to diff View file
A src/tuleap-cfg/Command/ConfigureCommand.php +134 −0 Go to diff View file
A src/tuleap-cfg/Command/PermissionsDeniedException.php +28 −0 Go to diff View file
A src/tuleap-cfg/resources/httpd.conf +353 −0 Go to diff View file
A src/tuleap-cfg/resources/ssl.conf +217 −0 Go to diff View file
A src/tuleap-cfg/tuleap-cfg.php +30 −0 Go to diff View file
M tests/phpunit/phpunit.xml +2 −0 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/ConfigureCommandTest.php +166 −0 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/_fixtures/httpd.conf +353 −0 Go to diff View file
A tests/phpunit/tuleap-cfg/Command/_fixtures/ssl.conf +217 −0 Go to diff View file
M tools/rpm/Makefile +1 −5 Go to diff View file
M tools/rpm/tuleap.rhel6.spec +3 −0 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +3 −0 Go to diff View file
M tools/setup.el7.sh +1 −1 Go to diff View file
M tools/setup/el7/include/core.sh +1 −39 Go to diff View file