-
Notifications
You must be signed in to change notification settings - Fork 231
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
Packages Update After Adding PPA #93
Comments
I can confirm that the lastest clone of the formula fails to perform an 'apt-get update' or 'aptitude update' and refresh the packages DB so that the new packages are not seen when attempting to then install. |
I'm not sure if I've tracked down the issue or not yet but closely examining the output on a host being spun up it looks like the issue lies somewhere within https://github.com/saltstack-formulas/php-formula/blob/master/php/ng/installed.jinja#L29-L48. I'm basing that on the fact that when I check the output I'm seeing the following while running php.ng state:
the php_ppa_env_php obviously runs as you see the output but then the php_ppa_php that has the pkgrepo.managed and pkg.latest don't execute because 1) the php_ppa_env_php actually installed the source.list entry needed and 2) since php_ppa_php's pkgrepo didn't change so the pkg.latest doesn't fire off. However if I re-run the php.ng state a second time it will succeed. We're attempting to install PHP 5.6 but should see the same results. |
I am having an issue when I add in a different PPA in the pillar data to install PHP7.0:
The PPA gets added but
apt-get update
is not run so the php7.0 package isn't found.I worked around this by adding the update to line 31 of php/ng/installed.jinja:
I was also looking at lines 36–48 of php/ng/installed.jinja but adding in
- refresh_db: True
topkgrepo.managed
didn't help.Is there a method I am overlooking that is in the formula already?
The text was updated successfully, but these errors were encountered: