以下是 9 個節點邊緣安裝作業的完整靜音設定檔範例。視需要編輯這項設定。使用 -f
選項 setup.sh
即可納入這個檔案。如需各個拓撲專屬的設定檔範例,請參閱安裝 Edge 元件。
# IP address or DNS name of nodes. IP1=192.168.1.1 # Management Server, OpenLDAP, UI, ZooKeeper, Cassandra (IP address only; do not use a DNS name) IP2=192.168.1.2 # ZooKeeper, Cassandra (IP address only; do not use a DNS name) IP3=192.168.1.3 # ZooKeeper, Cassandra (IP address only; do not use a DNS name) 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) # Specify "y" to check that the system meets the CPU and memory requirements # for the component being installed. See Installation Requirements for requirements # for each component. The default value is "n" to disable check. ENABLE_SYSTEM_CHECK=n # When "hostname -i" returns multiple IP addresses, # set to "y", to have the installer prompt you to select the IP address to use. ENABLE_DYNAMIC_HOSTIP=n # 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. # 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. # If you are using region names other than dc-1, dc-2 etc, set this property to map your region # name to the appropriate dc-x format region name. This property is required by Management server # to appropriately register Cassandra data stores based on Cassandra's data centers and regions. REGION_MAPPING="<custom-region-1>:dc-1 <custom-region-2>:dc-2 ... <custom-region-x>:dc-x" # 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. # Space-separated IP addresses of the Cassandra hosts (previously defined; do not use DNS names) # Syntax is: IP_address:host_number,rack_number 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='' # Postgres username and password as set when you installed Edge. # Default is apigee:postgres. PG_USER=apigee PG_PWD=postgres # Use to enable Postgres master-standby replication # when you have multiple Postgres nodes. # PG_MASTER=IPofNewMaster # PG_STANDBY=IPofOldMaster # 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. SMTPMAILFROM="My Company <myco@company.com>" # The following four properties are only effective for Management server: # Cassandra JMX uname/pword required if you enabled Cassandra JMX authentication. # CASS_JMX_USERNAME = # CASS_JMX_PASSWORD = # Cassandra JMX SSL truststore details if you have enabled SSL based JMX in Cassandra. # JMX Truststore file should be readable by Apigee user # CASS_JMX_TRUSTSTORE = # CASS_JMX_TRUSTSTORE_PASS =
下表提供這些屬性的其他資訊:
屬性 | 注意事項 |
---|---|
IP/DNS 名稱 | 指定節點 IP 位址時,請勿使用主機名稱 127.0.0.1 或 IP 位址 127.0.0.1。 請注意,如為 Cassandra 主機定義,請只使用 IP 位址;請勿使用 DNS 名稱。 |
ENABLE_SYSTEM_CHECK |
如為「y」,請確認系統符合所安裝元件的 CPU 和記憶體需求。請參閱安裝規定,瞭解每個元件的需求。 預設值為「n」以停用檢查功能。 |
ENABLE_DYNAMIC_HOSTIP |
如果伺服器有多個介面卡,「hostname -i」指令會傳回以空格分隔的 IP 位址清單,根據預設,Edge 安裝程式會使用第一個傳回的 IP 位址,在某些情況下,可能不盡正確。或者,您可以在安裝設定檔中設定下列屬性。 設為「y」時,安裝程式會提示您選取要用於安裝作業的 IP 位址。預設值為「n」。 |
ADMIN_EMAIL APIGEE_ADMINPW
|
系統管理員的密碼至少須有 8 個字元,包含一個大寫字母、一個小寫英文字母、一個數字或一個特殊字元。如果您略過密碼,系統會提示您輸入密碼。 安裝完成後,Apigee 建議您從設定檔中移除密碼。 |
LICENSE_FILE |
授權檔案的位置,只有「Apigee」使用者才能存取。例如,將憑證儲存在 /tmp 目錄中,並將 chmod 777 儲存在檔案中。系統會將檔案複製到 Edge 安裝目錄。 |
APIGEE_LDAPPW |
指定 OpenLDAP 密碼。 安裝完成後,Apigee 建議您從設定檔中移除密碼。 |
USE_LDAP_REMOTE_HOST |
如果 如要連線至遠端 LDAP 伺服器,請將 如要連線至遠端的 LDAPLDAP 伺服器,請使用 |
LDAP_TYPE LDAP_SID LDAP_PEER
|
請為 OpenLDAP 設定 如果您的 Edge 拓撲使用單一 OpenLDAP 伺服器,請指定 1。如果您的 Edge 安裝作業使用多個 OpenLDAP 節點 (例如在 13 節點的實際工作環境安裝中),請指定 2。 如果啟用複製功能,請設定下列屬性:
|
MP_POD |
指定訊息處理器和路由器 Pod 的名稱。根據預設,名稱是閘道。 |
REGION |
區域名稱。按照慣例,名稱通常採用 dc-# 格式,其中 # 可對應至整數值。例如 dc-1、dc-2 等。您可以使用 dc-1 代碼, 但不要再安裝在多資料中心資料中心環境中。 在安裝多個資料中心的情況下,視您安裝的資料中心而定,這個值會是 dc-1 或 dc-2 等。不過,您不能使用「dc-#」格式的名稱。 您可以使用任何名稱。 |
REGION_MAPPING |
如果您使用的是 dc-1、dc-2 以外的區域名稱,請設定這個屬性,將區域名稱對應至適當的 dc-x 格式區域名稱。 管理伺服器需要這項屬性,才能根據 Cassandra 的資料中心和區域,適當地註冊 Cassandra 資料儲存庫。 |
ZK_HOSTS |
ZooKeeper 節點的 IP 位址或 DNS 名稱。在所有 ZooKeeper 節點中,都必須依照相同的順序列出 IP 位址或 DNS 名稱。 請使用與 在多資料中心環境中,則從兩個資料中心列出所有 ZooKeeper 節點。 如安裝 12 主機一樣,僅在建立多個資料中心時指定 ZooKeeper 節點上的「:observer」修飾符。在單一資料中心安裝中,請省略該修飾詞。詳情請參閱「12 個主機叢集安裝」。 |
ZK_CLIENT_HOSTS |
這個資料中心使用的 ZooKeeper 節點的 IP 位址或 DNS 名稱。所有 ZooKeeper 節點中的順序都必須包含相同的 IP 位址或 DNS 名稱。 請使用與 在單一資料中心安裝中,這些節點與 在多資料中心環境中,只列出這個資料中心的 ZooKeeper 節點。詳情請參閱「12 個主機叢集安裝」。 |
CASS_CLUSTERNAME |
您可以選擇指定 Cassandra 叢集的名稱。預設名稱為「Apigee」。 |
CASS_HOSTS |
指定以半形逗號分隔的 Cassandra 節點主機 IP 位址 (而非 DNS 名稱) 清單,並且選擇性指定資料中心編號和這些節點的機架。 如為實際工作環境拓撲,這份清單中至少須有三個節點。前兩個節點會用作「種子伺服器」。因此,所有 IP 節點必須以相同的順序列出 IP 位址。 清單中的每個項目語法如下: IP_address[:data_center_number,rack_number] Cassandra 節點可選擇性指定 Cassandra 節點的資料中心和機架。如第 12 個主機安裝中所述,建立多個資料中心時僅指定 data_center_number 修飾符。安裝單一資料中心時,請省略該修飾符。 例如「192.168.124.201:1,1 = datacenter 1 和 機架/可用性區域 1」,以及「192.168.124.204:2,1 = 資料中心 2」和「機架/可用性區域」1。 在多資料中心環境中,您必須按順序排序 如要瞭解如何指定 Cassandra 主機的 rack_number,請參閱「新增 Cassandra 機架支援」。 |
CASS_AUTH CASS_USERNAME CASS_PASSWORD
|
如果您啟用 Cassandra 驗證 (CASS_AUTH=y),可以使用這些屬性傳遞 Cassandra 使用者名稱和密碼。 安裝完成後,Apigee 建議您從設定檔中移除密碼。 |
CONFIG_DELTA_LOG
|
|
PG_USER PG_PWD |
根據預設,PostgreSQL 資料庫定義了兩個使用者:「postgres」和「Apigee」。
根據預設,PostgreSQL 資料庫定義了兩個使用者:「postgres」和「Apigee」。每位使用者都有預設密碼「postgres」。使用 安裝完成後,Apigee 建議您從設定檔中移除密碼。 |
PG_MASTER PG_STANDBY
|
設定為啟用 Postgres 主要待命複製功能,格式如下: PG_MASTER=IPofNewMaster PG_STANDBY=IPofOldMaster |
SKIP_SMTP SMTPHOST SMTPUSER SMTPPASSWORD SMTPSSL SMTPPORT SMTPMAILFROM
|
設定 SMTP,讓 Edge 可以在遺失密碼和其他通知時傳送電子郵件。 如果不需要 SMTP 使用者憑證,請省略 「 |
CASS_JMX_USERNAME |
Cassandra JMX 使用者名稱。如果您已啟用 Cassandra JMX 驗證,則為必填欄位。 |
CASS_JMX_PASSWORD |
Cassandra JMX 密碼。如果您已啟用 Cassandra JMX 驗證,則為必填欄位。 |
CASS_JMX_TRUSTSTORE |
如果您已在 Cassandra 中啟用 SSL JMX,則 Cassandra JMX SSLTruststore 使用者名稱。 Apigee 使用者應能讀取 JMX Truststore 檔案。 |
CASS_JMX_TRUSTSTORE_PASS |
如果您已在 Cassandra 中啟用 SSL JMX,則 Cassandra JMX SSLTruststore 密碼。 |
除了此處列出的屬性外,還有其他設定 Apigee mTLS 的屬性。詳情請參閱「設定 Apigee mTLS」。