{"id":223,"date":"2016-02-09T22:03:03","date_gmt":"2016-02-09T22:03:03","guid":{"rendered":"https:\/\/sysadminnightmare.com\/?p=223"},"modified":"2016-02-09T22:03:03","modified_gmt":"2016-02-09T22:03:03","slug":"changing-name-of-salt-minion","status":"publish","type":"post","link":"https:\/\/sysadminnightmare.com\/index.php\/2016\/02\/09\/changing-name-of-salt-minion\/","title":{"rendered":"Changing Name of Salt-Minion"},"content":{"rendered":"<p>Ran into an issue the other day when installing and registering a Salt Minion with its master.<\/p>\n<p>The Host name wasn&#8217;t exactly what my OCD wanted when it registered its Key with the Master, so I needed to change the name of the key.<\/p>\n<ol>\n<li>Stop the Salt-Minion Service (service salt-minion stop)<\/li>\n<li>Delete the current keys (rm \/etc\/salt\/pki\/minion\/minion.pub and minion.pem)<\/li>\n<li>Change the minions id in \/etc\/salt\/minion_d<\/li>\n<li>on the Salt master Delete the key (Salt-key &#8211;delete &lt;key&gt;)<\/li>\n<li>Restart the Salt minion service (service salt-minion start)<\/li>\n<li>on the Salt Master Accept the key (salt-key &#8211;accept-all (or key))<\/li>\n<\/ol>\n<p>Now to go back and fix all the other keys so they satisfy my OCD.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ran into an issue the other day when installing and registering a Salt Minion with its master. The Host name wasn&#8217;t exactly what my OCD wanted when it registered its Key with the Master, so I needed to change the name of the key. Stop the Salt-Minion Service (service salt-minion&#8230; <a class=\"continue-reading-link\" href=\"https:\/\/sysadminnightmare.com\/index.php\/2016\/02\/09\/changing-name-of-salt-minion\/\"> 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":{"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":[2,56],"tags":[],"class_list":["post-223","post","type-post","status-publish","format-standard","hentry","category-admin","category-linux"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2bgeE-3B","_links":{"self":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/comments?post=223"}],"version-history":[{"count":1,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions"}],"predecessor-version":[{"id":224,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/posts\/223\/revisions\/224"}],"wp:attachment":[{"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/media?parent=223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/categories?post=223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sysadminnightmare.com\/index.php\/wp-json\/wp\/v2\/tags?post=223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}