配置文件 (AEN 4.1.2)
服务配置文件的默认位置是:
- server:
/opt/wakari/wakari-server/etc/wakari/config.json
- gateway:
/opt/wakari/wakari-gateway/etc/wakari/config.json
- compute:
/opt/wakari/wakari-compute/etc/wakari/config.json
对于每一个这些,一个额外的服务特定的配置文件可能会选择性地或替代性地存在:
- server:
/opt/wakari/wakari-server/etc/wakari/wk-server-config.json
- gateway:
/opt/wakari/wakari-gateway/etc/wakari/wk-gateway-config.json
- compute:
/opt/wakari/wakari-compute/etc/wakari/wk-compute-config.json
每个服务将按以下顺序加载所有配置文件,并在每一步更新配置:
/etc/wakari/config.json
/etc/wakari/wk-gateway-config.json
/opt/wakari/wakari-SERVICE/etc/wakari/config.json
/opt/wakari/wakari-SERVICE/etc/wakari/wk-SERVICE-config.json
./config.json
./wk-gateway-config.json
有关更多信息,请参阅下面支持配置键的列表。
Server Configuration Keys
Key |
Default |
Description |
WAKARI_SERVER |
|
URL of this Anaconda Enterprise Notebooks server |
DEFAULT _PRIVACY |
public |
Default project privacy setting: either public or private |
SESSION _COOKIE_NAME |
wakari .enterprise.session |
Cookie name used to maintain Anaconda Enterprise Notebooks Enterprise login sessions |
USE_SES |
false |
Use Amazon SES to send emails |
SMTP |
|
SMTP email settings. See subkeys below. |
- host |
|
SMTP mail server hostname |
- user |
|
username for SMTP server authentication |
- password |
|
password for SMTP server authentication |
- from_addr |
|
From address for emails sent through SMTP |
verify _gateway _certificate |
true |
Boolean indicating whether the server should verify the gateway SSL certificate |
accounts |
wk_server.plugins .accounts.cloud |
Account provider class. Set to wk_server.plugins .accounts.ldap_accounts for LDAP. |
uniqueEmail |
true |
Boolean indicating whether unique user email addresses are required |
LDAP |
389 |
LDAP Configurations |
- SERVER |
|
List of LDAP servers. At least one server name must be listed. The primary server should be listed first. All secondary or fail-over servers should be list next. |
- PORT |
389 |
The LDAP port on the LDAP server |
- AUTH_TYPE |
|
LDAP Authentication types: simple : no encryption not secure or TLS : encrypted secure requires the TLS_CERT to be set. |
- TLS_CERT |
|
Full path to the TLS certificate file. The cert file must also be provided by the Enterprise |
- BASEDN |
|
The LDAP Base DN value |
- OU |
|
List of Organizational Units. Some Enterprises group users by OUs in their LDAP server records. Anaconda Enterprise Notebooks will loop over the list of OUs when authenticating a user. The OU value is a list of lists to support multiple OUs where each OU is a single name or a hierarchy of names. |
- ANON_USER |
|
Username such as public or anonymous for users who are not logged in to access projects as described in Sudo 配置. Also used for MongoDB 配置. |
SEARCH_ENABLED |
true |
Boolean indicating whether ElasticSearch is enabled |
SEARCH_SERVER |
'localhost:9200' |
IP address or domain name and port of ElasticSearch server |
Gateway Configuration Keys
Key |
Default |
Description |
WAKARI_SERVER |
|
URL of Anaconda Enterprise Notebooks WAKARI_SERVER |
port |
8089 |
Port number used by the gateway application. Must be a non-privileged port (>= 1024) |
client_id |
|
Client ID assigned to this gateway by the server during wk-gateway-configure |
client_secret |
|
Client secret assigned to this gateway by the server during wk-gateway-configure |
httpTimeout |
600 |
Timeout in seconds. Default is 10 minutes to allow project creation. |
Compute Node Configuration Keys
Key |
Default |
Description |
WAKARI_SERVER |
|
URL of Anaconda Enterprise Notebooks WAKARI_SERVER |
MANAGE _ACCOUNTS |
true |
Boolean indicating whether Anaconda Enterprise Notebooks should manage system user accounts. Set to false for LDAP installations |
port |
2227 |
Port number used by the compute-launcher application. Note that individual applications use dynamic ports |
projectRoot |
/projects |
Location of project file storage |
appIdleTime |
172800000 (48 hours) |
Idle time before applications will be auto-terminated (in msec) |
idleCheckInterval |
3600000 (1 hour) |
Frequency of idle checks |
numericUsernames |
false |
Boolean indicating whether numeric usernames are permitted |
httpTimeout |
600 |
Timeout in seconds. Default is 10 minutes to allow project creation. |
- ANON_USER |
|
Username such as public or anonymous for users who are not logged in to access projects as described in Sudo 配置. Also used for MongoDB 配置. |
Server Unsupported Configuration Keys - Do not change
Key |
Default |
Description |
CDN |
$WAKARI_SERVER/static/ |
Location of static assets |
MONGO_DB |
wakari |
Name of Anaconda Enterprise Notebooks database in mongodb |
MONGO_URL |
mongodb://localhost/ |
URL of server’s mongodb instance |
PROVIDERS |
["wk_server.plugins .providers.enterprise"] |
List of compute provider classes |
LOGFILE |
/opt/wakari/wakari-server/ var/log/wakari/ wakari-server.application.log |
Path to server log file |
MONGO_ACTION _LOG_SIZE |
262144000 |
Size of Mongo action log in bytes |
SITE_ADMINS |
|
List of site administrator email addresses. Used for crash notifications and LDAP password reset requests |
FROM _EMAIL_ADDR |
|
From address for notification emails sent by Anaconda Enterprise Notebooks |
uniqueUserName |
true |
Boolean indicating whether unique usernames are required |
Gateway Unsupported Configuration Keys - Do not change
Key |
Default |
Description |
CDN |
$WAKARI_SERVER/static/ |
Location of static assets |
SUBDOMAIN_ROUTING |
false |
Boolean indicating whether subdomains are being used |
Compute Node Unsupported Configuration Keys - Do not change
Key |
Default |
Description |
CDN |
$WAKARI_SERVER/static/ |
Location of static assets |
USE_SES |
false |
Use Amazon SES to send emails |
multiUser |
true |
Boolean indicating whether multi-user support is enabled |
multi-project |
true |
Boolean indicating whether multi-project support is enabled |
ANACONDA_ROOT |
/opt/wakari/anaconda |
Location of Anaconda installation |
logLevel |
debug |
Log verbosity. One of: ‘error’ ‘warn’ ‘info’ ‘debug’ |
appLogs |
/opt/wakari/wakari-compute/ var/log/wakari/compute-launcher-apps |
Directory where application logs will be stored |
appPIDs |
/opt/wakari/wakari-compute/ var/run/compute-launcher-apps |
Directory where application PID files will be stored |
applicationLog |
/opt/wakari/wakari-compute/ var/log/wakari/ compute-launcher.application.log |
Path to compute launcher log |
accessLog |
opt/wakari/wakari-compute/ var/log/wakari/ compute-launcher.access.log |
Path to compute launcher access log |
DNS变更
可以更改各种Anaconda Enterprise Notebooks服务的域名,但是需要更新它们的配置文件并重新启动服务。配置文件的位置记录在这里。一旦这些文件被更新,相关的服务需要重新启动。
使用Web界面进入管理员控制面板,然后选择数据中心,接着点击编辑按钮以编辑所有正在更改其基本域名的数据中心的信息。
注意:如果服务端口与默认值不同(HTTP为80,HTTPS为443),则必须包括服务端口。
现在从Admin控制面板进入Enterprise Resources并编辑每个更改了域名的计算节点。这些是包含协议、主机名和端口的URL。
LDAP配置
有关LDAP的更多信息,请参阅
LDAP配置页面。
示例LDAP配置
编辑 /opt/wakari/wakari-server/etc/wakari/wk-server-config.json 文件:
{
"accounts":"wk_server.plugins.accounts.ldap2",
"LDAP" : {
"URI": "ldap://openldap.EXAMPLE.COM",
"BIND_DN": "cn=Bob Jones,ou=Users,DC=EXAMPLE,DC=COM",
"BIND_AUTH": "secretpass",
"USER_SEARCH": {"base": "DC=EXAMPLE,DC=COM",
"filter": "(| (& (ou=Payroll)
(uid=%(username)s))
(& (ou=Facilities)
(uid=%(username)s)))"
},
"KEY_MAP": {"email": "mail",
"name": "cn"
}
}
}