{"id":165,"date":"2012-01-04T10:14:27","date_gmt":"2012-01-04T15:14:27","guid":{"rendered":"http:\/\/blog.domb.net\/?p=165"},"modified":"2012-02-22T08:05:48","modified_gmt":"2012-02-22T13:05:48","slug":"puppet-dashboard-commandline-tasks","status":"publish","type":"post","link":"https:\/\/blog.domb.net\/?p=165","title":{"rendered":"Puppet Dashboard command line tasks"},"content":{"rendered":"<p>We run a quite early version of puppet-dashboard (version 1.1.0).\u00a0 In the dashboard I have the possibility to delete nodes, create nodes, create classes and groups&#8230; As a system engineer I want to be able to do the tasks on the command line. So I researched a little and found that if you &#8220;cd&#8221; into the \/usr\/share\/puppet-dashboard\/ and execute:<\/p>\n<p>#rake -T<\/p>\n<p>you get a list of possible commands:<\/p>\n<p>(in \/usr\/share\/puppet-dashboard)<br \/>\nrake cert:create_key_pair\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Create a public\/private key pair for communication with the Puppet Master<br \/>\nrake cert:request\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Submit a certificate request to the Puppet Master<br \/>\nrake cert:retrieve\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 # Retrieve a certificate from the Puppet Master<br \/>\n&#8230;..<\/p>\n<p>Wow nice! Then I search for rake <strong>node:delete or rake node:del.<\/strong> Surprisingly not implemented in v1.1.0. But I was quite sure that in the newer version its implemented. Github Url:\u00a0https:\/\/github.com\/saj\/puppet-dashboard\/commit\/090538f99c743be2ed489a7c725600fdc30635d6 gave me the answer. Thank you saj for that fix.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>We run a quite early version of puppet-dashboard (version 1.1.0).\u00a0 In the dashboard I have the possibility to delete nodes, create nodes, create classes and groups&#8230; As a system engineer I want to be able to do the tasks on the command line. So I researched a little and found that if you &#8220;cd&#8221; into&#8230;<\/p>\n","protected":false},"author":2,"featured_media":166,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[6],"tags":[],"class_list":["post-165","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-puppet"],"_links":{"self":[{"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts\/165","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=165"}],"version-history":[{"count":6,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions"}],"predecessor-version":[{"id":227,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts\/165\/revisions\/227"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/media\/166"}],"wp:attachment":[{"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=165"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=165"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=165"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}