{"id":510,"date":"2016-03-16T12:11:59","date_gmt":"2016-03-16T12:11:59","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=510"},"modified":"2016-03-16T19:42:11","modified_gmt":"2016-03-16T19:42:11","slug":"creating-200-cloud-servers-using-nova","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/03\/16\/creating-200-cloud-servers-using-nova\/","title":{"rendered":"Creating 200 cloud servers using openstack Nova"},"content":{"rendered":"<p>Had a question on how to do this from a customer today.<br \/>\nIt is possible to create very many cloud servers in a quick time something like:<\/p>\n<pre>\r\n#!\/bin\/sh\r\nfor i in `seq 1 200`;\r\ndo\r\nnova boot --image someimageidhere --flavor '2GB Standard Instance' \"\\Server-$i\"\r\nsleep 5\r\ndone\r\n<\/pre>\n<p>So simple, but could build out many servers (a small farm) in just an hour or so:D<\/p>\n<p><strong> Update <\/strong><\/p>\n<p>So my colleague tells me, that backticks are bad, i.e. deprecated. Which, they are, and I expected to hear this from someone, as my knowledge is somewhat a little old school. Here is what my friend recommends.<\/p>\n<pre>\r\nfor i in {0..200}; do\r\nnova boot --image someimageidhere --flavor '2GB Standard Instance' \"\\Server-$i\"\r\nsleep 5\r\ndone\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Had a question on how to do this from a customer today. It is possible to create very many cloud servers in a quick time something like: #!\/bin\/sh for i in `seq 1 200`; do nova boot &#8211;image someimageidhere &#8211;flavor &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/03\/16\/creating-200-cloud-servers-using-nova\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[42,19,21],"tags":[],"class_list":["post-510","post","type-post","status-publish","format-standard","hentry","category-automation","category-bash","category-nova"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/510","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=510"}],"version-history":[{"count":3,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/510\/revisions"}],"predecessor-version":[{"id":514,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/510\/revisions\/514"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=510"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=510"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=510"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}