Ask Your Question

Error: /Stage[main]/Apache2::Service/Service[Apache2]: Could not evaluate: Could not find init script or upstart conf file for 'Apache2'

asked 2018-05-10 10:46:14 -0600

thota gravatar image

updated 2018-05-11 07:17:46 -0600

DarylW gravatar image

I am new to puppet, learning puppet through the online puppet documentation. i have put this code in init.pp file

 class apache2::install inherits apache2::variables {
  package { $apache2::variables::packagename:
    ensure => installed,

class apache2::service inherits apache2::variables {
  service { $apache2::variables::packagename:
    ensure => stopped,
    require => Class['apache2::install'],
edit retag flag offensive close merge delete


Why don't use puppetlabs-apache module?

c4f4t0r gravatar imagec4f4t0r ( 2018-05-14 03:19:52 -0600 )edit

I second that. Take it from someone who did a lot of work to invent an Apache module only to find out one already existed: Use puppetlabs-apache module.

bschonecker gravatar imagebschonecker ( 2018-05-14 09:29:22 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-05-11 09:47:29 -0600

thota gravatar image

This issue is resolved now, in the variables file I have defined the package name as Apache2 which is incorrect, correcting the package name to apache2 resolved my issue

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


Asked: 2018-05-10 10:46:14 -0600

Seen: 48 times

Last updated: May 11