{"id":99,"date":"2010-10-26T17:39:10","date_gmt":"2010-10-26T22:39:10","guid":{"rendered":"http:\/\/soljerome.com\/blog\/?p=99"},"modified":"2010-10-26T17:41:49","modified_gmt":"2010-10-26T22:41:49","slug":"bcfg2-example-repository","status":"publish","type":"post","link":"https:\/\/www.soljerome.com\/blog\/2010\/10\/26\/bcfg2-example-repository\/","title":{"rendered":"Bcfg2 example repository"},"content":{"rendered":"<p>I have just started creating a new sample Bcfg2 repository on github. This post details the strategy used in this repository in order to make it easy to pull in updates and merge them seamlessly with your running Bcfg2 instance.<\/p>\n<p>The primary goal for this repository is to be nondestructive when someone  tries to pull in the changes from upstream. However, in order to do  this, there is a slightly more complicated repository structure  involved.<\/p>\n<p>The first thing you&#8217;ll probably want to do is grab a copy of the repository:<\/p>\n<p><code>git clone git:\/\/github.com\/solj\/bcfg2-repo.git<br \/>\n<\/code><\/p>\n<p>As you inspect the repository, you&#8217;ll notice that I have tried to make use of <a href=\"http:\/\/www.w3.org\/TR\/xinclude\/\" target=\"_blank\">Xinclude<\/a> in order to prevent overwriting custom repository files. The idea is that you will have 3 separate files (file.xml, upstreamfile.xml, and localfile.xml). The basic format for file.xml will be a comment with information about the purpose of the file. Then it will xinclude localfile.xml and have a comment containing the xinclude for upstreamfile.xml. The reasoning behind this is that you will most often have slight changes in your local repository from what is contained upstream. Therefore, you will most likely populate localfile.xml and merge in any changes from upstreamfile.xml manually.<\/p>\n<p>This appears to be working out well so far (although I haven&#8217;t really added enough content yet). I am also considering adding paths to default configuration files (e.g. ssh). I am thinking about populating them using <a href=\"http:\/\/docs.bcfg2.org\/server\/plugins\/generators\/cfg.html#group-specific-files\">group-specific<\/a> files so that they can be overridden by adding a group file with a higher priority. I am also considering possibly adding a separate layout under Cfg\/TCheetah\/TGenshi and using altsrc to bind the entries from the Bundles.<\/p>\n<p>I&#8217;m hoping this all works out and any comments\/criticisms are welcome. I know that the useful examples out there are sparse and widespread. I&#8217;m hoping that we can get something together which allows people to collaborate on useful configurations easily so that the initial barrier to using Bcfg2 is decreased.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have just started creating a new sample Bcfg2 repository on github. This post details the strategy used in this repository in order to make it easy to pull in updates and merge them seamlessly with your running Bcfg2 instance. The primary goal for this repository is to be nondestructive when someone tries to pull <a href='https:\/\/www.soljerome.com\/blog\/2010\/10\/26\/bcfg2-example-repository\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7,3],"tags":[],"_links":{"self":[{"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/posts\/99"}],"collection":[{"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/comments?post=99"}],"version-history":[{"count":4,"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/posts\/99\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/media?parent=99"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/categories?post=99"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.soljerome.com\/blog\/wp-json\/wp\/v2\/tags?post=99"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}