管理傀儡文件桶?

Rob*_*ter 6 puppet

我们正在实施 Puppet 并希望使用 filebucket 来替换内部文件更改跟踪器。文件桶的物理布局到散列目录树中,并且主端文件桶上缺少“哪个客户端”元数据,这使得这有点具有挑战性。

我发现filebucket实用程序附带的傀儡,并在快速和肮脏的索引配方http://reductivelabs.com/trac/puppet/wiki/Recipes/FileBucket。我可以看到将它们用作合理管理界面的构建块并不是什么大问题。但与其重新发明轮子……

有人有更好的吗?

eri*_*son 6

作为记录,现在在 puppet 2.7 中使用“puppet filebucket”子命令:

puppet filebucket <mode> [-h|--help] [-V|--version] [-d|--debug]
[-v|--verbose] [-l|--local] [-r|--remote] [-s|--server <server>]
[-b|--bucket <directory>] <file> <file> ...

Puppet filebucket can operate in three modes, with only one mode per call:

backup:
 Send one or more files to the specified file bucket. Each sent file is
 printed with its resulting md5 sum.

get:
 Return the text associated with an md5 sum. The text is printed to
 stdout, and only one file can be retrieved at a time.

restore:
 Given a file path and an md5 sum, store the content associated with
 the sum into the specified file path. You can specify an entirely new
 path to this argument; you are not restricted to restoring the content
 to its original location.
Run Code Online (Sandbox Code Playgroud)


Pau*_*rop 2

遗憾的是,这个领域还没有一个好的解决方案。社区会欢迎您提出的任何建议,或者您可以致电 Reducing Labs 并为他们提供一些咨询业务。我不久前考虑过这样做,发现它比我有时间解决的更具挑战性。

请随意访问 IRC 频道(Freenode 上的 #puppet)——那里有很多非常乐于助人的人,他们很乐意提供建议/帮助,特别是如果它能带来一个为 Puppet 生态系统做出贡献的工具。