Using:
postgresql-cookbook 3.0.0
ubuntu 12.04 on vagrant (but I can replicate this behaviour on a 12.04
VM in teh cloud)
The install attempts to restart the pg server nmd is suddenly very
confused about the version
Error executing action restart on resource ‘service[postgresql]’
---- Begin output of /etc/init.d/postgresql restart ----
STDOUT: * Restarting PostgreSQL 9.2 database server
[2013-05-24T11:05:41+00:00] FATAL:
Chef::Exceptions::EnclosingDirectoryDoesNotExist:
template[/etc/postgresql/9.1/main/postgresql.conf] (postgresql::server
line 60) had an error:
Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory
/etc/postgresql/9.1/main does not exist.
Using:
postgresql-cookbook 3.0.0
ubuntu 12.04 on vagrant (but I can replicate this behaviour on a 12.04
VM in teh cloud)
The install attempts to restart the pg server nmd is suddenly very
confused about the version
Error executing action restart on resource 'service[postgresql]'
---- Begin output of /etc/init.d/postgresql restart ----
STDOUT: * Restarting PostgreSQL 9.2 database server
[2013-05-24T11:05:41+00:00] FATAL:
Chef::Exceptions::EnclosingDirectoryDoesNotExist:
template[/etc/postgresql/9.1/main/postgresql.conf] (postgresql::server
line 60) had an error:
Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory
/etc/postgresql/9.1/main does not exist.
Setting those attributes is the way this cookbook work, due to the
fact that it is necessary to change standard RHEL naming conventions.
This approach gives you the finest grained contro and, in my opinioni,
you could need such kind of control because of possible conflicts with
RHEL packages dependencies.
Off course postgresql cookbook could include also an automation for
that choices, but, in my opinion, it should be a little more
sophisticated that your proposed patch.
First of all I would check if I have
node['postgresql']['enable_pgdg_yum'] = true
and not if node['postgresql']['version'] != '8.4'
Than I would also manage all ovverrides, as explained inside readme.
On top of that I would introduce a boolean variable to choose if I
want all that stuff automatically managed, or if want fine grained
control.
Using:
postgresql-cookbook 3.0.0
ubuntu 12.04 on vagrant (but I can replicate this behaviour on a 12.04
VM in teh cloud)
The install attempts to restart the pg server nmd is suddenly very
confused about the version
Error executing action restart on resource 'service[postgresql]'
---- Begin output of /etc/init.d/postgresql restart ----
STDOUT: * Restarting PostgreSQL 9.2 database server
[2013-05-24T11:05:41+00:00] FATAL:
Chef::Exceptions::EnclosingDirectoryDoesNotExist:
template[/etc/postgresql/9.1/main/postgresql.conf] (postgresql::server
line 60) had an error:
Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory
/etc/postgresql/9.1/main does not exist.
I didn't actually mean for this to turn into a discussion about my pull
request, maybe move the commenting on the github pull request itself?
(Or the opscode ticket).
Anyway, going back to the original bit.
Re-reading the documentation I can see why Toby didn't make the changes
to all the settings since IMHO the apt section of the README could do
with being clearer (Having an example like the yum section would be good
for instance and explicitly saying that you will need to set them
manually.).
Re-reading the yum section in light of what you have said it makes more
sense.
But since chef tries to automatically configure some of those attributes
(packages etc.) I think it violates POLS to not do them all. It should
be an all or nothing approach which was why I wrote the pull request.
Setting those attributes is the way this cookbook work, due to the
fact that it is necessary to change standard RHEL naming conventions.
This approach gives you the finest grained contro and, in my opinioni,
you could need such kind of control because of possible conflicts with
RHEL packages dependencies.
Off course postgresql cookbook could include also an automation for
that choices, but, in my opinion, it should be a little more
sophisticated that your proposed patch.
First of all I would check if I have
node['postgresql']['enable_pgdg_yum'] = true
and not if node['postgresql']['version'] != '8.4'
Than I would also manage all ovverrides, as explained inside readme.
On top of that I would introduce a boolean variable to choose if I
want all that stuff automatically managed, or if want fine grained
control.
Using:
postgresql-cookbook 3.0.0
ubuntu 12.04 on vagrant (but I can replicate this behaviour on a 12.04
VM in teh cloud)
The install attempts to restart the pg server nmd is suddenly very
confused about the version
Error executing action restart on resource 'service[postgresql]'
---- Begin output of /etc/init.d/postgresql restart ----
STDOUT: * Restarting PostgreSQL 9.2 database server
[2013-05-24T11:05:41+00:00] FATAL:
Chef::Exceptions::EnclosingDirectoryDoesNotExist:
template[/etc/postgresql/9.1/main/postgresql.conf] (postgresql::server
line 60) had an error:
Chef::Exceptions::EnclosingDirectoryDoesNotExist: Parent directory
/etc/postgresql/9.1/main does not exist.