Edge for Private Cloud 4.17.01 版
以下範例顯示 9 節點 Edge 安裝作業的完整靜音設定檔。請視設定需要編輯這個檔案。使用 setup.sh 的 -f 選項,加入這個檔案。下方也提供各 Edge 拓撲的設定檔範例。
# IP address or DNS name of nodes. IP1=192.168.1.1 # Management Server, OpenLDAP, UI, ZooKeeper, Cassandra IP2=192.168.1.2 # ZooKeeper, Cassandra IP3=192.168.1.3 # ZooKeeper, Cassandra IP4=192.168.1.4 # Router, Message Processor IP5=192.168.1.5 # Router, Message Processor IP6=192.168.1.6 # Qpid IP7=192.168.1.7 # Qpid IP8=192.168.1.8 # Postgres IP9=192.168.1.9 # Postgres # Must resolve to IP address or DNS name of host - not to 127.0.0.1 or localhost. HOSTIP=$(hostname -i) # Set Edge sys admin credentials. ADMIN_EMAIL=your@email.com APIGEE_ADMINPW=yourPassword # If omitted, you are prompted for it. # Location of Edge license file. LICENSE_FILE=/tmp/license.txt # Management Server information. MSIP=$IP1 # IP or DNS name of Management Server node. # Specify the port the Management Server listens on for API calls. # APIGEE_PORT_HTTP_MS=8080 # Default is 8080. # # OpenLDAP information. # # Set to y if you are connecting to a remote LDAP server. # If n, Edge installs OpenLDAP when it installs the Management Server. USE_LDAP_REMOTE_HOST=n # If connecting to remote OpenLDAP server, specify the IP/DNS name and port. # LDAP_HOST=$IP1 # IP or DNS name of OpenLDAP node. # LDAP_PORT=10389 # Default is 10389. APIGEE_LDAPPW=yourLdapPassword # Specify OpenLDAP without replication, 1, or with replication, 2. LDAP_TYPE=1 # Set only if using replication. # LDAP_SID=1 # Unique ID for this LDAP server. # LDAP_PEER= # IP or DNS name of LDAP peer. BIND_ON_ALL_INTERFACES=y # The Message Processor and Router pod. MP_POD=gateway # The name of the region, corresponding to the data center name. REGION=dc-1 # Use dc-1 unless installing in a # multi-data center environment. # ZooKeeper information. # See table below if installing in a multi-data center environment. ZK_HOSTS="$IP1 $IP2 $IP3" # IP/DNS names of all ZooKeeper nodes. ZK_CLIENT_HOSTS="$IP1 $IP2 $IP3" # IP/DNS names of all ZooKeeper nodes. # Cassandra information. CASS_CLUSTERNAME=Apigee # Default name is Apigee. # IP addresses (not DNS names) of the Cassandra hosts separated by spaces. CASS_HOSTS="$IP1:1,1 $IP2:1,1 $IP3:1,1" # Set to enable Cassandra authentication. # CASS_AUTH=y # The default value is n. # Cassandra uname/pword required if you enabled Cassandra authentication. # CASS_USERNAME= # CASS_PASSWORD= # Set Postgres password. Default is postgres. PG_PWD=postgres # Use to enable Postgres master-standby replication # when you have multiple Postgres nodes. # PG_MASTER=IPorDNSofNewMaster # PG_STANDBY=IPorDNSofOldMaster # SMTP information. SKIP_SMTP=n # Skip now and configure later by specifying "y". SMTPHOST=smtp.gmail.com SMTPUSER=your@email.com SMTPPASSWORD=yourEmailPassword SMTPSSL=y SMTPPORT=465 # If no SSL, use a different port, such as 25.
下表提供這些屬性的其他資訊:
|
屬性 |
注意事項 |
|---|---|
|
IP/DNS 名稱 |
指定節點的 IP 位址時,請勿使用對應至 127.0.0.1 的主機名稱或 127.0.0.1 的 IP 位址。 |
|
ADMIN_EMAIL |
系統管理員密碼長度至少須為 8 個字元,且須包含一個大寫字母、一個小寫字母、一個數字或一個特殊字元。如果省略密碼,系統會提示您輸入。 |
|
LICENSE_FILE |
授權檔案的位置,必須可供「apigee」使用者存取。 例如,將檔案儲存在 /tmp 目錄中,並在檔案上執行 chmod 777。檔案會複製到 Edge 安裝目錄。 |
| APIGEE_LDAPPW |
指定 OpenLDAP 密碼。 |
|
USE_LDAP_REMOTE_HOST |
如果 USE_LDAP_REMOTE_HOST 為 n,Edge 會在安裝管理伺服器時自動安裝 OpenLDAP。 如果您要連線至遠端 LDAP 伺服器,請將 USE_LDAP_REMOTE_HOST 設為 y。OpenLDAP 不會與管理伺服器一起安裝。 如要連線至遠端 OpenLDAP 伺服器,請使用 LDAP_HOST |
|
LDAP_TYPE |
如果 OpenLDAP 沒有複製功能,請將 LDAP_TYPE 設為 1。LDAP_TYPE=2 對應至 OpenLDAP (含複製功能)。 如果 Edge 拓撲使用單一 OpenLDAP 伺服器,請指定 1。如果 Edge 安裝作業使用多個 OpenLDAP 節點 (例如 13 節點正式版安裝作業),請指定 2。 如要啟用複製功能,請設定下列屬性:
|
|
BIND_ON_ALL_INTERFACES |
如果設為「y」,路由器/訊息處理器會繫結 (監聽) 所有介面 (IP)。 如果設為「n」,路由器/訊息處理器會繫結 (監聽) 特定介面,即「hostname -i」指令傳回的 IP。 |
|
MP_POD |
指定訊息處理器和路由器 Pod 的名稱。預設名稱為 gateway。 |
|
REGION |
區域名稱。按照慣例,名稱通常採用 dc-# 格式,其中 # 對應至整數值。例如 dc-1、dc-2 等。除非是在多資料中心環境中安裝,否則可以使用 dc-1。 在多個資料中心安裝作業中,這個值會是 dc-1 或 dc-2 等,視您安裝的資料中心而定。不過,您不限於使用 dc-# 格式的名稱,可以為區域使用任何名稱。 |
|
ZK_HOSTS |
ZooKeeper 節點的 IP 位址或 DNS 名稱。所有 ZooKeeper 節點上的 IP 位址或 DNS 名稱,都必須以相同順序列出。 在多資料中心環境中,請列出兩個資料中心的所有 ZooKeeper 節點。 只有在建立多個資料中心時 (如 12 主機安裝所述),才在 ZooKeeper 節點上指定「:observer」修飾符。在單一資料中心安裝時,請省略該修飾符。 |
|
ZK_CLIENT_HOSTS |
這個資料中心使用的 ZooKeeper 節點 IP 位址或 DNS 名稱。所有 ZooKeeper 節點上的 IP 位址或 DNS 名稱必須以相同順序列出。 在單一資料中心安裝中,這些節點與 ZK_HOSTS 指定的節點相同。 在多資料中心環境中,請僅列出這個資料中心內的 ZooKeeper 節點。 |
| CASS_CLUSTERNAME | (選用) 指定 Cassandra 叢集的名稱。預設名稱為「Apigee」。 |
|
CASS_HOSTS |
Cassandra 節點的 IP 位址 (而非 DNS 名稱)。前兩個節點會做為種子伺服器。所有 Cassandra 節點上的 IP 位址都必須按照相同順序列出。 Cassandra 節點可以有選用的「:dc,ra」後置字串,用於指定 Cassandra 節點的資料中心和機架。只有在建立多個資料中心時 (如 12 主機安裝所述),才需要指定這個修飾符。在單一資料中心安裝時,請省略該修飾符。 例如「192.168.124.201:1,1」= 資料中心 1 和機架/可用區 1,以及「192.168.124.204:2,1」= 資料中心 2 和機架/可用區 1。 在多資料中心環境中,為克服防火牆問題,CASS_HOSTS 必須按照特定方式排序 (如上例所示),將目前資料中心的節點放在開頭。 |
|
CASS_AUTH CASS_PASSWORD |
如果啟用 Cassandra 驗證 (CASS_AUTH=y),您可以使用這些屬性傳遞 Cassandra 使用者名稱和密碼。 |
| PG_PWD |
根據預設,PostgreSQL 資料庫定義了兩個使用者:「postgres」和「apigee」。兩位使用者的預設密碼都是「postgres」。使用 PG_PWD,在安裝時為兩位使用者設定不同的密碼。 |
|
PG_MASTER PG_STANDBY |
設定為啟用 Postgres 主從式複製,格式如下: PG_MASTER=IPorDNSofNewMaster PG_STANDBY=IPorDNSofOldMaster |
|
SKIP_SMTP |
設定 SMTP,讓 Edge 傳送密碼遺失和其他通知的電子郵件。 如果不需要 SMTP 使用者憑證,請省略 SMTPUSER 和 SMTPPASSWORD。 |