Cold weather is coming and in some northern states is already here. That means it’s time to winterize your car. Vehicle maintenance is something we do...
分类:
其他好文 时间:
2014-07-16 23:07:50
阅读次数:
177
Cold weather is coming and in some northern states is already here. That means it’s time to winterize your car. Vehicle maintenance is something we do...
分类:
其他好文 时间:
2014-07-07 21:42:46
阅读次数:
247
SaltStack有自身的用python开发的web界面halite,好处是基于python,可以跟salt的api无缝配合,确定就比较明显,需要个性化对web界面进行定制的会比较麻烦,如果喜欢体验该界面的可以参考下面的文章http://rfyiamcool.blog.51cto.com/1030776/1275443/我是运用另一个python+php..
分类:
Web程序 时间:
2014-07-04 00:47:13
阅读次数:
1820
这次记录状态机的主要逻辑,跟踪set命令的执行流程,暂不涉及到内存申请这一块,下面内容基本都是代码注释首先还是补充了解下客户连接在发送数据到数据被处理并返回过程中conn的各种状态的表示enum conn_states {conn_listening, /** 只有监听连接的socket才会是这种状...
分类:
其他好文 时间:
2014-07-03 19:19:13
阅读次数:
199
一、安装1、master安装yuminstallsalt-master
vi/etc/salt/master
interface:192.168.55.1
/etc/init.d/salt-masterstart2、minion安装yuminstallsalt-minion
vi/etc/salt/minion
master:192.168.55.1
id:192.168.5.31
/etc/init.d/salt-minionstart配置文件interface、master..
分类:
其他好文 时间:
2014-07-03 14:59:29
阅读次数:
312
由于文章转载太多,所以找到出处,作者看到别生气 - - /// /// 生成salt /// /// public static string GenerateSalt() { byte[...
分类:
其他好文 时间:
2014-07-02 23:58:40
阅读次数:
361
设置好内部状态,然后根据不同的函数作为行为模式,进行状态转换。
有点像Finite Automata算法,两者的思想是一样的。
会Finite Automata,那么这个设计模式就很容易了。
#pragma once
#include
#include
#include
#include
enum STATES
{
FULLY_RENTED, WAITING, GOT_A...
分类:
其他好文 时间:
2014-07-02 16:50:26
阅读次数:
225
一、测试是否能管理client使用模块cmd.run可以查看到client的ip地址[root@salt_server~]#salt‘*‘cmd.run‘ipa‘
salt_client1:
1:lo:<LOOPBACK,UP,LOWER_UP>mtu16436qdiscnoqueuestateUNKNOWN
link/loopback00:00:00:00:00:00brd00:00:00:00:00:00
inet127.0.0.1/8scopehos..
分类:
其他好文 时间:
2014-07-02 06:41:22
阅读次数:
343
说起变量,ansible中的变量,差不多等于salt-stack里面的pillar+grains吧ansible中的变量主要来源于,楼主总结了一下,大概有这么几个地方吧Inventory(hostvars,groupvars)playbook里面命令行roles里面来自于nodes上面的facts这些类型的变量,1-4一般来说都是咱们用户自己定义..
分类:
其他好文 时间:
2014-07-02 06:10:50
阅读次数:
283
roles类似于salt-stack里面的state,state有一定的组织结构。而roles则是ansible中,playbooks的目录组织结构。这么划分有啥好处呢?好处多了去了,如果把所有的东西都写到playbooks里面的话,可能会导致我们这个playbooks很臃肿,不宜读。而模块化之后,成为roles的组织结构,..
分类:
其他好文 时间:
2014-07-01 09:34:30
阅读次数:
324