我正在寻找方法或方法和自动化工具来logging我对Linux机器的调整。
这种调整将是:
我会用这种logging技术来:
为什么我认为这种方法或工具是必要的?
我将要寻找的function将包括:
您刚刚介绍了configurationpipe理和工具,如Puppet或Chef 。
原则是,您可以使用特定于域的语言模块化地编写configuration。 然后可以将这些模块分层,以便使主机处于所需的完整或部分状态,并将其保留在那里。 他们也形成你的文档,因为DSL应该易于阅读和重复使用。 与修订控制结合使用时,您可以更细致地控制更改。 大多数实现包括可以扩展的日志logging方法。
通常从您的要求中缺less的唯一东西是能够真正捕获状态并促成撤消操作。 CM可以通过logging更改和存储replace的文件来简化这一点,但我不知道任何系统将提供类似快照的回滚。 尽pipe你可以通过虚拟化和备份来实现这一点。
对于“ input和输出的logging命令 ”部分,可以使用命令脚本 。
SCRIPT(1) BSD General Commands Manual SCRIPT(1) NAME script — make typescript of terminal session SYNOPSIS script [-a] [-c COMMAND] [-f] [-q] [-t] [file] DESCRIPTION Script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive session as proof of an assignment, as the typescript file can be printed out later with lpr(1). If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.
真的很有用,logging你做了什么。
为什么不通过像Puppet这样的configurationpipe理系统来简单地对服务器进行所有更改呢? 这就是我pipe理我的机器的方式,这样我就可以确定我的所有机器在一个负载平衡的群集中是一样的。