augeas-lenses filter for PHP files doesn't match php7.0-* files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
augeas (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Won't Fix
|
Medium
|
Raphaël Pinson |
Bug Description
[Impact]
Automation of configuration editing cannot be done for PHP installations on Xenial using augeas. The location of php configuration files moved in php7, to a directory augeas doesn't look in.
[Test Case]
- Create lxc container
$ sudo apt-get install php7.0-cli
$ sudo apt-get install augeas-lenses augeas-tools
$ augtool ls /files/etc/php
## (no output)
- Add the PPA
$ augtool ls /files/etc/php
7.0/ = (none)
[Regression Potential]
Since this makes the PHP configuration accessible to augeas where it wasn't before, behaviors to watch for would relate to php configuration issues when augeas (or puppet) are in use. It is expected that by now most administrators will have worked around the problem by using some other method to configure php, so it is unlikely users would experience behavior regression.
[Fix]
This adds the "/etc/php/
following what upstream has done, and that we carry in newer versions of
Ubuntu.
[Discussion]
While it is true that Xenial is old at this point, enterprises that use
configuration automation software like augeas sometimes still need older
versions of Ubuntu (e.g. via ESM). PHP has been a popular choice for
many enterprises in the past, so it is expected that PHP 5 -> 7.0
upgrades are still relevant. So, given that, plus the simplicity of
this fix it seems still worthy of SRU.
[Original Report]
The filter list in /usr/share/
/etc/php*/*/*.ini
/etc/php*
This will match the php5-fpm package files:
/etc/php5/
/etc/php5/
But not the php7.0-fpm package files:
/etc/php/
/etc/php/
Puppet handles this badly because augeas won't report that anything has changed trying to set options in /etc/php/
Debug: Augeas[
Debug: Augeas[
Debug: Augeas[
Debug: Augeas[
augeas-lenses:
Installed: 1.4.0-0ubuntu1
Candidate: 1.4.0-0ubuntu1
Version table:
*** 1.4.0-0ubuntu1 500
500 http://
500 http://
100 /var/lib/
php7.0-fpm:
Installed: 7.0.4-7ubuntu2ppa1
Candidate: 7.0.4-7ubuntu2ppa1
Version table:
*** 7.0.4-7ubuntu2ppa1 1000
1000 http://
100 /var/lib/
7.0.4-7ubuntu2 500
500 http://
affects: | ubuntu → augeas (Ubuntu) |
tags: | added: server-next |
Changed in augeas (Ubuntu Xenial): | |
assignee: | nobody → Jon Grimm (jgrimm) |
Changed in augeas (Ubuntu Xenial): | |
assignee: | Jon Grimm (jgrimm) → Raphaël Pinson (raphink) |
description: | updated |
Thank you for taking the time to report this bug and helping to make Ubuntu better.
I believe upstream monitor bugs for this package. I'm interested to know how upstream plan to fix this - we can cherry-pick their changes.