AWS上的运维自动化实践分享 - 开放文档 - Free and...
Transcript of AWS上的运维自动化实践分享 - 开放文档 - Free and...
在AWS上的运维自动化实践分享
猎豹移动-运维部
梁晓聪
@lxcong
大纲
1. WHY AWS
2. 在AWS云端的运维体系的变化
3. Ansible在云端
01 WHY AWS
why aws
◦ 便捷的全球化部署
◦ 弹性的扩展
◦ 成本的优化
02 在AWS云端的运维体系的变化
运维自动化的两条线
自动化管理资源的生命周期
持续交付
自动化管理资源的生命周期
model
provision
monitor
model
自建IDC AWS云端
cmdb agent上报系统信息 调用api获取系统信息
名字服务 dns public dns
资产 采购->资源分类->资源池->废旧销毁
不需要
认证 ldap oauth iam
monitor
自建IDC AWS云端
基础监控 nagios,zabbix nagios,zabbix
http业务状态 statsd,nginx_statsd cloudwatch
数据库 nagios cloudwatch
cache nagios cloudwatch
provision
自建IDC AWS云端
os boot / install 1. cobbler api
2. kickstart
ansible
配置管理 ansible ansible
部署 ansible ansible
上下游关联 lvs系统,数据系统,cache系统 ansible
03 Ansible在云端
What is ansible
• configuration-management
• application deployment
• cloud provisioning
• ad-hoc
• task-execution
Ansible支持的云
公有云:
•AWS
•Azure
•DigitalOcean
•Rackspace
•Linode
私有云&虚拟化:
•Openstack
•docker
•Vagrant
•Vmware
Why ansible
• 简单,高效,完整,安全
• Python
• 与AWS紧密相连
• 社区活跃
Github 7000+ star & 800+ contributors
Ansible能干什么
1.一键部署AWS组件
2.Why not cloudformation
Ansible能干什么
Ansible能干什么
Ansible能干什么
Ansible能干什么
Ansible能干什么
按不同发布等级选择不同的发布流程
•普通发布流程
•蓝-紫发布流程
•蓝-绿发布流程
Ansible能干什么
Ansible1.8
ec2_asg: replace_all_instances
Ansible能干什么
Ansible能干什么
Ansible推荐资料
• Rolling and update 官方playbook
https://github.com/ansible/immutablish-deploys
http://www.ansible.com/blog/immutable-systems
• ansible灿哥视频教学
http://edu.51cto.com/course/course_id-2032.html
Thank you