How can the "ServerAdmin" be for applications changed in Openshift?

Solution Unverified - Updated -

Environment

  • Openshift Enterprise 1.2
  • Openshift Enterprise 2.0

Issue

  • How can the ServerAdmin provided in the information on an application page be changed in Openshift?

Resolution

  • There is currently no way to set the ServerAdmin globally for every cartridge. You will have to edit the httpd configuration for each cartridge from within the cartridge repository. The configuration is usually under versions/shared/configuration/etc/conf/httpd.conf such as in the php cartridge:

https://github.com/openshift/origin-server/blob/master/cartridges/openshift-origin-cartridge-php/versions/shared/configuration/etc/conf/httpd.conf#L74

  • These changes will be overwritten when a cartridge is updated. For these changes to be persistent you would have to do one of the following:

Option 1
- Fork the cartridge, make your changes, place it in the /usr/libexec.../v2/ folder and run oo-admin-cartidge -a install -s <folder_location> to install it. This will add a second cartridge with your changes.
Option 2
- Don't update the cartridges. You can add them to be excluded from yum updates by adding a line such as the following to /etc/yum.conf:
exclude openshift-origin-cartridge-php

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.