1. 13 Oct, 2015 3 commits
  2. 06 Oct, 2015 1 commit
  3. 16 Sep, 2015 1 commit
  4. 15 Sep, 2015 1 commit
    • Ryan Senior's avatar
      (PDB-135) Improve and reduce the number of UTF-8 warnings · d9ae1d76
      Ryan Senior authored
      Prior to this commit, any non-ASCII character found in a catalog would
      be replaced by /ufffd and a warning would be issued saying it found an
      invalid character. The code now takes into account the force_encoding
      done by to_pson and attempts to force_encode it back to UTF-8. For most
      cases this should be sufficient.
      
      There are times when binary data can appear in a catalog. In this case,
      we have characters that we can't represent in UTF-8. For this we
      continue to give users a warning. This warning now includes the command
      being submitted and the node the command is for. If users have debug
      logging enabled, context is given around where this bad character data
      occurred. Up to 100 characters before/after this bad data is included in
      the Puppet debug log.
      d9ae1d76
  5. 02 Sep, 2015 1 commit
  6. 13 Aug, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1855) Remove non-unchanged resources in terminus spec test · cd2d94d8
      Andrew Roetker authored
      This commit ensures that non-unchanged resources are removed from the
      unchanged resources terminus test to ensure that there is only one
      unchanged resource in our resources list such that we don't get bogged
      down by ordering issues which can be different on different versions of
      ruby.
      cd2d94d8
  7. 12 Aug, 2015 1 commit
  8. 11 Aug, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1851) Create new "resource-centric" wire-format for reports · 388272d7
      Andrew Roetker authored
      Previously PuppetDB report's wire-format used a flattened
      `resource_events`, where resources and events where merged together in
      the terminus and stored under the same model in PuppetDB.
      This commit adds a new report wire-format which uses a list of
      `resources` which each have a field `events` which is a list of events
      associated with the resource.
      388272d7
  9. 19 Jun, 2015 1 commit
    • Wyatt Alt's avatar
      (PDB-1629) fix relationships on resource aliases · 8cd5e0c8
      Wyatt Alt authored
      This corrects a bug where the terminus would scan for resource alias names
      using the wrong key, which would cause the list of aliases to fall through to
      an empty list.
      
      Correcting this made it clear that we were also incorrectly assuming that
      aliases within resources presented as arrays.
      8cd5e0c8
  10. 11 Jun, 2015 1 commit
  11. 10 Jun, 2015 1 commit
    • Russell Mull's avatar
      (PDB-1605) Don't log 404s in the terminus · aa0cbffd
      Russell Mull authored
      There are many cases when a 404 from puppetdb is a perfectly
      legitimate response, and a scary error message should not be logged.
      
      - In the failover http layer, only treat 'real-looking' 404s as
        not-found responses. Others are treated as errors. 
      
      - In the facts terminus, no longer log a warning on not-found responses. 
      aa0cbffd
  12. 09 Jun, 2015 1 commit
    • Ken Barber's avatar
      (PDB-1455 RE-5675) Various fixes to make AIO pathing work with ssl-setup & tests · 7864581a
      Ken Barber authored
      * Fixed module usage to now use the AIO pathing, this is not yet the default
      * Added pathing lookups to parts of the tests that still had /usr/bin/puppetdb
        hard-coded.
      * Adjusted 2 acceptance tests due to changes in how Puppet 4 emits events, and
        represents resource line indicators.
      * Switched back to to_pson, to clear failing tests in file_with_binary_template.rb,
        Puppet 4 still roughly uses to_pson anyway, while its unfortunate this issue
        can be returned to later.
      * ssl-setup now is an erb template.
      * ssl-setup now uses ezbake variables to decide what user to use: pe-puppetdb
        or puppetdb usually.
      Signed-off-by: default avatarKen Barber <ken@bob.sh>
      7864581a
  13. 05 Jun, 2015 1 commit
  14. 02 Jun, 2015 1 commit
  15. 21 May, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1485) Add default context root `/pdb/query` for PuppetDB Query API · eb19cda9
      Andrew Roetker authored
      This commit changes PuppetDB to server its query API at `/pdb/query`
      instead of `/` by default, making similar default configuration changes
      to the terminus. We do not expect, nor do we want or support, users
      changing this setting so this commit also removes documentation about
      how to configure this from PuppetDB.
      This commit also moves the PuppetDB dashboard to its own service so that
      we may serve it at the route `/pdb` instead of having to move it
      alongside the query API at `/pdb/query`.
      This commit also serves a redirector at `/` in a web-router-service
      config that will redirect requests to `/pdb/dashboard/index.html`.
      eb19cda9
  16. 20 May, 2015 1 commit
  17. 18 May, 2015 1 commit
    • Russell Mull's avatar
      (PDB-1487) Add producer_timestamp to store-report · 3ac87dbb
      Russell Mull authored
      The store-report command contains start_time and end_time, but those
      are generated on the agent. This adds a producer_timestamp field to the
      command, which is generated on the master. It can then be reliably
      compared with the producer_timestamp on the deactivate-node command.
      3ac87dbb
  18. 11 May, 2015 1 commit
    • Russell Mull's avatar
      (PDB-1450) Add expired column to certnames · b3cbbd68
      Russell Mull authored
      Separate the record-keeping for explicitly deactivated nodes (via
      the `deactivate node` command) from those that were deactivated via
      the node-ttl expiring. These are now called 'expired'.
      
      - Add a migration to create the `expired` column
      - Instead of enqueueing a command upon node-ttl expiry, directly update
        the db with `expire-node`
      - Update many checks for node deactivation to include the new `expired`
        column
      b3cbbd68
  19. 05 May, 2015 1 commit
  20. 10 Apr, 2015 1 commit
  21. 08 Apr, 2015 2 commits
  22. 07 Apr, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1412) Update rspec dependency from 2.x to 3.x · a8eede4c
      Andrew Roetker authored
      This commit updates the rspec dependency and updates the terminus spec
      code to remove the associated updates new failures, deprecations and
      warnings. This commit enables the `:should` syntax explicitly in the
      `spec_helper.rb` to remove a deprecation warning that was introduced in
      rspec 3.x.
      a8eede4c
  23. 01 Apr, 2015 1 commit
    • Russell Mull's avatar
      (PDB-1264) Make producer_timestamp mandatory · 46d55c58
      Russell Mull authored
      - Change the schemas appropriately
      
      - Newer versions of puppet populate this field, but it may be null
        in upgrade scenarios. In that case, we can use the receive time
        ('timestamp') with no ill effects.
      
      - Update many, many tests
      46d55c58
  24. 27 Mar, 2015 1 commit
    • Russell Mull's avatar
      (PDB-1342) Fix trusted facts fallback · f7604f0c
      Russell Mull authored
      When adding trusted facts, a fallback mechanism is used to pull them
      from the node object if there aren’t any there already. This code is
      broken in puppet 4; it’s unclear whether it happened to work in puppet 3
      because there was a global request object available or because this 
      code was never called. In any case, the change works in both. 
      f7604f0c
  25. 05 Mar, 2015 1 commit
    • wkalt's avatar
      (PDB-1192) add metrics and logs support · 5abc90eb
      wkalt authored
      This adds two fields, logs and metrics, to the reports response to contain
      logs and metrics passed from Puppet in the terminus. This is part of the ongoing
      work to retire consoleDB.
      5abc90eb
  26. 26 Feb, 2015 2 commits
  27. 18 Feb, 2015 1 commit
    • wkalt's avatar
      (PDB-1177) add noop flag to reports · 510e3ad1
      wkalt authored
      This adds a "noop" field to the reports object, which is a boolean flag
      indicating whether the run producing the report was a --noop.
      510e3ad1
  28. 10 Feb, 2015 2 commits
    • Andrew Roetker's avatar
      (PDB-1026) Remove to_pson calls in terminus · 6b6fff55
      Andrew Roetker authored
      This commit removes all the to_pson calls in the terminus as well as
      removing the associated char_encoding code that is dead code with the
      switch to to_json.
      6b6fff55
    • wkalt's avatar
      (PDB-698) Convert from dashes to underscores in API commands and responses · fde50cbd
      wkalt authored
      This patch changes our API commands and responses to use underscores instead of
      dashes, which will make it easier to interface with PDB using languages like
      javascript and python.
      
      This bumps the version of replace-facts, replace-catalog, and store-report,
      and changes our subquery operators to use underscores as well.
      fde50cbd
  29. 22 Jan, 2015 1 commit
  30. 16 Jan, 2015 1 commit
  31. 09 Jan, 2015 1 commit
  32. 08 Jan, 2015 1 commit
  33. 07 Jan, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-840) Retire deprecated commands · 319f654c
      Andrew Roetker authored
      This commit retires all of the previously deprecated commands and
      removes all the associated support code for these commands, such as
      validation of reports/catalogs for the deprecated versions. This commit
      also updatees al the unit/integration tests to use the non-retired
      versions of these commands and removes test code we no longer use.
      319f654c
  34. 06 Jan, 2015 1 commit
    • wkalt's avatar
      (PDB-1052) fix spec tests on puppet master · 077618c3
      wkalt authored
      In Puppet 4 directory environments are enabled by default, which means that
      environments referenced in a config file must have a corresponding directory
      in the environment path or an error will be thrown. This patch creates a
      my_environment directory for facts and catalogs to bring us into accordance.
      077618c3
  35. 16 Dec, 2014 1 commit