Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency php-zts missing? #29

Open
alex-harvey-z3q opened this issue Aug 30, 2014 · 3 comments
Open

Dependency php-zts missing? #29

alex-harvey-z3q opened this issue Aug 30, 2014 · 3 comments

Comments

@alex-harvey-z3q
Copy link

I have inherited a system using this puppet-nagios module and the person who set it up has applied a hack to install a missing php-zts package as follows -

diff --git a/manifests/server.pp b/manifests/server.pp
index 8f405a7..2f27780 100644
--- a/manifests/server.pp
+++ b/manifests/server.pp
@@ -193,6 +193,9 @@ class nagios::server (
     class { '::php::mod_php5': }
     php::ini { '/etc/php.ini': }
     if $php_apc { php::module { 'pecl-apc': } }
+    package { 'php-zts':
+      ensure => installed
+    }
   }

   # Configuration files

I would like to fix this properly by either submitting a patch upstream or refactoring appropriately. Looking at the code I wonder if the correct solution would be to submit a patch against thias-php?

@alex-harvey-z3q
Copy link
Author

Some feedback on these issues would enable me to submit an appropriate pull request. Thanks! :)

@thias
Copy link
Owner

thias commented Sep 18, 2014

Well... I don't really know what to say.... let's try anyway :

Do things not work without the php-zts package installed? (because it does for me!)

Depending on the above, either it's completely optional and you should just add that to your node, or use something like php::module { 'zts': } to get proper ordering and hopefully web server reload, either it's required and I'll need to add it to the module.

I would also accept a pull request to make the installation of that package optional for the nagios::server class.

@alex-harvey-z3q
Copy link
Author

I see. I will need to rebuilt one of the nagios servers then myself to figure out why the package was added.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants