Oncall 说明
Oncall is a calendar tool designed for scheduling and managing on-call shifts. It can be used as source of dynamic ownership info for paging systems like http://iris.claims. http://oncall.tools
Github 地址
安装 Oncall
Prerequisites
- Debian/Ubuntu - sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev python-pip python-setuptools mysql-server mysql-client
为了保证安装速度,请将pip
源设置为国内,例如 豆瓣
git clone https://github.com/linkedin/oncall.git
cd oncall && pip install -e .
pip install -e '.[dev]'
设置数据库
mysql -u root -p < ./db/schema.v0.sql
# 正式环境可以不用导入测试用户数据
# mysql -u root -p -o oncall < ./db/dummy_data.sql
运行
oncall-dev ./configs/config.yaml
配置 LDAP
auth:
debug: False
# module: 'oncall.auth.modules.debug' # Auth module where Authenticator is implemented
# # Example configuration for LDAP-based auth
# # module: 'oncall.auth.modules.ldap_example'
module: 'oncall.auth.modules.ldap_import' # for automatically import user at first connexion
ldap_url: 'ldap://10.0.0.121'
ldap_user_suffix: '@xxxxx.xx'
# ldap_cert_path: '/etc/ldap_cert.pem'
ldap_bind_user: 'cn=admin,dc=xxxx,dc=xxxx'
ldap_bind_password: 'xxxx'
ldap_base_dn: 'dc=,dc=xxx'
ldap_search_filter: '(uid=%s)'
# options used by the ldap_import module.
import_user: True
attrs:
username: 'cn'
full_name: 'uid'
call: 'telephoneNumber'
sms: 'telephoneNumber'
email: 'mail'