Juan Hernandez has uploaded a new change for review. Change subject: packaging: Add install_devel target ......................................................................
packaging: Add install_devel target This target performs the installation (depends on the install target) and in addition to that it configures the resulting installation for a development environment doing the following: 1. Configures the engine service so that it runs with the identity of the developer (taken from the USER environment variable). 2. Configures the engine to run without proxy and with the HTTP connector enabled (HTTPS and AJP disabled). 3. Configures the engine so that it connects to the database without password (assuming that the database is configured for the "trust" mode, as that is what we recommend for development environments). 4. Enables remote debugging of the engine (adding ENGINE_DEBUG_ADDRESS=0.0.0.0:8787 to /etc/sysconfig/ovirt-engine). 5. Creates some directories required to run the engine. Change-Id: I726af2b57b302750db4390dc5859a8ba36e59a2e Signed-off-by: Juan Hernandez <[email protected]> --- M Makefile 1 file changed, 39 insertions(+), 0 deletions(-) git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/84/10984/1 diff --git a/Makefile b/Makefile index b710e6e..9d75dcd 100644 --- a/Makefile +++ b/Makefile @@ -427,3 +427,42 @@ -e "s|^\(ENGINE_CACHE=\).*$$|\1$(PKG_CACHE_DIR)|" \ -e "s|^\(ENGINE_PID=\).*$$|\1$(PID_DIR)/$(ENGINE_NAME).pid|" \ $(DESTDIR)$(DATA_DIR)/conf/engine.conf.defaults + +install_devel: install + @echo "*** Deploying development configuration" + + # Reset the configuration file: + install -m 644 packaging/fedora/engine-service.sysconfig $(DESTDIR)$(SYSCONF_DIR)/sysconfig/ovirt-engine + + # Adjust the service so that it will disable the proxy and + # enable the HTTP connector instead: + echo "ENGINE_PROXY_ENABLED=false" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + echo "ENGINE_HTTP_ENABLED=true" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + echo "ENGINE_HTTP_PORT=8700" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + echo "ENGINE_HTTPS_ENABLED=false" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + echo "ENGINE_AJP_ENABLED=false" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + + # Adjust the service so that it will run with the developer + # user and group: + echo "ENGINE_USER=$${USER}" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + echo "ENGINE_GROUP=$${USER}" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + + # Connect to the database with the postgres user and with no + # password (this is how we tell developers to connect to the + # database in our build instructions): + echo "ENGINE_DB_USER=postgres" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + echo "ENGINE_DB_PASSWORD=" >> $(DESTDIR)$(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + + # Enable remote debugging in all IP addresses and port 8787: + echo "ENGINE_DEBUG_ADDRESS=0.0.0.0:8787" >> $(SYSCONF_DIR)/sysconfig/$(ENGINE_NAME) + + # Create directories that the engine needs to run: + install -dm 755 $(DESTDIR)$(ENGINE_STATE) + install -dm 755 $(DESTDIR)$(ENGINE_STATE)/content + install -dm 755 $(DESTDIR)$(ENGINE_STATE)/deployments + install -dm 755 $(DESTDIR)$(PID_DIR) + install -dm 755 $(DESTDIR)$(PKG_LOCK_DIR) + install -dm 755 $(DESTDIR)$(PKG_LOG_DIR) + install -dm 755 $(DESTDIR)$(PKG_SYSCONF_DIR) + install -dm 755 $(DESTDIR)$(PKG_TMP_DIR) + -- To view, visit http://gerrit.ovirt.org/10984 To unsubscribe, visit http://gerrit.ovirt.org/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I726af2b57b302750db4390dc5859a8ba36e59a2e Gerrit-PatchSet: 1 Gerrit-Project: ovirt-engine Gerrit-Branch: master Gerrit-Owner: Juan Hernandez <[email protected]> _______________________________________________ Engine-patches mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/engine-patches
