Skip to content
This repository has been archived by the owner on Dec 3, 2024. It is now read-only.

Fix #10 #21

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix #10 #21

wants to merge 3 commits into from

Conversation

rauchrob
Copy link
Owner

@rauchrob rauchrob commented Oct 4, 2015

A prototype for implementing #10. It still has some issues:

  • The new kallithea_version fact is not tested (beaker doesn't do it, because pluginsync is disabled on puppet apply - maybe we could 'sync it by hand' during acceptance tests?
  • Management of /etc/kallithea.yml is not idempotent - needs to be sorted somehow...

The implementation of the `kallithea_version` fact has been heavily
inspired by the elasticsearch/elasticsearch module.

The idea is to get the Kallithea version from the output of `pip version
kallithea`. However, the problem is that the path to the pip binary of
Kallitheas virtualenv depends on `$kallithea::install::venv`, which is
unknown on the puppet client. Therefore, we first store this information
on the Puppet client in `/etc/kallithea.yml` which enables us to read
them later, when the `kallithea_version` fact needs to be evaluated.

The concept of persisting interesting information on the client side
seems to be so useful, that I have generalized this by means of the
`settings_store` class and the `stored_setting` defined type. They are
based on the richardc/datacat module, which allows us to merge the data
given by multiple `stored_setting` declarations before they get written
to `/etc/kallithea.yml`.

refs #10
I realized that the pluginsync is disabled on `puppet apply` runs, thus
our custom `kallithea_version` fact will not be available during beaker
runs.
@rauchrob rauchrob added this to the 0.4 milestone Oct 4, 2015
@rauchrob rauchrob modified the milestones: 0.4, 0.5 Dec 7, 2015
@rauchrob rauchrob modified the milestones: 1.0, 0.5 Jan 19, 2016
@rauchrob rauchrob modified the milestones: 1.0, 2.0 Feb 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant