DevOps Collection for Ansible
这个Collection
包括:
-
初始化服务器配置:clay_wangzhi.sysinit
-
安装配置 jenkins :clay_wangzhi.jenkins
-
安装配置 mysql 主从:clay_wangzhi.mysql
-
安装配置 tomcat :clay_wangzhi.tomcat
-
安装配置 zabbix :docs
- 安装配置 zabbix-server :dj-wasabi.zabbix-server
- 安装配置 zabbix-proxy :dj-wasabi.zabbix-proxy
- 安装配置 zabbix-agent :dj-wasabi.zabbix-agent
-
安装配置 elk :docs
- 安装配置 elasticsearch :elastic.elasticsearch
- 安装配置 kibana :clay_wangzhi.kibana
- 安装配置 logstash :clay_wangzhi.logstash
- 安装配置 zookeeper :clay_wangzhi.zookeeper
- 安装配置 kafka :clay_wangzhi.kafka
- 安装配置 filebeat :elastic.beats
-
二进制方式 安装配置 kubernetes 集群:https://github.com/easzlab/kubeasz
Usage
Install this collection locally:
ansible-galaxy collection install clay_wangzhi.devops
Then you can use the roles from the collection in your playbooks:
---
- hosts: test
collections:
- clay_wangzhi.devops
roles:
- sysinit
If you want to be more explicit, you can use the fully-qualified role name when referring to a role in this collection, like
clay_wangzhi.devops.sysinit
instead of justsysinit
. This could be helpful if, for example, you maintain a separatesysinit
role in another place on your local workstation.--- - hosts: test roles: - clay_wangzhi.devops.sysinit
Pushing a new version
Before tagging a new version, make sure all the git submodules are up to date:
git submodule update --recursive --remote
Then commit and push all changes, and make sure all tests are passing.
Then tag the new version of the collection and push the tag.
Once pushed, if tests pass, Travis CI will deploy the new collection version using the playbook in scripts/deploy.yml
. That directory also contains the galaxy.yml
template that will be used to build the collection metadata.
Author
This collection was created in 2021 by Clay.