title: Puppet does not add my service to start up
body: <p>I have this puppet module (monit) in which I declare monit service to be enabled (a.k.a to be started when the machine booted)</p>
  
  <pre><code>class monit {
      $configdir = "/etc/monit.d"
  
      package {
          "monit": ensure =&gt; installed;
      }
  
      service { "monit":
          ensure =&gt; running,
          enable =&gt; true,
          require =&gt; Package["monit"],
          provider =&gt; init;
      }
  
      file {
          '/etc/monit.d':
              ensure =&gt; directory;
          '/etc/monit.conf':
              content =&gt; template('monit/monitrc.erb'),
              mode =&gt; 0600,
              group =&gt; root,
              require =&gt; File['/etc/monit.d'],
              before =&gt; Service[monit],
              notify =&gt; Service[monit],
      }
  }
  </code></pre>
  
  <p>I then included with <code>include monit</code> inside default node.
  However, when I apply this configuration, puppet is not setting monit as a start up service (use chkconfig --list monit just display 'off' and 'off')</p>
  
  <p>However, if I run <code>puppet apply -e 'service { "monit": enable =&gt; true, } '</code> then monit is added to start up properly.</p>
  
  <p>Am I doing any thing wrong here? (Puppet 2.7.6)</p>
  
  <p>The full configuration can be view at <a href="https://github.com/phuongnd08/Giasu-puppet" rel="noreferrer">https://github.com/phuongnd08/Giasu-puppet</a></p>