title: How to run puppet/systemctl inside docker container centos7
body: <p>My question revolves around the following problem/error.</p>
  
  <p>Service/Service[jenkins]: Provider redhat is not functional on this host. OR directly that D-BUS not available.</p>
  
  <p>Let's say for instance i'm running packer, which invokes a puppet-masterless provisioner on a docker builder.</p>
  
  <p>The puppet code base &amp; contrib modules for the most part will attempt to manage the 'service' of the installed module. For instance, lets take Jenkins as an example. Jenkins puppet module although good, will fail, on packer builds to a centos7 &amp; puppet docker host. As systemctl will not be available.</p>
  
  <p>At this moment in time i'm confused how this would/will ever work for puppet/ansible code bases which attempt to manage the service. Without considerable extra effort to the codebase.</p>
  
  <p>I have considered the contain running being /sbin/init but still feels a bit hacky.</p>
  
  <p>Can anyone shed any light on this issue for me?</p>