Show Table of Contents
7.2. Cartridge Environment Variables
OpenShift Enterprise provides three environment variables for all cartridges by default. These variables are read-only.
Table 7.2. Cartridge Environment Variables
| Name | Value |
|---|---|
| OPENSHIFT_{Cartridge-Short-Name}_DIR | The directory where cartridge information is installed. |
| OPENSHIFT_{Cartridge-Short-Name}_IDENT | The identity of the cartridge, sourced from its manifest.yml file. The format is Cartridge-Vendor:Version:Cartridge-Version. |
| OPENSHIFT_PRIMARY_CARTRIDGE_DIR | The directory where the primary cartridge on a gear is installed. For example, a scaling PHP application has both a PHP cartridge and a HAProxy cartridge installed on the head gear. In this case, the PHP cartridge is the primary cartridge. |

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.