Ask Your Question
0

Unable to locate package tomcat

asked 2014-10-19 17:53:40 -0500

mvp-gomes gravatar image

I started to use puppet recently, and i'm trying to deploy a web server using gce_compute and apache-tomcat. To deploy the web server i install the modules puppetlabs-java and puppetlabs-tomcat, and to create an instance of apache-tomcat i'm using the code provided by puppet :

class { 'java': }
class { 'tomcat': }
class { 'epel': }->
tomcat::instance { 'default':
   install_from_source => false,
   package_name        => 'tomcat',
 }->
 tomcat::service { 'default':
    use_jsvc     => false,
    use_init     => true,
    service_name => 'tomcat',
 }

But when my agent pulls the manifest i'm getting this error:

**Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install tomcat' returned 100: Reading package lists...

puppet-agent[3302]: Building dependency tree...

puppet-agent[3302]: Reading state information...

puppet-agent[3302]: E: Unable to locate package tomcat**

Can you help me to figure out why this happens and how i fix this error. Thanks in advance.

edit retag flag offensive close merge delete

Comments

what distribution are you using ? That's more a guess, but maybe the package name provided in the tomcat::instance is wrong.

golja gravatar imagegolja ( 2014-10-20 09:31:07 -0500 )edit

Yes golja i already found the error, the package name must be declared with the tomcat version, like tomcat6 or tomcat7

mvp-gomes gravatar imagemvp-gomes ( 2014-10-20 09:57:24 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-20 10:00:36 -0500

mvp-gomes gravatar image

My question was answered by daxlerod:

"That error comes from apt-get. Puppet uses a package manager available on the system it is running on. In the case of Debian, it uses apt.

If you ran apt-get install tomcat you would get the same error, because there is no package named simply tomcat. Perhaps you mean tomcat6 or tomcat7? "

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-19 17:53:40 -0500

Seen: 690 times

Last updated: Oct 20 '14