设为首页 收藏本站
查看: 2536|回复: 0

[经验分享] Ansible详细配置管理工具(一)

[复制链接]
累计签到:1 天
连续签到:1 天
发表于 2014-7-25 09:29:52 | 显示全部楼层 |阅读模式
本帖最后由 esdghj 于 2014-7-25 09:33 编辑

Ansible is the simplest way to automate apps and IT infrastructure

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

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


    Preface  
    Since CFEngine was first created by Mark Burgess in 1993, configuration  
    management tools have been constantly evolving. Followed by the emergence  
    of more modern tools such as Puppet and Chef, there are now a large number of  
    choices 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 has  
    bucked 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 humble  
    beginnings of its CLI tool, to writing playbooks, and then managing large and  
    complex environments. Finally, we teach you how to extend Ansible by writing  
    your own modules.  


前言

自从CFEngine 在1993年被Mark Burgess开发出来之后,配置管理工具就层出不穷了。像puppet 和chef,系统管理员可以有很多选择。Ansible 是一个新的配置管理工具,与其他工具不同的是,其他管理工具注重的是完整性和可配置性,而Ansible注重的是简单性和易用性。




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

内容提要

第一章,开始使用Ansible,一些Ansible的基本信息和理念,比如如何创建目录清单,如何使用模块,以及最重要的如何获得帮助。

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

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

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

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




    What you need for this book  
    To use this book, you will need at least the following:  
    ?    A text editor  
    ?    A machine with Linux operating system  
    ?    Python 2.6.x  
    However, to use Ansible to its full effect, you should have several Linux machines  
    available to be managed.  


如何更好的使用本书

一个文本编辑器

2台以上linux机器

python2.6 及以上



    Who this book is for  
    This book is intended for those who want to understand the basics of how Ansible  
    works. It is expected that you have rudimentary knowledge of how to set up and  
    configure Linux machines. In parts of the book, we cover the configuration files of  
    BIND, MySQL, and other Linux daemons; a working knowledge of these would be  
    helpful, but is certainly not required.  


合适的读者

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



    Conventions  
    In this book, you will find a number of styles of text that distinguish between  
    different kinds of information. Here are some examples of these styles, and an  
    explanation of their meaning.  
    Code words in text are shown as follows: "We can include other contexts through  
    the use of the include directive."  
    A block of code is set as follows:  
    [group]  
    machine1  
    machine2  
    machine3  
    [ 2 ]Preface  
    When 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 apache  
    action: yum name=httpd state=installed  
    - name: configure apache  
    copy: src=files/httpd.conf dest=/etc/httpd/conf/httpd.conf  
    Any command-line input or output is written as follows:  
    ansible machinename -u root -k -m ping  
    New terms and important words are shown in bold.  


约定

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

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

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

play:同上




运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-22671-1-1.html 上篇帖子: 运维自动化之ansible的安装与使用(包括模块与playbook使用) 下篇帖子: Ansible详细配置管理工具(二) management 管理工具 官方网站
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表