1 Star 0 Fork 17

freehu / ansible-jumpserver

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

ansible-jumpserver

介绍

使用 Ansible 自动化部署软堡垒机 jumpserver

软件架构

目前只支持单机部署。Redis 和数据库可以使用外部连接。

测试通过

系统/软件 版本
Ubuntu xenial
CentOS 7
Ansible 2.7.5
python 3.6

安装教程

准备前
  1. 更新你的目标机系统。
  2. 执行 sh bootstrap-ansible.sh,安装 ansible。
修改 hosts 和 group_vars

编辑 hosts.ini,就修改 jms 的连接信息就好了。

$ cp hosts_example.ini hosts.ini
$ vi hosts.ini

编辑 group_vars/all.yml,主要是 jms_zone 的名称,用于识别目标区(例如不同的机房或网域)。

初次部署

可以直接执行 ansible-playbook play-all.yml 完成。

分步部署
  1. 在 vars 目录下找到同名变量文件,例如 00-init.yml 对应的变量配置在 vars/init.yml 下,按实际需求修改。
  2. 在 templates 目录下找到同名子目录,编辑对应的模板文件。例如 00-init.yml 对应的模板文件存放在 templates/init 目录下。
  3. 用 ansible-playbook 命令执行对应的 playbook 即可。例如 ansible-playbook 00-init.yml
  4. 对变量和模板的内容不理解的,请参考 官方文档 的说明。

使用说明

  1. 部署过程中生成的密码都存放在 credentials 目录下。
  2. Jumpserver 管理文档
  3. Jumpserver 用户使用文档

参与贡献

  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/
The MIT License (MIT) Copyright (c) 2019 乞丐亦异 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

使用 Ansible 自动化部署软堡垒机 jumpserver 展开 收起
Python
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
Python
1
https://gitee.com/freehu/ansible-jumpserver.git
git@gitee.com:freehu/ansible-jumpserver.git
freehu
ansible-jumpserver
ansible-jumpserver
master

搜索帮助