特殊:Badtitle/NS100: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 ...' |
小无编辑摘要 |
||
第6行: | 第6行: | ||
== Getting Started == | == Getting Started == | ||
=== Landscape account === | === Landscape account === | ||
First of all you need a 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 === | === Ensure that connectivity is available === | ||
* For | * 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 | * 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.'' | ''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 ==== | ==== Connectivity work-around ==== | ||
As our firewall | 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). | <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>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> | </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> | ||
SSLCertificateFile /path/to/your/certificate | <pre><nowiki> | ||
SSLCertificateKeyFile /path/to/your/key | SSLCertificateFile /path/to/your/certificate | ||
<ol><li> | 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> | <pre><nowiki> | ||
第41行: | 第52行: | ||
connect = localhost:8773 | connect = localhost:8773 | ||
</nowiki></pre> | </nowiki></pre> | ||
=== Register your cloud with | === 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: | 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> | <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> |
2010年5月20日 (四) 00:38的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/UEC/Landscape }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/af | • {{#if: UbuntuHelp:UEC/Landscape|Afrikaans| [[::UEC/Landscape/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ar | • {{#if: UbuntuHelp:UEC/Landscape|العربية| [[::UEC/Landscape/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/az | • {{#if: UbuntuHelp:UEC/Landscape|azərbaycanca| [[::UEC/Landscape/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/bcc | • {{#if: UbuntuHelp:UEC/Landscape|جهلسری بلوچی| [[::UEC/Landscape/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/bg | • {{#if: UbuntuHelp:UEC/Landscape|български| [[::UEC/Landscape/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/br | • {{#if: UbuntuHelp:UEC/Landscape|brezhoneg| [[::UEC/Landscape/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ca | • {{#if: UbuntuHelp:UEC/Landscape|català| [[::UEC/Landscape/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/cs | • {{#if: UbuntuHelp:UEC/Landscape|čeština| [[::UEC/Landscape/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/de | • {{#if: UbuntuHelp:UEC/Landscape|Deutsch| [[::UEC/Landscape/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/el | • {{#if: UbuntuHelp:UEC/Landscape|Ελληνικά| [[::UEC/Landscape/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/es | • {{#if: UbuntuHelp:UEC/Landscape|español| [[::UEC/Landscape/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/fa | • {{#if: UbuntuHelp:UEC/Landscape|فارسی| [[::UEC/Landscape/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/fi | • {{#if: UbuntuHelp:UEC/Landscape|suomi| [[::UEC/Landscape/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/fr | • {{#if: UbuntuHelp:UEC/Landscape|français| [[::UEC/Landscape/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/gu | • {{#if: UbuntuHelp:UEC/Landscape|ગુજરાતી| [[::UEC/Landscape/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/he | • {{#if: UbuntuHelp:UEC/Landscape|עברית| [[::UEC/Landscape/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/hu | • {{#if: UbuntuHelp:UEC/Landscape|magyar| [[::UEC/Landscape/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/id | • {{#if: UbuntuHelp:UEC/Landscape|Bahasa Indonesia| [[::UEC/Landscape/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/it | • {{#if: UbuntuHelp:UEC/Landscape|italiano| [[::UEC/Landscape/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ja | • {{#if: UbuntuHelp:UEC/Landscape|日本語| [[::UEC/Landscape/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ko | • {{#if: UbuntuHelp:UEC/Landscape|한국어| [[::UEC/Landscape/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ksh | • {{#if: UbuntuHelp:UEC/Landscape|Ripoarisch| [[::UEC/Landscape/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/mr | • {{#if: UbuntuHelp:UEC/Landscape|मराठी| [[::UEC/Landscape/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ms | • {{#if: UbuntuHelp:UEC/Landscape|Bahasa Melayu| [[::UEC/Landscape/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/nl | • {{#if: UbuntuHelp:UEC/Landscape|Nederlands| [[::UEC/Landscape/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/no | • {{#if: UbuntuHelp:UEC/Landscape|norsk| [[::UEC/Landscape/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/oc | • {{#if: UbuntuHelp:UEC/Landscape|occitan| [[::UEC/Landscape/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/pl | • {{#if: UbuntuHelp:UEC/Landscape|polski| [[::UEC/Landscape/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/pt | • {{#if: UbuntuHelp:UEC/Landscape|português| [[::UEC/Landscape/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ro | • {{#if: UbuntuHelp:UEC/Landscape|română| [[::UEC/Landscape/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/ru | • {{#if: UbuntuHelp:UEC/Landscape|русский| [[::UEC/Landscape/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/si | • {{#if: UbuntuHelp:UEC/Landscape|සිංහල| [[::UEC/Landscape/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/sq | • {{#if: UbuntuHelp:UEC/Landscape|shqip| [[::UEC/Landscape/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/sr | • {{#if: UbuntuHelp:UEC/Landscape|српски / srpski| [[::UEC/Landscape/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/sv | • {{#if: UbuntuHelp:UEC/Landscape|svenska| [[::UEC/Landscape/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/th | • {{#if: UbuntuHelp:UEC/Landscape|ไทย| [[::UEC/Landscape/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/tr | • {{#if: UbuntuHelp:UEC/Landscape|Türkçe| [[::UEC/Landscape/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/vi | • {{#if: UbuntuHelp:UEC/Landscape|Tiếng Việt| [[::UEC/Landscape/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/yue | • {{#if: UbuntuHelp:UEC/Landscape|粵語| [[::UEC/Landscape/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/zh | • {{#if: UbuntuHelp:UEC/Landscape|中文| [[::UEC/Landscape/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/zh-hans | • {{#if: UbuntuHelp:UEC/Landscape|中文(简体)| [[::UEC/Landscape/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:UEC/Landscape | UbuntuHelp:UEC/Landscape | {{#if: | :}}UEC/Landscape}}/zh-hant | • {{#if: UbuntuHelp:UEC/Landscape|中文(繁體)| [[::UEC/Landscape/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:UEC/Landscape|:UEC/Landscape|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :UEC/Landscape/zh | | {{#ifexist: UEC/Landscape/zh | | {{#ifeq: {{#titleparts:UEC/Landscape|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:UEC/Landscape|1|-1|}} | zh | | }}
- 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.
- Get an official SSL certificate from a root-trusted SSL certificate authority (CA).
- 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.
- Edit /etc/apache2/sites-available/default-ssl and change the lines below to reflect the location of your SSL certificate and key:
SSLCertificateFile /path/to/your/certificate SSLCertificateKeyFile /path/to/your/key
- Still in /etc/apache2/sites-available/default-ssl, configure Apache to forward the connections to Eucalyptus but preserving host information (add this to
ProxyPreserveHost On RewriteEngine on RewriteRule ^/(.*) http://localhost:8773/$1 [P]
Using stunnel
- Install stunnel
sudo apt-get install stunnel4
- 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 :
cat key.key certificate.cert > /etc/stunnel/stunnel.pem
- Then do a
sudo stunnel -d 443 -r localhost:8773
To make the change persistent across reboots add this to the bottom of /etc/stunnel/stunnel.conf :
[Eucalyptus for Landscape] accept = landscape.canonical.com:443 connect = localhost:8773
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:
- Go to your eucarc file and examine the EC2_URL value, alternatively you could do a
echo $EC2_URL
(as long as you have included the eucarc in your environment) and note this URL.
Note: If you followed the above connectivity workaround, you will need to change the port number from 8773 to 443
- Use the Access Key ID and Secret Access Key from your Credentials page on your UEC web interface.
- Click Save and you should be done.