以下是 9 個節點 Edge 安裝作業的完整靜默設定檔範例。視需要編輯這個檔案以設定參數。使用 -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=Apigee1234 # FIPS_OS should be set to true when OPDK 4.53 or later is installed on # FIPS enabled operating system FIPS_OS=false
下表包含這些屬性的其他資訊:
屬性 | 注意事項 |
---|---|
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」時,安裝程式會提示您選取要用於 安裝。預設值為「n」。 |
ADMIN_EMAIL APIGEE_ADMINPW
|
系統管理員的密碼至少要有 8 個字元,且包含 1 個 大寫英文字母、1 個小寫英文字母、1 個數字或一個特殊字元。如果您省略密碼,系統會提示您輸入密碼。 安裝完成後,Apigee 建議您從 設定檔 |
LICENSE_FILE |
授權檔案的位置,必須可存取「apigee」內容。 例如,將檔案儲存在 /tmp 目錄中,並為檔案設定 chmod 777。檔案會複製到 Edge 安裝目錄。 |
APIGEE_LDAPPW |
指定 OpenLDAP 密碼。 安裝完成後,Apigee 建議您從 設定檔 |
USE_LDAP_REMOTE_HOST |
如果 如果您符合條件,請將 如要連線至遠端 OpenLDAP 伺服器,請使用 |
LDAP_TYPE LDAP_SID LDAP_PEER
|
將 如果 Edge 拓撲使用單一 OpenLDAP 伺服器,請指定 1。如果你有邊緣 安裝作業會使用多個 OpenLDAP 節點,例如在安裝 13 個節點的實際工作環境安裝時, 請指定 2。 如果啟用複製功能,請設定下列屬性:
|
MP_POD |
指定訊息處理器和路由器 Pod 的名稱。預設名稱為 另外兩條通道則會從另一個 AWS 虛擬私有閘道 通往高可用性 VPN 閘道的另一個介面 |
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 名稱。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 位址必須列在 順序。 清單中每個項目的語法如下: IP_address[:data_center_number,rack_number] Cassandra 節點可選擇指定 Cassandra 節點的資料中心和機架。 請僅在建立多個資料中心時指定 data_center_number 修飾符,如 12 主機安裝程序所述。在單一資料中心安裝作業中,請省略該修飾符。 例如 '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 JMX SSL 信任庫密碼 (如果您已在 Cassandra 中啟用 SSL 的 JMX)。 |
QPID_MGMT_USERNAME QPID_MGMT_PASSWORD
|
這些憑證可讓您存取 Qpid 代理程式的 Qpid 網路管理控制台。 Web 管理主控台提供簡單直覺的介面,可用於管理及控制 Qpid 中介軟體。 |
FIPS_OS |
FIPS_OS 可以是 true 或 false,預設值為 false。在支援 FIPS 的作業系統上,將 Edge for Private Cloud 4.53.00 以上版本的值設為 true。 |
除了這裡列出的屬性之外,還有用於設定 Apigee mTLS 的屬性。詳情請參閱「設定 Apigee mTLS」。