title: Puppet: unable to locate package tomcat
body: <p>I started to use puppet recently, and i'm trying to deploy a web server using <code>gce_compute</code> and <code>apache-tomcat</code>. To deploy the web server i install the modules <code>puppetlabs-java</code> and <code>puppetlabs-tomcat</code>, and to create an instance of <code>apache-tomcat</code> i'm using the code provided by <code>puppet</code> :</p>
  <pre><code>class { 'java': }
  class { 'tomcat': }
  class { 'epel': }-&gt;
  tomcat::instance { 'default':
    install_from_source =&gt; false,
    package_name        =&gt; 'tomcat',
  }-&gt;
  tomcat::service { 'default':
    use_jsvc     =&gt; false,
    use_init     =&gt; true,
    service_name =&gt; 'tomcat',
  }
  </code></pre>
  <p>But when my agent pulls the manifest i'm getting this error:</p>
  <blockquote>
  <p>Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install tomcat' returned 100: Reading package lists...</p>
  <p>puppet-agent[3302]: Building dependency tree...</p>
  <p>puppet-agent[3302]: Reading state information...</p>
  <p>puppet-agent[3302]: E: Unable to locate package tomcat</p>
  </blockquote>
  <p>Can you help me to figure out why this happens and how i fix this error. Thanks in advance.</p>