注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

itoedr的it学苑

记录从IT文盲学到专家的历程

 
 
 

日志

 
 

openstack的布署工具:juju  

2015-04-16 09:00:50|  分类: linux‘cloud |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
         juju是ubuntu发布的云平台管理工具,可是中文使用者却是不多。笔者希望用一段时间来了解juju的功能与特色。首先一看juju的初步内容(关于juju):
        首先收集来openstack的两张图来展示openstack的结构,我们现行分析juju工具中各个节点功能所对应的openstack功能内容。
     
openstack的布署工具:juju - itoedr - itoedr的it学苑
openstack最始结构中的人机界面分析图
 
openstack的布署工具:juju - itoedr - itoedr的it学苑
当然随着openstack的模块化功能加强,很多原有功能模块可能进一步模块化
 
        Juju provides easy, intelligent service orchestration on top of environments,such as Amazon EC2, HP Cloud, OpenStack, MaaS, or your own local machine.
        $ juju --help
Basic commands(基础命令):
  juju init             generate boilerplate configuration for juju environments
  juju bootstrap        start up an environment from scratch

  juju deploy           deploy a new service
  juju add-relation     add a relation between two services
  juju expose           expose a service

  juju help bootstrap   more help on e.g. bootstrap command
  juju help commands    list all commands
  juju help glossary    glossary of terms
  juju help topics      list all help topics

Provider information:
  juju help azure-provider       use on Windows Azure
  juju help ec2-provider         use on Amazon EC2
  juju help hpcloud-provider     use on HP Cloud
  juju help local-provider       use on this computer
  juju help openstack-provider   use on OpenStack


一)juju的管理安装openstack-Dashboard(来源于ubuntu-juju-site:https://jujucharms.com/openstack-dashboard/trusty/9)

Description

The OpenStack Dashboard provides a full feature web interface for interacting with instances, images, volumes and networks within an OpenStack deployment.

Readme

Overview

The OpenStack Dashboard provides a Django based web interface for use by both administrators and users of an OpenStack Cloud.

It allows you to manage Nova, Glance, Cinder and Neutron resources within the cloud.

Usage

The OpenStack Dashboard is deployed and related to keystone:

juju deploy openstack-dashboard
juju add-unit openstack-dashboard keystone

The dashboard will use keystone for user authentication and authorization and to interact with the catalog of services within the cloud.

The dashboard is accessible on:

http(s)://service_unit_address/horizon

At a minimum, the cloud must provide Glance and Nova services.

SSL configuration

To fully secure your dashboard services, you can provide a SSL key and certificate for installation and configuration. These are provided as base64 encoded configuration options::

juju set openstack-dashboard ssl_key="$(base64 my.key)" \
    ssl_cert="$(base64 my.cert)"

The service will be reconfigured to use the supplied information.

High Availability

The OpenStack Dashboard charm supports HA in-conjunction with the hacluster charm:

juju deploy hacluster dashboard-hacluster
juju set openstack-dashboard vip="192.168.1.200"
juju add-relation openstack-dashboard dashboard-hacluster
juju add-unit -n 2 openstack-dashboard

After addition of the extra 2 units completes, the dashboard will be accessible on 192.168.1.200 with full load-balancing across all three units.

Please refer to the charm configuration for full details on all HA config options.

Use with a Load Balancing Proxy

Instead of deploying with the hacluster charm for load balancing, its possible to also deploy the dashboard with load balancing proxy such as HAProxy:

juju deploy haproxy
juju add-relation haproxy openstack-dashboard
juju add-unit -n 2 openstack-dashboard

This option potentially provides better scale-out than using the charm in conjunction with the hacluster charm.

Configuration

ssl_key
(string) Base64 encoded SSL key to use with certificate specified as ssl_cert.
vip_iface
(string) Default network interface to use for HA vip when it cannot be automatically determined.
eth0
neutron-network-vpn
(boolean) Enable neutron vpn service panel
vip
(string) Virtual IP to use to front openstack dashboard ha configuration
neutron-network-firewall
(boolean) Enable neutron firewall service panel
use-syslog
(boolean) By default, all services will log into their corresponding log files. Setting this to True will force all services to log to the syslog.
secret
(string) Secret for Horizon to use when securing internal data; set this when using multiple dashboard units.
ha-mcastport
(int) Default multicast port number that will be used to communicate between HA Cluster nodes.
5410
ha-bindiface
(string) Default network interface on which HA cluster will bind to communication with the other members of the HA Cluster.
eth0
prefer-ipv6
(boolean) If True enables IPv6 support. The charm will expect network interfaces to be configured with an IPv6 address. If set to False (default) IPv4 is expected. . NOTE: these charms do not currently support IPv6 privacy extension. In order for this charm to function correctly, the privacy extension must be disabled and a non-temporary address must be configured/available on your network interface.
nagios_check_http_params
(string) The parameters to pass to the nrpe plugin check_http.
-H localhost -I 127.0.0.1 -u '/' -e 200,301,302
neutron-network-lb
(boolean) Enable neutron load balancer service panel
ubuntu-theme
(string) Use Ubuntu theme for the dashboard.
yes
ssl_cert
(string) Base64 encoded SSL certificate to install and use for API ports. . juju set swift-proxy ssl_cert="$(cat cert | base64)" \ ssl_key="$(cat key | base64)" . Setting this value (and ssl_key) will enable reverse proxying, point Swifts's entry in the Keystone catalog to use https, and override any certficiate and key issued by Keystone (if it is configured to do so).
profile
(string) Default profile for the dashboard. Eg. cisco
default-role
(string) Default role for Horizon operations that will be created in Keystone upon introduction of an identity-service relation.
Member
openstack-origin
(string) Repository from which to install. May be one of the following: distro (default), ppa:somecustom/ppa, a deb url sources entry, or a supported Cloud Archive release pocket. Supported Cloud Archive sources include: cloud:precise-folsom, cloud:precise-folsom/updates, cloud:precise-folsom/staging, cloud:precise-folsom/proposed. Note that updating this setting to a source that is known to provide a later version of OpenStack will trigger a software upgrade.
distro
vip_cidr
(int) Default CIDR netmask to use for HA vip when it cannot be automatically determined.
24
nagios_context
(string) Used by the nrpe-external-master subordinate charm. A string that will be prepended to instance name to set the host name in nagios. So for instance the hostname would be something like: juju-postgresql-0 If you're running multiple environments with the same services in them this allows you to differentiate between them.
juju
webroot
(string) Directory where application will be accessible, relative to http://$hostname/.
/horizon
debug
(string) Show Django debug messages.
no
offline-compression
(string) Use pre-generated Less compiled JS and CSS.
yes
  评论这张
 
阅读(169)| 评论(0)
推荐 转载

历史上的今天

在LOFTER的更多文章

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017