vagrant - Install apache module with puppet on Debian 7 -


my problem during provisionning of vagrant vm using puppet. error :

==> default: err: /stage[main]//service[apache2]: not evaluate: not find init script 'apache2'

my puppetfile following default.pp :

exec { path => [ "/bin/", "/sbin/" , "/usr/bin/", "/usr/sbin/" ] }  exec { 'apt-get update':     command => 'apt-get update',     timeout => 60,     tries   => 3 }  class { 'apt': }  $syspackages = ['python-software-properties', 'build-essential', 'apache2', 'apache2.2-common']     package { $syspackages:     ensure => "installed",     require => exec['apt-get update'], }  service { apache2:     ensure  => running,     enable  => true,     require => package['apache2', 'apache2.2-common'], } 

when not writting apache2 service, there no error thrown, there no /etc/init.d/apache2. guess that's why error thrown. how can avoid error, or more generaly how cleanly install module ?

any welcome.


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -