博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ansible@一个高效的配置管理工具--Ansible configure management--翻译(一)
阅读量:5256 次
发布时间:2019-06-14

本文共 3841 字,大约阅读时间需要 12 分钟。

未经书面许可,请勿转载

---

     Ansible is the simplest way to automate apps and IT infrastructure

     这是Ansible官方站点的介绍,本着学习的态度我决定一边学习一边翻译Ansible configure management这本书。原文下载稍后放出

     #一些自解释的文字,我会忽略。或者依照自己的理解简单翻译一下,并不是每行每句都是一一相应。

PrefaceSince CFEngine was first created by Mark Burgess in 1993, configurationmanagement tools have been constantly evolving. Followed by the emergenceof more modern tools such as Puppet and Chef, there are now a large number ofchoices available to a system administrator.Ansible is one of the newer tools to arrive into the configuration management space.Where other tools have focused on completeness and configurability, Ansible hasbucked the trend and, instead, focused on simplicity and ease of use.In this book, we aim to show you how to use Ansible from the humblebeginnings of its CLI tool, to writing playbooks, and then managing large andcomplex environments. Finally, we teach you how to extend Ansible by writingyour own modules.

前言

自从CFEngine 在1993年被Mark Burgess开发出来之后,配置管理工具就层出不穷了。像puppet 和chef。系统管理员能够有非常多选择。

Ansible 是一个新的配置管理工具,与其它工具不同的是,其它管理工具注重的是完整性和可配置性,而Ansible注重的是简单性和易用性。

What this book coversChapter 1, Getting Started with Ansible, teaches you the basics of Ansible, how to buildan inventory, how to use modules, and, most importantly, how to get help.Chapter 2, Simple Playbooks, teaches you how to combine multiple modules to createAnsible playbooks to manage your hosts.Chapter 3, Advanced Playbooks, delves deeper into Ansible's scripting language andteaches you more complex language constructs.Chapter 4, Larger Projects, teaches you the techniques to scale Ansible configurationsto large deployments containing many complicated systems.Chapter 5, Custom Modules, teaches you how to expand Ansible beyond itscurrent capabilities.

内容提要

第一章,開始使用Ansible,一些Ansible的基本信息和理念。比方怎样创建文件夹清单,怎样使用模块。以及最重要的怎样获得帮助。

第二章,简单的Playbooks演示样例,教你怎样使用多个Ansible模块创建Playbooks来管理你的主机。

第三章,高级Playbooks演示样例,深入了解Ansible的脚本语言。以及更复杂的语法结构。

第四章,大型项目演示样例,很多其它大规模Ansible配置的技巧,部署到很多其它更复杂的系统。

第五章,扩展自己定义模块,怎样自己自己定义去扩展自己的Ansible模块。超越它默认的功能。

What you need for this bookTo use this book, you will need at least the following:•	 A text editor•	 A machine with Linux operating system•	 Python 2.6.xHowever, to use Ansible to its full effect, you should have several Linux machinesavailable to be managed.

怎样更好的使用本书

一个文本编辑器

2台以上linux机器

python2.6 及以上

Who this book is forThis book is intended for those who want to understand the basics of how Ansibleworks. It is expected that you have rudimentary knowledge of how to set up andconfigure Linux machines. In parts of the book, we cover the configuration files ofBIND, MySQL, and other Linux daemons; a working knowledge of these would behelpful, but is certainly not required.

合适的读者

给那些愿意进一步了解Ansible工作原理的人。本书估计你对配置linux设备有一定的基础知识。在书中会举一些关于linux-mind、mysql等linux服务配置,假设你之前接触过这些配置会对你理解本书有帮助,但这些不是必须的!

ConventionsIn this book, you will find a number of styles of text that distinguish betweendifferent kinds of information. Here are some examples of these styles, and anexplanation of their meaning.Code words in text are shown as follows: "We can include other contexts throughthe use of the include directive."A block of code is set as follows:[group]machine1machine2machine3[ 2 ]PrefaceWhen we wish to draw your attention to a particular part of a code block,the relevant lines or items are set in bold:tasks:- name: install apacheaction: yum name=httpd state=installed- name: configure apachecopy: src=files/httpd.conf dest=/etc/httpd/conf/httpd.confAny command-line input or output is written as follows:ansible machinename -u root -k -m pingNew terms and important words are shown in bold.

约定

PDF文档里面加粗的部分是作者希望读者进行练习的命令行。

inventory:设备库存清单文件,兴许的文档中有时候使用中文。有时候直接引用英文,感觉这个翻译过来真的非常别扭

action:操作,原文中有时候做任务、操作、甚至playbook,我也是有时候用中文,有时候直接引用英文

play:同上

转载于:https://www.cnblogs.com/zsychanpin/p/6958798.html

你可能感兴趣的文章
页头页尾加载方法
查看>>
Hdu2041 超级楼梯 (斐波那契数列)
查看>>
面试题1:把一个字符串转换成数字
查看>>
JAVA常用方法
查看>>
hadoop伪分布式组件安装
查看>>
Dispatch 方法详解
查看>>
复杂的Sql分组
查看>>
oracle基础小细节
查看>>
使用CSS3动画模拟实现小球自由落体效果
查看>>
python爬虫番外篇(一)进程,线程的初步了解
查看>>
Caffe学习笔记2
查看>>
LAMP第三部分php,mysql配置
查看>>
Ifconfig
查看>>
潭州课堂25班:Ph201805201 django 项目 第四十四课 项目部署 (课堂笔记)
查看>>
Android学习之基础知识四-Activity活动5讲(Activity的生命周期)
查看>>
mysql 递归查询树形目录
查看>>
关于项目优化的一些小技巧
查看>>
简练软考知识点整理-规划人力资源管理
查看>>
php表单和缩略图处理类是什么样呢
查看>>
Linux文件权限总结
查看>>