{"id":1342,"date":"2021-02-15T22:44:41","date_gmt":"2021-02-16T02:44:41","guid":{"rendered":"https:\/\/io.bainwerx.com\/blog\/?p=1342"},"modified":"2021-02-15T22:45:16","modified_gmt":"2021-02-16T02:45:16","slug":"cluster-management-with-ansible","status":"publish","type":"post","link":"https:\/\/io.bainwerx.com\/blog\/cluster-management-with-ansible\/","title":{"rendered":"Cluster Management with Ansible"},"content":{"rendered":"\n<p>Now that I have my &#8220;base cluster&#8221; up and running with ProxMox, it&#8217;s time to turn my attention to how I&#8217;m going to manage it.<\/p>\n\n\n\n<p>After creating a new management user I setup ssh certs to permit ssh traffic from the master to slave systems.<\/p>\n\n\n\n<p>Instalation of Ansible was a breeze<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$ sudo apt update\n$ sudo apt install software-properties-common\n$ sudo apt-add-repository --yes --update ppa:ansible\/ansible\n$ sudo apt install ansible\n\nAfter creating an inventory file, and then a quick and dirty playboook...I tested it out and...\n\nvoila!\n\nFirst run went smashing..although it showed that there WAS actually an update or two on 2\/3 of the servers.<\/pre>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"279\" data-attachment-id=\"1343\" data-permalink=\"https:\/\/io.bainwerx.com\/blog\/cluster-management-with-ansible\/screen-shot-2021-02-15-at-21-39-45\/#main\" data-orig-file=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?fit=2006%2C902&amp;ssl=1\" data-orig-size=\"2006,902\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen-Shot-2021-02-15-at-21.39.45\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?fit=300%2C135&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?fit=620%2C279&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?resize=620%2C279&#038;ssl=1\" alt=\"\" class=\"wp-image-1343\" srcset=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?resize=1024%2C460&amp;ssl=1 1024w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?resize=300%2C135&amp;ssl=1 300w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?resize=768%2C345&amp;ssl=1 768w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?resize=1536%2C691&amp;ssl=1 1536w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?resize=845%2C380&amp;ssl=1 845w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?w=2006&amp;ssl=1 2006w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?w=1240&amp;ssl=1 1240w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.45.png?w=1860&amp;ssl=1 1860w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/figure>\n\n\n\n<p>After running my playbook again it looks like everything was in fact in order.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"283\" data-attachment-id=\"1344\" data-permalink=\"https:\/\/io.bainwerx.com\/blog\/cluster-management-with-ansible\/screen-shot-2021-02-15-at-21-39-57\/#main\" data-orig-file=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?fit=2016%2C920&amp;ssl=1\" data-orig-size=\"2016,920\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"Screen-Shot-2021-02-15-at-21.39.57\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?fit=300%2C137&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?fit=620%2C283&amp;ssl=1\" src=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?resize=620%2C283&#038;ssl=1\" alt=\"\" class=\"wp-image-1344\" srcset=\"https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?resize=1024%2C467&amp;ssl=1 1024w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?resize=300%2C137&amp;ssl=1 300w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?resize=768%2C350&amp;ssl=1 768w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?resize=1536%2C701&amp;ssl=1 1536w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?resize=833%2C380&amp;ssl=1 833w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?w=2016&amp;ssl=1 2016w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?w=1240&amp;ssl=1 1240w, https:\/\/i0.wp.com\/io.bainwerx.com\/blog\/wp-content\/uploads\/2021\/02\/Screen-Shot-2021-02-15-at-21.39.57.png?w=1860&amp;ssl=1 1860w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/figure>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that I have my &#8220;base cluster&#8221; up and running with ProxMox, it&#8217;s time to turn my attention to how I&#8217;m going to manage it. After creating a new management user I setup ssh certs to permit ssh traffic from the master to slave systems. Instalation of Ansible was a breeze $ sudo apt update &hellip; <a href=\"https:\/\/io.bainwerx.com\/blog\/cluster-management-with-ansible\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Cluster Management with Ansible<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[14,105],"tags":[],"class_list":["post-1342","post","type-post","status-publish","format-standard","hentry","category-computers","category-virtualization","without-featured-image"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p8DcKP-lE","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/posts\/1342","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/comments?post=1342"}],"version-history":[{"count":1,"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/posts\/1342\/revisions"}],"predecessor-version":[{"id":1345,"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/posts\/1342\/revisions\/1345"}],"wp:attachment":[{"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/media?parent=1342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/categories?post=1342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/io.bainwerx.com\/blog\/wp-json\/wp\/v2\/tags?post=1342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}