{"id":139,"date":"2021-02-22T13:07:45","date_gmt":"2021-02-22T20:07:45","guid":{"rendered":"http:\/\/bloggf.dannf.org\/?p=139"},"modified":"2021-02-22T13:08:12","modified_gmt":"2021-02-22T20:08:12","slug":"custom-storage-layouts-w-maas-preseeds","status":"publish","type":"post","link":"https:\/\/bloggf.dannf.org\/index.php\/2021\/02\/22\/custom-storage-layouts-w-maas-preseeds\/","title":{"rendered":"Custom Storage Layouts w\/ MAAS preseeds."},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code>    storage_layout = FlatStorageLayout(node)\n    storage_layout.configure()\n    raid_members = &#91;]\n    for bdev in raid_candidates:\n        raid_members.append(bdev.create_partition())\n    r = RAIDManager()\n    raiddev = r.create_raid(\n        FILESYSTEM_GROUP_TYPE.RAID_0, partitions=raid_members\n    )<\/code><\/pre>\n\n\n\n<p>I&#8217;ve been working on a project to dynamically create customize server storage layouts using MAAS preseeds. Thanks to some good advice from a couple colleagues, I have something that works pretty well for me. See my write-up <a href=\"https:\/\/discourse.maas.io\/t\/custom-storage-layouts-using-preseeds\/4227\">on the MAAS discourse<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on a project to dynamically create customize server storage layouts using MAAS preseeds. Thanks to some good advice from a couple colleagues, I have something that works pretty well for me. See my write-up on the MAAS discourse.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-139","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/posts\/139","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/comments?post=139"}],"version-history":[{"count":2,"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions"}],"predecessor-version":[{"id":141,"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/posts\/139\/revisions\/141"}],"wp:attachment":[{"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/media?parent=139"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/categories?post=139"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bloggf.dannf.org\/index.php\/wp-json\/wp\/v2\/tags?post=139"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}