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 issue #73

Open
joshuaspence opened this issue Sep 1, 2015 · 1 comment
Open

Dependency issue #73

joshuaspence opened this issue Sep 1, 2015 · 1 comment
Assignees

Comments

@joshuaspence
Copy link
Contributor

I am getting the following error when trying to use this module to install php5-cli:

/Stage[main]/Php::Ini[/etc/php5/cli/php.ini]/File[/etc/php5/cli/php.ini]/ensure) change from absent to file failed: Could not set 'file on ensure: cannot generate tempfile `/etc/php5/cli/php.ini20150831-7938-1j2ducm-9' at /etc/puppet/ext_modules/php/manifests/ini.pp:117

The puppet code is as follows:

class { '::php::cli':
  ensure  => 'latest',
  inifile => '/etc/php5/cli/php.ini',
}

php::ini { '/etc/php5/cli/php.ini':
  // ...
}

The issue seems to be that Package['php5-cli'] depends on File['/etc/php5/cli/php.ini'], which does not exist before the php5-cli package is installed. I actually think that this dependency should be inverted (i.e. that File['/etc/php5/cli/php.ini'] should depend on Package['php5-cli']).

@thias
Copy link
Owner

thias commented Oct 15, 2015

Could you create a pull request with what works for you, so that I can review it?

@thias thias self-assigned this Oct 15, 2015
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