Bootstrapping a system?

xuanbao · · 392 次点击    
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
<p>I&#39;m looking at learning Go as my first programming language and figured this would be a good project to start out on.</p> <p>Would it be possible to write a Golang app that would take a fresh and clean vanilla install of Ubuntu for example and bring it to a full configured state?</p> <p>A rough sketch of what I would need it to do would be to install applications via package manager. Pull dotfiles from a github repo and then set permissions of the files to the correct permissions for the user that is on the machine. </p> <p>Would Golang be a good fit here or is there a simpler way to accomplish the above?</p> <hr/>**评论:**<br/><br/>benwalton: <pre><p>Well, you could certainly write a tool to do that using Go, but that wouldn&#39;t be wise. This space is already filled with multiple competing options. You should rule those out before you write yet another configuration management tool. Have a look at puppet, chef, ansible, cfengine, salt, etc...</p></pre>smartowlick: <pre><p>I will do so. Thank you.</p></pre>cafxx1985: <pre><p><a href="https://github.com/cloudfoundry/bosh" rel="nofollow">bosh</a> even has a go component (<a href="https://github.com/cloudfoundry/bosh-agent" rel="nofollow">bosh-agent</a>) that does, among many other things, exactly what the OP describes above</p></pre>benwalton: <pre><p>That further reinforces the point that this wheel has been sufficiently invented. :)</p></pre>kjnsn01: <pre><p>Sounds like good old bash scripting is what you need! Go would be suitable for interacting with kernel apis, not tools that already exist on the system. From my experience getting external cli applications to run the way you want can be fiddly </p></pre>

入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889

392 次点击  
加入收藏 微博
暂无回复
添加一条新回复 (您需要 登录 后才能回复 没有账号 ?)
  • 请尽量让自己的回复能够对别人有帮助
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`
  • 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
  • 图片支持拖拽、截图粘贴等方式上传