Bug 1054918 - RFE admin should be able to augment cartridge httpd conf without a custom cartridge
Summary: RFE admin should be able to augment cartridge httpd conf without a custom car...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Image
Version: 2.x
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Luke Meyer
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks: 1054916
TreeView+ depends on / blocked
 
Reported: 2014-01-17 18:38 UTC by Luke Meyer
Modified: 2015-05-15 02:21 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 1054916
Environment:
Last Closed: 2014-01-30 00:47:17 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Luke Meyer 2014-01-17 18:38:23 UTC
+++ This bug was initially created as a clone of Bug #1054916 +++

Description of problem:
For cartridges based on httpd, OpenShift administrators would like the ability to add to the httpd configuration used by all cartridges without having to create and maintain a custom cartridge to do so.

The proposed method for doing this is to designate directories on the node where the administrator can just put .conf files to have them included in gear configurations.

Steps to Reproduce:
1. Create perl, php, ruby, and python apps
2. Add directories /etc/openshift/cart.conf.d/httpd{,/perl,/php,/ruby,/python} and put a unique httpd directive in a conf file in each, e.g. put "SetEnv TEST_CART_CONF foo" in env.conf
3. For each app, add something that will demonstrate the change, e.g. that prints the env var(s). Push the change and ensure the app restarts (which should pull in the new httpd conf).


Additional info:
This covers httpd conf as well as cart-specific httpd conf. We'd like to do this for JBoss too but that is a little more complex approach.

Comment 2 Meng Bo 2014-01-21 10:42:46 UTC
Check this issue on devenv_4248,

After add the conf under /etc/openshift/cart.conf.d/httpd/php

The env can be added and catched by the php script in web page.

Move bug to verified.


Note You need to log in before you can comment on or make changes to this bug.