Salt从0.11.0版本开始引入ReactorSystem。EventSystemTheeventsystemisalocalZeroMQPUBinterfacewhichfiressaltevents.ThiseventbusisanopensystemusedforsendinginformationnotifyingSaltandothersystemsaboutoperations.ReactorSLSfilesandeventtagsareassociatedinthemaster..
分类:
其他好文 时间:
2015-05-28 18:21:07
阅读次数:
173
/usr/lib/python2.6/site-packages/salt/modules/cmdmod.pycmdmod模块用于执行一些命令行‘‘
Amoduleforshellingout
Keepinmindthatthismoduleisinsecure,inthatitcangivewhomeverhas
accesstothemasterrootexecutionaccesstoallsaltminions.
‘‘‘#Importpythonlibs
importtime
..
分类:
其他好文 时间:
2015-05-28 14:17:59
阅读次数:
278
下面是我多年整理并使用多少的Shell 分享给大家。说起自动化运维很多人会谈到 puppet,?ansible,saltstack 这些工具我都使用了,最终都放弃了。这些工具前期配置太耗时间,扩展也不方便,适合傻瓜化运维,对于有1...
分类:
系统相关 时间:
2015-05-27 17:33:20
阅读次数:
196
/usr/lib/python2.6/site-packages/salt/modules/pillar.pydefget(key,default=‘‘,merge=False,delimiter=‘:‘):
‘‘‘
..versionadded::0.14
Attempttoretrievethenamedvaluefrompillar,ifthenamedvalueisnot
availablereturnthepasseddefault.Thedefaultreturnisanemptystring...
分类:
其他好文 时间:
2015-05-27 16:02:05
阅读次数:
171
使用salt-call可以在minion本机执行salt命令/usr/bin/salt-call#!/usr/bin/python
#EASY-INSTALL-ENTRY-SCRIPT:‘salt==2014.7.0‘,‘console_scripts‘,‘salt-call‘
__requires__=‘salt==2014.7.0‘
importsys
frompkg_resourcesimportload_entry_point
if__name__==‘__main__‘:
s..
分类:
其他好文 时间:
2015-05-27 16:00:41
阅读次数:
247
1.测试openssl对各种见算法处理速度opensslspeed[algorithms]algorithms:各种算法eg.rsa,des,md5,sha1等。不加算法表示测试所有算法。2.openssl对数据进行加密opensslenc-ciphername[-infilename][-e][-d][-outfilename][-salt][-a/-base64]
eg.opensslencdes3-salt-a-ininitta..
分类:
其他好文 时间:
2015-05-24 06:40:45
阅读次数:
420
1. 密码安全性使用Werkzeug实现密码hashgenerate_password_hash(password, method, salt_length)将原始密码作为输入,以字符串形式输出密码的hash值,输出的值可保存在用户数据库中。method 和 salt_length的默认值就能满足大...
分类:
其他好文 时间:
2015-05-23 22:42:59
阅读次数:
1199
www.XXX.com/mod=titlebytiddefine('API_SALT_KEY', 'lizuofeng');$mod = $_GET['mod'];//所走的方法$pre_string = 'edit_';$function = $pre_string.$mod;$salt = md...
分类:
其他好文 时间:
2015-05-22 14:52:32
阅读次数:
116
I、saltstack介绍摘抄“葱油拌面Lax”翻译的一段不久前的一天,当我自豪穿着SaltStack文化衫的时候,我的女儿看到后就当面问我,“SaltStack是什么呀?”
于是,我开始了作出了如下的解释,假如你有很多台服务器而且想要操作这些服务器,你也许需要一台一台的登录这些服务器,..
分类:
其他好文 时间:
2015-05-21 19:54:12
阅读次数:
187