Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9020117
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T04:56:11+00:00 2026-06-16T04:56:11+00:00

I try to write a puppet configuration in order to install lamp env. But

  • 0

I try to write a puppet configuration in order to install lamp env.

But i have an issue with notify option.

I have an apache conf:

class apache inherits apache::params {
    package { 'apache':
        name => "${apache::params::package}",
        ensure => present
    }

    service { 'apache':
        ensure    => running,
        name      => $apache::params::service,
        enable    => true,
        subscribe => Package['apache'],
    }
}

and and php module conf:

define php::module(
    $notify         = $php::params::notify,
    $package_prefix = $php::params::module_package_prefix
) {
    package { "php-module-${name}":
        ensure  => present,
        name    => "${package_prefix}${name}",
        notify  => Service['apache'],
        require => [Class['apache'], Package['php', 'php-dev']]
    }
}

but when I launch puppet I have this error:

Error: Parameter notify failed on Php::Module[mcrypt]: No title provided and "apache" is not a valid resource reference

I don’t understand why it said that apache service is not a valid resources ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T04:56:12+00:00Added an answer on June 16, 2026 at 4:56 am

    I think there might be 2 issues here:

    1) Puppet doesn’t like this line in php::module:

        $notify         = $php::params::notify,
    

    Can you try to remove that or check what is in $php::params::notify? (I don’t see you using it)

    2) Did you have something like

    include apache
    

    in your site.pp? The class still needs to be declared before you can reference the contained resources.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I try to write a daemon in python. But I have no idea how
I try to write :ab in Vim for faster coding but the question is
I try to write a site with CodeIgniter but I've a problem with PHP.
I try write simple kernel module (v3.6) in nasm, but insmod say me: $
I try to write simple application using OpenMP. Unfortunately I have problem with speedup.
i try to write my own control.But my control' html has problem: Look like
I try to write to a large file, but it seems like it does
try to write a composite component that allows mutltiple text inputs. I read that
I try to write Activator action for changing current song rating. I now that
I try to write a Facebook app. This app will communicate with a rfid

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.