一.升级python 作者系统为centos6.5,系统默认安装python2.6,虽然ansible官方文档要求python版本为2.6或2.7,然而许多人都说使用2.6可能出现一系列问题,所以作者决定将2.6升级为2.7以避免不必要的麻烦。 python下载地址:https://www.pyth ...
分类:
其他好文 时间:
2017-08-21 17:49:00
阅读次数:
184
ansibleplaybook#使用ansible-playbook2.yml工具批量处理多任务[root@host-***.***.***.***ansible]#vim2.txt#({{hostname}}下一行{{port}}){{hostname}}{{port}}▽~"2.txt"[New]2L,28Cwritten[root@host-***.***.***.***ansible]#vim2.vars#(hostname:master下一行port:80..
分类:
其他好文 时间:
2017-08-21 16:36:08
阅读次数:
172
一.synchronize 模块: 有的时候需要你去同步一个目录到本地或者远程,copy当然也可以,但会非常的慢,远远没有synchronize模块给力,a它依赖于rsync去同步,下面简单介绍一下: 使用synchronize同步文件,其参数如下: 二.Script 脚本模块 有的时候需要去执行远 ...
分类:
其他好文 时间:
2017-08-21 16:33:55
阅读次数:
191
1.上锁解锁 db.runCommand({fsync:1,lock:1}) 解锁 db.currentOp() 2.数据修复 db.repairDatabase() 3. db.createUser({user:"uspcat",pwd:"123",roles:[{role:"userAdminA ...
分类:
数据库 时间:
2017-08-20 15:52:45
阅读次数:
189
计算节点需要配置的主要是nova和neutron的客户端,控制节点在进行资源调度及配置时需要计算节点配合方能实现的,计算节点配置内容相对较少,实际生产环境中,需要配置的计算节点数量相当庞大,那么我们就需要借助ansible或者puppet这样的自动化工具进行了,废话不多讲,直接进..
分类:
其他好文 时间:
2017-08-20 10:09:50
阅读次数:
256
@RequestMapping(method = RequestMethod.GET, value = "/update/{id}")public String forUpdate(Model model, @PathVariable("id") Long id) { SystemRole syst ...
分类:
其他好文 时间:
2017-08-19 18:39:56
阅读次数:
179
BaseAction的抽取 项目中的每个实体类都对应一个action 每个action都都要继承ActionSupport类 已以及实现ModelDriver接口 并且需要注入service 虽然每个action注入的service不同 但是也有可能另外一个action需要使用到其他action中的 ...
分类:
其他好文 时间:
2017-08-17 21:23:43
阅读次数:
173
日常的运维工作任务系统安装(物理机、虚拟机)-->程序包安装、配置、服务启动-->批量操作-->程序发布-->监控OSProvisioning物理机:PXE(预引导程序)、CobblerPXE(网卡支持网络引导、dhcp、filename、next-server、tftp-server(UDP69端口监听))-->pxelinux.0-..
分类:
其他好文 时间:
2017-08-17 12:35:12
阅读次数:
2943
命令: ansible -i hosts_20 st -m shell -a 'service zabbix_agentd star' -K --become ansible -i hosts_20 st -m shell -a 'lsof -i:10050' -K --become 在shell模 ...
分类:
系统相关 时间:
2017-08-16 20:33:23
阅读次数:
506
前期准备 批量配置yum源 ansible -i t4 st -m copy -a 'src=/opt/shell/yum/rhe65.repo dest=/tmp/ owner=watson group=watson mode=644 backup=yes' rhe65.repo文件内容: [rh ...
分类:
其他好文 时间:
2017-08-16 20:14:32
阅读次数:
136