{"id":245,"date":"2015-01-25T14:39:00","date_gmt":"2015-01-25T14:39:00","guid":{"rendered":"https:\/\/questy.org\/?p=245"},"modified":"2024-09-26T19:04:58","modified_gmt":"2024-09-26T19:04:58","slug":"vagrant-and-docker-love","status":"publish","type":"post","link":"https:\/\/questy.org\/index.php\/2015\/01\/25\/vagrant-and-docker-love\/","title":{"rendered":"Vagrant and Docker Love"},"content":{"rendered":"\n<p>Not a full-on post, but more a note for myself to both investigate and test this\u2026 It would seem that Vagrant has now added provisioner support for Docker here. Be looking for a new post on this in the near future!<\/p>\n\n\n\n<p>I\u2019m working steadily to start off the new year, so my posting may be somewhat sporadic, but I will continue to blog Puppet fundamentals, supporting tools, and related items as I have the chance.<\/p>\n\n\n\n<p>And in that vein, I encountered something this week I wanted to share with you.<\/p>\n\n\n\n<p>It would seem that the new feature whereby you can include facter facts in a module for pluginsync to distribute them, but using the new mechanism of:<\/p>\n\n\n\n<p>\/modulename\/facts.d\/external_fact<\/p>\n\n\n\n<p>is not 100% reliable when distributing those facts. By this, I mean the following observed behavior.<\/p>\n\n\n\n<p>You create your fact and place it in the above directory. Say, a shell script that gives you a value. You make your fact executable, and running it natively at the shell works perfectly. You do a puppet agent run, and the fact syncs to the agent machine, but never becomes available in the facter table. You find the sync&#8217;ed location of the fact (in the losgs from the sync) and run it manually, and it works perfectly. I spoke with some folks at Puppet just in a conversation describing what I was seeing and they suggested the following workaround:<\/p>\n\n\n\n<p>Make the fact a file resource and place the fact in \/etc\/puppetlabs\/facter\/facts.d. This makes the fact available to the facter system, and displays correctly in the facter table and responds to the facter -p as expected.<\/p>\n\n\n\n<p>That\u2019s it for now! Look for more to come on workflows and tools in the very near future.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Not a full-on post, but more a note for myself to both investigate and test this\u2026 It would seem that Vagrant has now added provisioner support for Docker here. Be looking for a new post on this in the near future! I\u2019m working steadily to start off the new year, so my posting may be [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false},"version":2}},"categories":[3],"tags":[],"class_list":["post-245","post","type-post","status-publish","format-standard","hentry","category-puppet-news"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_likes_enabled":true,"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/posts\/245","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":1,"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/posts\/245\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/questy.org\/index.php\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}