Skip to content

(#16698) Do not set Node cache_terminus for storedconfigs#1220

Merged
joshcooper merged 2 commits intopuppetlabs:3.0.xfrom
zaphod42:ticket/3.0.x/16698-enc-does-not-work-with-store-configs
Oct 11, 2012
Merged

(#16698) Do not set Node cache_terminus for storedconfigs#1220
joshcooper merged 2 commits intopuppetlabs:3.0.xfrom
zaphod42:ticket/3.0.x/16698-enc-does-not-work-with-store-configs

Conversation

@zaphod42
Copy link
Contributor

The hook on the storedconfigs setting would try and setup the terminuses
so that they were properly wired up to the store configs. One part of this
was to set the cache_terminus for the Puppet::Node to
:store_configs. However, up until commit
5a79d9a this was overridden by the master
application to be :yaml. That commit removed this so that an ENC was
able to be authoritative, but once it was removed the store configs
terminus was left on.

This commit removes the cache for the Puppet::Node since there is no
need for it and all it does is interfere with fetching node data. The
Puppet::Node::Facts store configs code will actually create the entry in
the host table that is needed.

The hook on the storedconfigs setting would try and setup the terminuses
so that they were properly wired up to the store configs. One part of
this was to set the `cache_terminus` for the `Puppet::Node` to
`:store_configs`. However, up until commit
5a79d9a this was overridden by the
master application to be `:yaml`. That commit removed this so that an
ENC was able to be authoritative, but once it was removed the store
configs cache terminus was left on and interferred with the ENC.

This commit removes the cache for the `Puppet::Node` since there is no
need for it and all it does is interfere with fetching node data. The
`Puppet::Node::Facts` store configs code will actually create the entry
in the `host` table that is needed.
This adds a simple test that the ENC is not shadowed by the store
configs. There is no check that the store configs actually can be used.
That is another whole that should be plugged at another time.
@joshcooper joshcooper merged commit 5a7fd97 into puppetlabs:3.0.x Oct 11, 2012
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

Successfully merging this pull request may close these issues.

2 participants