A webhook in web development is a method of augmenting or altering the behavior of a web page, or web application, with custom callbacks. webhook 的作用可...
                            
                            
                                分类:
Web程序   时间:
2015-07-16 00:26:29   
                                阅读次数:
180
                             
                    
                        
                            
                            
                                工作已经有三年多了,但是对于自己所学到的知识一直没有做一个整体的规划沉淀,这段时间一直在考虑辞职跳槽的事情,索性趁这个机会把自己的知识整理一下。运维:LinuxOS,http,ftp,dns,dhcp,nfs,smb,tomcat,memcache等数据库:MySQL,Oracle自动化:Puppet,Ansible语言:Shell,Py..
                            
                            
                                分类:
其他好文   时间:
2015-07-14 20:40:52   
                                阅读次数:
167
                             
                    
                        
                            
                            
                                如果你有一个很大的playbook,而你只想run其中的某个task,这个时候tags是你的最佳选择。如何使用呢?一、最常见的使用形式:抄取官方的实例:tasks:
-yum:name={{item}}state=installed
with_items:
-httpd
-memcached
tags:
-packages
-template:src=templates/src.j2dest=/et..
                            
                            
                                分类:
其他好文   时间:
2015-07-14 20:37:45   
                                阅读次数:
123
                             
                    
                        
                            
                            
                                使用python调用playbook和shell脚本
我的python脚本为:
#!/usr/bin/env python
import ansible.playbook
from ansible import callbacks
from ansible import utils
import json
import commands
status, result = commands....
                            
                            
                                分类:
其他好文   时间:
2015-07-13 20:42:57   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                前言随着IT行业的迅猛发展,传统的运维方式靠大量人力比较吃力,运维人员面对日益增长的服务器和运维工作,不得不把很多重复的、繁琐的工作利用自动化处理。前期我们介绍了运维自动化工具ansible的简单应用,本期带来的是运维自动化神器puppet基于Master/Agent模式实现LNMP平台..
                            
                            
                                分类:
其他好文   时间:
2015-07-13 00:59:14   
                                阅读次数:
261
                             
                    
                        
                            
                            
                                插件源码 jquery.callback.js插件开源地址: https://gist.github.com/4580276(function($){ $._callbacks = {}; $._callbacks_ = {}; $._alias = {}; $._a...
                            
                            
                                分类:
Web程序   时间:
2015-07-12 11:01:32   
                                阅读次数:
187
                             
                    
                        
                            
                            
                                1.利用dm-crypt来创建加密文件系统。编写shell脚本
2.编写ansible,playbook文件
3.编写python脚本
首先编写shell脚本
#!/bin/sh
sudo apt-get install dmsetup cryptsetup
sudo modprobe dm-crypt
echo "dd if=/dev/zero of=/home/prod/secr...
                            
                            
                                分类:
其他好文   时间:
2015-07-10 13:29:46   
                                阅读次数:
139
                             
                    
                        
                            
                            
                                如果你也开发移动端web,如果你也用zepto,应该值得你看看。有问题请留言。Zepto源码分析-架构Zepto源码分析-zepto(DOM)模块Zepto源码分析-callbacks模块Zepto源码分析-event模块Zepto源码分析-ajax模块Zepto源码分析-form模块Zepto源码...
                            
                            
                                分类:
其他好文   时间:
2015-07-06 21:16:55   
                                阅读次数:
102
                             
                    
                        
                            
                            
                                1.创建mysql的playbook结构[root@ansibleroles]#pwd
/etc/ansible/roles
[root@ansibleroles]#mkdir-pmysql_install/{files,handlers,meta,tasks,templates,vars}
[root@ansibleroles]#treemysql_install/
mysql_install/
├──files
├──handlers
├──meta
├──tasks
..
                            
                            
                                分类:
数据库   时间:
2015-07-06 20:08:24   
                                阅读次数:
213