Lework Study hard, improve every day.

Ansible Role 数据库 之【mycat】

2017-03-12
本文 609 字,阅读全文约需 2 分钟

Ansible Role: mycat

安装mycat

要求

此角色仅在RHEL及其衍生产品上运行。

测试环境

ansible 2.2.1.0 os Centos 6.7 X64

角色变量

software_files_path: "/opt/software"
software_install_path: "/usr/local"

mycat_version: "1.6"

mycat_file: "Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz"
mycat_file_path: "{{ software_files_path }}/{{ mycat_file }}"
mycat_file_url: "http://dl.mycat.io/1.6-RELEASE/Mycat-server-1.6-RELEASE-20161028204710-linux.tar.gz"
mycat_conf_path: "{{ software_install_path }}/mycat/conf"

依赖

java

github地址

https://github.com/lework/Ansible-roles/tree/master/mycat

Example Playbook

- hosts: servers
  roles:
	- mycat
原文地址 https://lework.github.io/2017/03/12/Ansible-Role-shu-ju-ku-zhi-mycat/

Comments

Content