跳转至

手摸手 Chef & Ansible 技术与实战教程

Started at March. 2021 By Jacob Xi

Alt Image Text

内容简介

本书是本人的“手摸手战术教程”系列的第四本,历经两个月的时间,终于在还没有开花🌸,天天下雨☔️,冷的要死的三月🥶完工了,感谢家人,朋友,同事们的支持与理解,也感谢所在team同事们的帮助与指导。# 最近看了“大而不倒”,“发条女孩”,“你一生的故事”Only the book can calm me down

Previous on 手摸手

手摸手 Jenkins 战术教程 (大师版)

手摸手 Elasticsearch7 技术与实战教程

手摸手 Redis 技术与实战教程

Ansible vs Chef

Ansible calls its configuration files “playbooks”, while Chef calls them “cookbooks”.

End of story. We’re done.

Setting it Up:

Chef operates with a master-client architecture. The server part runs on the master machine, while the client portion runs as an agent on every client machine. Chef also has an extra component named “workstation” that stores all of the configurations that are tested then pushed to the central server.

Ansible only uses a master running on the server machine, but no agents running on the client machine. It uses an SSH connection to log in to the client systems or the nodes you want to configure, and the client machine VM has no need for special setup.

Source of Truth:

Source of Truth is defined as the authoritative configuration of a given set of systems or system. Ansible’s source of truth comes from its deployed playbooks, which are perfect as source control systems, while

Chef relies on its own server as the source of truth, and those servers require uploaded cookbooks, which means making sure the latter are consistent and identical.

Managing the Tools:

With Chef, the client pulls configurations from the server. The configurations are in Ruby DSL, so you need to have programming skills in order to manage those configurations.

Ansible uses YAML (Yet Another Markup Language) to manage configurations, a language that’s similar to English, and the server pushes the configurations to the individual nodes.

本书主要内容

本书共四章,主要介绍Chef和Ansible的使用语法,常用命令以及生产案例。

Chef 主要介绍了常用的Chef语法,cookbook的创建以及apply, Kitchen管理虚拟机,Ohai属性,Recipes的撰写,属性,databag, 角色,环境的获取,chef-zero以及chef-solot的使用,自动化测试Recipes,Knife的使用技巧以及LAMP的Chef CookBook

Ansible 主要介绍了常用的Ansible语法,playbook的创建,Task的创建,Jinja赋值的Variable, 角色的创建, ansible-valut管理密码,ansible对网络的管理,以及如何更好的实现幂等性

Comment ca va? C'est Moi

Hello, this is me, Jacob. Currently, I'm working as DevOps and Cloud Engineer in SAP, and I'm the certified AWS Solution Architect and Certified Azure Administrator, Kubernetes Specialist, Jenkins CI/CD and ElasticStack enthusiast.

I was working as Backend Engineer in New York City and achieved my CS master degree in SIT, America. Believe it or not, I'll keep writing, more and more books will come out at such dramatic and unprecedented 2021.

If you have anything want to talk to me directly, you can reach out for via email xichao2015@outlook.com。

Salute, c'est moi, Jacob. Actuellement, je travaille en tant qu'ingénieur DevOps et Cloud dans SAP, et je suis architecte de solution AWS certifié et administrateur Azure certifié, spécialiste Kubernetes et passionné de CI/CD.

Je travaillais en tant qu'ingénieur backend à New York et j'ai obtenu mon master CS à SIT, en Amérique. Croyez-le ou non, je continuerai à écrire, de plus en plus de livres sortiront cette année.

目录大纲

To be continue

本人将带来手摸手战术教程更多的内容和文章, 接下来的将在Datatase, 开发性能&Linux, Azure900, Azure103, AWS Solution Arcitect, AWS Big Data Speciality, Istio, Python带来更多更全面的电子书,敬请期待。

Alt Image Text