2011-04-27

Cloud Foundry Environment Variables — example output


Variable names and their possible values:
VMC_APP_HOST: 10.114.110.207
VMC_APP_NAME: env
VMC_APP_INSTANCE: {"uris":["env.vcloudlabs.com"],"droplet_id":8781,"port":38723,"start":"Mon Mar 14 22:12:38 -0400 2011","instance_id":"761a23e1-533d-45f2-b22a-4524a9b0e861","resources_tracked":true,"version":"01bf98c5-906e-4af9-99db-5be3b48981b3","mem_quota":67108864,"instance_index":0,"secure_user":"b29-user-2","state":"STARTING","disk_quota":2147483648,"name":"env","state_timestamp":1300155158,"fds_quota":256,"dir":"/var/b29.local/apps/env-0-761a23e1-533d-45f2-b22a-4524a9b0e861","users":["person@example.com"]}
SHELL: /bin/sh
XDG_SESSION_COOKIE: 54734e3a0e719835e9b4985f4cd3c129-1300155163.225936-375864229
VMC_APP_PORT: 38723
VMC_MYSQL: 10.114.110.212:3306
USER: b29-user-2
RACK_ENV: production
PATH: /usr/local/bin:/bin:/usr/bin:/usr/local/mysql/bin:.
MAIL: /var/mail/b29-user-2
VMC_MONGODB: 10.114.110.210:22545
PWD: /var/b29.local/apps/env-0-761a23e1-533d-45f2-b22a-4524a9b0e861/app
VMC_RABBITMQ: 10.114.110.210:5672
LANG: en_US.UTF-8
VMC_APP_VERSION: 01bf98c5-906e-4af9-99db-5be3b48981b3
SHLVL: 1
HOME: /var/b29.local/apps/env-0-761a23e1-533d-45f2-b22a-4524a9b0e861
VMC_SERVICES: [{"name":"rabbitmq-4dc08a7","tier":"free","version":"2.1.1","type":"messaging","vendor":"rabbitmq","options":{"port":5672,"host":"10.114.110.210","pass":"pcGYWPMs9EZgC","user":"uCJSwGV3QEgpK","vhost":"v4e08a205c9c54809b51a592a965f7956"}},{"name":"my_cool_mysqldb","tier":"free","version":"5.1","type":"database","vendor":"mysql","options":{"name":"d025d2385f5fb45208400fd0adaf8fb75","port":3306,"node_id":"mysql_node_1","hostname":"10.114.110.212","user":"ut2wUhfLyAKea","password":"p2ilLfwMx2gZ6"}},{"name":"my_mongodb","tier":"free","version":"1.6","type":"nosql-db","vendor":"mongodb","options":{"name":"mongodb-fdd9ae66-c6fc-4dff-a532-67f1ba0cb4ae","port":22545,"node_id":"mongodb_node_1","hostname":"10.114.110.210","password":"15cf6cca-43bc-4b71-a851-16ddbed8e325"}}]
LOGNAME: b29-user-2
VMC_APP_ID: 761a23e1-533d-45f2-b22a-4524a9b0e861
RUBYOPT: -rubygems -I/var/b29.local/apps/env-0-761a23e1-533d-45f2-b22a-4524a9b0e861/ruby -rstdsync
_: /usr/bin/ruby
OLDPWD: /var/b29.local/apps/env-0-761a23e1-533d-45f2-b22a-4524a9b0e861