以下是 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=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. 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 = # Set up username and password to access Qpid broker's management console QPID_MGMT_USERNAME=qpid QPID_MGMT_PASSWORD=pass1234
下表包含這些屬性的其他資訊:
屬性 | 注意事項 |
---|---|
IP/DNS 名稱 | 指定節點的 IP 位址時,請勿使用主機名稱對應 127.0.0.1 或 127.0.0.1 的 IP 位址。 請注意,如果是 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 伺服器,請將 如要連線至遠端 OpenLDAP 伺服器,請使用 |
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-1 或 dc-2 等,視您所安裝的資料中心而定。不過,您並非只使用 dc-# 形式的名稱。您可以為該區域使用任意名稱。 |
REGION_MAPPING |
如果您使用 dc-1、dc-2 等以外的區域名稱,請設定這項屬性,以將區域名稱對應到適當的 dc-x 格式區域名稱。管理伺服器必須提供這項屬性,才能依據 Cassandra 的資料中心和區域正確註冊 Cassandra 資料儲存庫。 |
ZK_HOSTS |
ZooKeeper 節點的 IP 位址或 DNS 名稱。IP 位址或 DNS 名稱必須以所有 ZooKeeper 節點的順序列出。 請使用與 在多資料中心環境中,列出兩個資料中心的所有 ZooKeeper 節點。 如先前安裝的 12 主機所述,只有在建立多個資料中心時,才需要在 ZooKeeper 節點上指定「":observer」修飾符。在單一資料中心安裝作業中,請省略該修飾符。詳情請參閱「12 主機叢集安裝」。 |
ZK_CLIENT_HOSTS |
這個資料中心使用的 ZooKeeper 節點 IP 位址或 DNS 名稱。IP 位址或 DNS 名稱必須以所有 ZooKeeper 節點的順序列出。 請使用與 在安裝單一資料中心時,這些節點與 在多資料中心環境中,請只列出這個資料中心的 ZooKeeper 節點。詳情請參閱「12 主機叢集安裝」。 |
CASS_CLUSTERNAME |
視需要指定 Cassandra 叢集的名稱。預設名稱為「Apigee」。 |
CASS_HOSTS |
指定以半形逗號分隔的 Cassandra 節點主機 IP 位址清單 (非 DNS 名稱),並視需要指定其資料中心編號和機架。 如果是實際工作環境拓撲,這份清單中至少須有三個節點。前兩個節點會用做「種子伺服器」。因此,IP 位址必須按照所有 Cassandra 節點的順序列出。 清單中的每個項目的語法如下: IP_address[:data_center_number,rack_number] Cassandra 節點可選擇指定 Cassandra 節點的資料中心和機架。只有在建立多個資料中心時,才能按照 12 主機安裝作業所述,指定 data_center_number 修飾符。在單一資料中心安裝作業中,請省略該修飾符。 例如「192.168.124.201:1,1 = 資料中心 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=IPorDNSofNewMaster PG_STANDBY=IPorDNSofOldMaster |
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 SSL 信任儲存庫使用者名稱。 Apigee 使用者應可讀取 JMX Truststore 檔案。 |
CASS_JMX_TRUSTSTORE_PASS |
如果您已在 Cassandra 中啟用 SSL 型 JMX,Cassandra JMX SSL 信任儲存庫密碼。 |
QPID_MGMT_USERNAME QPID_MGMT_PASSWORD
|
這些憑證可用來存取 Qpid 代理程式的 Qpid 網路管理控制台。 Web Management Console 提供簡單直覺的介面,方便您管理及控管 Qpid 代理程式。 |
除了此處列出的屬性之外,您也可以使用其他屬性設定 Apigee mTLS。詳情請參閱「設定 Apigee mTLS」一文。