个人工具
104.160.18.24
该IP地址的讨论
登录
查看“UbuntuHelp:UEC/Landscape”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:UEC/Landscape”的源代码
来自Ubuntu中文
←
UbuntuHelp:UEC/Landscape
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/UEC/Landscape}} {{Languages|UbuntuHelp:UEC/Landscape}} #title Using Landscape to Manage UEC == Connecting UEC to Landscape == This page describes how you can connect your UEC cloud to Canonical's Landscape service. == Getting Started == === Landscape account === First of all you need a Landscape account. If you do not have one, you can get a 60-day trial account by registering here: http://www.canonical.com/contact/landscaperegister === Ensure that connectivity is available === * For Landscape to be able to start instances on your cloud, it (landscape.canonical.com) needs to be able to reach the cloud controller on port 443. * For instances to report their status to Landscape, instances need to be able to reach landscape.canonical.com on port 80 and 443. ''Note: if you have a standalone Landscape server (LDS) installed on your network, replace landscape.canonical.com with whathever hostname your LDS can be reached at.'' ==== Connectivity work-around ==== As our firewall does not allow you to pass connections to your cloud controller (CLC) in the clear, the following workaround will allow you to open a connection via an ssl tunel. ===== Using Apache ===== One possible option is to use Apache to proxy SSL connections to Eucalyptus. <ol><li>Get an official SSL certificate from a root-trusted SSL certificate authority (CA). </li><li>Use the Apache mod_ssl instructions from your provider. In the process, you will create a key then you will get a certificate from your CA. You need both files. </li><li>Edit '''/etc/apache2/sites-available/default-ssl''' and change the lines below to reflect the location of your SSL certificate and key:</li></ol> <pre><nowiki> SSLCertificateFile /path/to/your/certificate SSLCertificateKeyFile /path/to/your/key </nowiki></pre> <ol><li>Still in '''/etc/apache2/sites-available/default-ssl''', configure Apache to forward the connections to Eucalyptus but preserving host information (add this to</li></ol> <pre><nowiki> ProxyPreserveHost On RewriteEngine on RewriteRule ^/(.*) http://localhost:8773/$1 [P] </nowiki></pre> ===== Using stunnel ===== <ol><li>Install stunnel</li></ol> <pre><nowiki> sudo apt-get install stunnel4 </nowiki></pre> <ol><li>Once you have your certificate and you have stunnel installed, you need to combine the two into a pem file called /etc/stunnel/stunnel.pem :</li></ol> <pre><nowiki> cat key.key certificate.cert > /etc/stunnel/stunnel.pem </nowiki></pre> <ol><li>Then do a</li></ol> <pre><nowiki> sudo stunnel -d 443 -r localhost:8773 </nowiki></pre> To make the change persistent across reboots add this to the bottom of /etc/stunnel/stunnel.conf : <pre><nowiki> [Eucalyptus for Landscape] accept = landscape.canonical.com:443 connect = localhost:8773 </nowiki></pre> === Register your cloud with Landscape === In Landscape, click Cloud then Register a new cloud, under Cloud Provider choose Other then use the following URL for your endpoint: <ol><li>Go to your eucarc file and examine the EC2_URL value, alternatively you could do a <code><nowiki>echo $EC2_URL</nowiki></code> (as long as you have included the eucarc in your environment) and note this URL.</li></ol> ''Note: If you followed the above connectivity workaround, you will need to change the port number from 8773 to 443'' <ol><li>Use the Access Key ID and Secret Access Key from your Credentials page on your UEC web interface. </li><li>Click Save and you should be done.</li></ol> [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:UEC/Landscape
。