~hopem/charms/trusty/openstack-dashboard/lp1518975

« back to all changes in this revision

Viewing changes to hooks/horizon-relations

  • Committer: Chad Smith
  • Date: 2013-02-26 17:26:20 UTC
  • mto: (17.1.9 openstack-dashboard)
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: chad.smith@canonical.com-20130226172620-xy5chdbikgac0x2c
-add health_checks.d, add_to_cluster and remove_from_cluster scripts
-create a bash save_script_rc function which creates a local scriptrc file
 comparable to our python-based function

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
  set_or_update LOGIN_URL "$web_root/auth/login"
80
80
  set_or_update LOGIN_REDIRECT_URL "$web_root"
81
81
 
 
82
  # Save our scriptrc env variables for health checks
 
83
  declare -a env_vars=(
 
84
      'OPENSTACK_URL_HORIZON_CHECK=http://localhost/$web_root|Login - Openstack'
 
85
      'OPENSTACK_SERVICE_HORIZON=apache2'
 
86
      'OPENSTACK_PORT_HORIZON=80')
 
87
  save_script_rc ${env_vars[@]}
 
88
 
 
89
 
82
90
  # Set default role and trigger a identity-service relation event to
83
91
  # ensure role is created in keystone.
84
92
  set_or_update OPENSTACK_KEYSTONE_DEFAULT_ROLE "$(config-get default-role)"