Ansible Tower对接ldap和git仓库

文档参考

centos7.6不支持最新版本,下载的ansible-tower3.6.7
https://releases.ansible.com/ansible-tower/setup/
https://docs.ansible.com/ansible-tower/3.6.7/html/installandreference/tower_install_wizard.html

中文文档参考
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/administration//custom_inventory_script.html
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/userguide/

参考破解部署文档:https://www.jianshu.com/p/9d53d21d2c44

配置ldap

在这里插入图片描述
在这里插入图片描述

ldap配置默认登录组

用于普通用户登录平台查看默认任务(结合工单平台二次开发,自动赋权)
在这里插入图片描述

{
 "xxxxx": {
  "users": true,
  "admins": [
   "cn=users,cn=accounts,dc=xxxxx,dc=com"
  ],
  "remove_users": false,
  "remove_admins": false
 }
}
{
 "common group": {
  "organization": "xxxxx",
  "users": true
 }
}

配置Git SCM凭证

在这里插入图片描述
在这里插入图片描述

日常运维

基础环境

awx(tower)、ansible、pg、memcached、rabbitmq、nginx

最佳实践是使用git来管理playbook

awx管理命令
awx-manage --help
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/administration/tower-manage.html

重启服务
ansible-tower-service restart

项目路径
手动创建的playbook也存储到这个目录下叻
/var/lib/awx/projects

日志目录
/var/log/tower/
/var/log/supervisor/
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/administration/logfiles.html

oauth api认证
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/administration/oauth2_token_auth.html

api接口参考
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/towerapi/api_ref.html#/

集群管理
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/administration/clustering.html

备份与恢复
https://docs.ansible.com/ansible-tower/3.6.4/html_zh/administration/backup_restore.html#ag-clustering-backup-restore

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值