2013年2月

SaltStack安装

之前尝试了下puppet,感觉还是比较重,比较繁琐。早上试了下SaltStack,python写的就是兼容性好,安装 起来也方便,试用了一些,还是挺方便的,就是不知道承载能力怎么样。下面是安装教程

salt-master安装

[salt-master]# yum install salt-master

master端的配置文件是在 /etc/salt/master 对于此配置文件的详细配置可以查看  http://docs.saltstack.org/en/latest/ref/configuration/master.html 运行:

- 阅读剩余部分 -

Python Tab 补齐

# easy_install readline
# vim ~/.pythonstartup

[code]
# python startup file
import readline
import rlcompleter
import atexit
import os
# tab completion
readline.parse_and_bind('tab: complete')
# history file
histfile = os.path.join(os.environ['HOME'], '.pythonhistory')
try:
readline.read_history_file(histfile)
except IOError:
pass
atexit.register(readline.write_history_file, histfile)
del os, histfile, readline, rlcompleter
[/code]

# echo "export PYTHONSTARTUP=~/.pythonstartup" >> ~/.bashrc