{"id":2078,"date":"2017-06-01T14:08:46","date_gmt":"2017-06-01T18:08:46","guid":{"rendered":"http:\/\/blog.domb.net\/?p=2078"},"modified":"2017-06-01T14:09:03","modified_gmt":"2017-06-01T18:09:03","slug":"cloudforms-4-5-rhv-4-1-management-by-ansible-automation-inside-part-2","status":"publish","type":"post","link":"https:\/\/blog.domb.net\/?p=2078","title":{"rendered":"CloudForms 4.5 RHV 4.1 Management by Ansible Automation Inside (Part 2 Create a Button)"},"content":{"rendered":"<p>Part 2 is going to show you how you can run the catalog item created in Part 1 from a custom button.<\/p>\n<p>Go to Automation &#8211; Automate &#8211; Customization &#8211; Buttons.<\/p>\n<p>Click on Cluster \/ Deployment role and create a new Button Group<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2079\" src=\"http:\/\/blog.domb.net\/wp-content\/uploads\/Selection_189.png\" alt=\"\" width=\"896\" height=\"274\" srcset=\"https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_189.png 896w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_189-300x92.png 300w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_189-768x235.png 768w\" sizes=\"auto, (max-width: 896px) 100vw, 896px\" \/><\/p>\n<p>Now click on Configuration &#8211; Add New Button and add the following content and click save<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2081\" src=\"http:\/\/blog.domb.net\/wp-content\/uploads\/Selection_191.png\" alt=\"\" width=\"1039\" height=\"842\" srcset=\"https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_191.png 1039w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_191-300x243.png 300w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_191-768x622.png 768w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_191-1024x830.png 1024w\" sizes=\"auto, (max-width: 1039px) 100vw, 1039px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Go to Compute &#8211; Infrastructure Clusters \/ Deployment Roles and select the RHV Cluster. You will now see the following<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2082\" src=\"http:\/\/blog.domb.net\/wp-content\/uploads\/Selection_192.png\" alt=\"\" width=\"792\" height=\"148\" srcset=\"https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_192.png 792w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_192-300x56.png 300w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_192-768x144.png 768w\" sizes=\"auto, (max-width: 792px) 100vw, 792px\" \/><\/p>\n<p>From here click on the RHV drop down to select the manage_ansible_hosts_state dialog<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2083\" src=\"http:\/\/blog.domb.net\/wp-content\/uploads\/Selection_193.png\" alt=\"\" width=\"748\" height=\"125\" srcset=\"https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_193.png 748w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_193-300x50.png 300w\" sizes=\"auto, (max-width: 748px) 100vw, 748px\" \/><\/p>\n<p>Fill out the correct values and hit submit. Of course you could also add a dynamic drop-down which adds all the RHV hosts information if you wanted to.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2084\" src=\"http:\/\/blog.domb.net\/wp-content\/uploads\/Selection_194.png\" alt=\"\" width=\"1614\" height=\"423\" srcset=\"https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_194.png 1614w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_194-300x79.png 300w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_194-768x201.png 768w, https:\/\/blog.domb.net\/wp-content\/uploads\/Selection_194-1024x268.png 1024w\" sizes=\"auto, (max-width: 1614px) 100vw, 1614px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Part 2 is going to show you how you can run the catalog item created in Part 1 from a custom button. Go to Automation &#8211; Automate &#8211; Customization &#8211; Buttons. Click on Cluster \/ Deployment role and create a new Button Group Now click on Configuration &#8211; Add New Button and add the following&#8230;<\/p>\n","protected":false},"author":2,"featured_media":2048,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[64,37,4],"tags":[67,111,112,29],"class_list":["post-2078","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ansible","category-cloudforms","category-virtualization","tag-ansible","tag-ansible-automation-inside","tag-button","tag-cloudforms"],"_links":{"self":[{"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts\/2078","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=2078"}],"version-history":[{"count":2,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts\/2078\/revisions"}],"predecessor-version":[{"id":2086,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/posts\/2078\/revisions\/2086"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=\/wp\/v2\/media\/2048"}],"wp:attachment":[{"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2078"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2078"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.domb.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2078"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}