根据文章 【 自动化运维工具Ansible详细部署 】 搭建 1、Ansible基础安装 (1)、python2.7安装 wget https://www.python.org/ftp/python/2.7.8/Python-2.7.8.tgz # tar xvzf Python-2.7.8.tgz ...
分类:
其他好文 时间:
2016-10-13 09:38:38
阅读次数:
247
1.建立ssh无秘钥认证的关系yum-yinstallexpect1.1catauto_deploy.sh#!/bin/sh
./etc/init.d/functions
#1.productkeypair
ssh-keygen-tdsa-P‘‘-f~/.ssh/id_dsa>/dev/null2>&1
if[$?-eq0];then
action"createdsasuccess"/bin/true
else
action"createdsafailed"/bin/f..
分类:
其他好文 时间:
2016-08-14 08:00:03
阅读次数:
238
自动化运维工具常用的有ansiblesaltstackpuppet等,前两者都是基于python开发,puppet基于ruby开发,今天我们简单介绍下ansible基础一、基础知识:1.简介ansible基于python开发,集合了众多运维工具的优点,实现了批量系统配置、批量程序部署、批量运行命令等功能。ansible是基..
分类:
其他好文 时间:
2016-08-08 15:53:55
阅读次数:
575
一、Ansible基础安装通过Yum安装rpm使用与epel6,7等。但是必须安装Python2.4或者更高的版本的Python。添加源:wget-O/etc/yum.repos.d/epel.repohttp://mirrors.aliyun.com/repo/epel-6.repoyuminstallansible-y二、Ansible配置1、ssh面密钥登陆设置##生成公钥/私钥ssh-keygen..
分类:
其他好文 时间:
2016-06-28 18:53:44
阅读次数:
174
1.特性noagents:不需要在被管控主机上安装任何客户端;noserver:无服务器端,使用时直接运行命令即可;modulesinanylanguages:基于模块工作,可使用任意语言开发模块yaml,notcode:使用yaml语言定制剧本playbooksshbydefault:基于SSH工作strongmulti-tiersolution:可实现..
分类:
其他好文 时间:
2016-04-29 02:01:44
阅读次数:
353
ansible基础应用与常见模块ansible中文手册:http://www.simlinux.com/books/Ansible-notes.pdf1,运维工具简介运维工具:系统安装(物理机、虚拟机)-->程序安装、配置、服务启动-->批量操作(批量运行命令)-->程序发布-->监控ansible能够实现:程序安装、配置、..
分类:
其他好文 时间:
2016-01-07 11:59:09
阅读次数:
223
前言:会把自己在ansible遇到的一些问题,总结在这个页面上。问题会持续不断的更新。现在有不少人在问我,怎么转到ansible来了,ansible和saltstack的优缺点,我这里就不在阐述了。因为总是叨叨这些没啥意思。我还是很看好saltstack以后的发展的,除了shell,老一代的运维牛人..
分类:
其他好文 时间:
2014-06-02 16:36:29
阅读次数:
290
ansible介绍:官网,百科之类的ansible的部署centos6.5上的部署.2.2.2.11node1.king.comansible
2.2.2.15node3.king.com
2.2.2.12node2.king.comtarxfansible-1.5.4.tar.gz
cdansible-1.5.4
pythonsetup.pybuild
pythonsetup.pyinstall
mkdir/etc/ansible
cp-rexamples/*/etc/ans..
分类:
其他好文 时间:
2014-05-05 12:37:32
阅读次数:
447