1. 17 Oct, 2016 1 commit
    • Jeremy Barlow's avatar
      (MAINT) Bump beaker to 2.50.0 · 041af681
      Jeremy Barlow authored
      Previously, PuppetDB's Gemfile was picking up beaker version 2.43.0.
      This was transitively picking up hocon version 0.9.5.  puppetserver
      recently added some variable interpolation to the puppetserver.conf
      file.  Some fixes in hocon 1.0 and later are needed in order for the
      interpolation to be handled correctly.
      
      This commit bumps the beaker dependency in the Gemfile to ~> 2.50.0,
      which transitively will cause test jobs to pick up a newer hocon gem
      dependency, >= 1.0.
      041af681
  2. 15 Oct, 2016 1 commit
  3. 14 Oct, 2016 3 commits
  4. 13 Oct, 2016 2 commits
    • Jeremy Barlow's avatar
      (PDB-3077) Upgrade to lein-ezbake 1.1.2, fix Debian startup problems · e6b27fdb
      Jeremy Barlow authored
      This commit upgrades the lein-ezbake dependency from 1.0.0 to 1.1.2.
      This is needed to fix problems with the PuppetDB service not starting
      properly on Debian-based platforms due to a permissions issue around the
      use of the service rundir.  The rundir problem was previously introduced
      by the bump to lein-ezbake 1.0.0.
      
      In the newer ezbake release, subcommands run with a umask of 027.  This
      commit includes a couple of explicit chmod calls in the migration and
      ssl-setup subcommands which ensure that any modified config files are
      still world-readable.  World-readability is required for these files in
      order for the puppetdb service, running as user puppetdb, to be able to
      still read the config files, which are owned by root:root.
      e6b27fdb
    • Ryan Senior's avatar
      (PDB-3062) Add command proc tuning FAQ · a47d526f
      Ryan Senior authored
      Added an FAQ entry that gives some recommendations for the threads and
      concurrent-writes settings. These recommendations came out of
      performance testing that was done comparing ActiveMQ and Stockpile.
      a47d526f
  5. 12 Oct, 2016 2 commits
  6. 11 Oct, 2016 3 commits
  7. 10 Oct, 2016 5 commits
    • Wyatt Alt's avatar
      Merge pull request #2089 from aperiodic/pdb-3060-conc-writes-config · f1a4120f
      Wyatt Alt authored
      (PDB-3060) `concurrent-writes` setting
      f1a4120f
    • Dan Lidral-Porter's avatar
      (PDB-3060) Document `concurrent-writes` setting · 789b780d
      Dan Lidral-Porter authored
      Add documentation for the command processing `concurrent-writes`
      configuration setting to the configuration documentation file, and add
      some commented-out lines to the default `config.ini` file that set its
      value and explain what it's for.
      789b780d
    • Dan Lidral-Porter's avatar
      (PDB-3060) Change default `concurrent-writes` val · 068369af
      Dan Lidral-Porter authored
      Change the default value for the concurrent writes configuration setting
      from 100 to the minimum of half the CPU cores and 4.
      068369af
    • Wyatt Alt's avatar
      (PDB-3071) Log a warning if retired server/port config items are in use. · c95db47b
      Wyatt Alt authored
      It's relatively common for users to miss the retirement of server/port
      when upgrading from versions of PDB that supported it. This has the
      effect of defaulting their server/port to puppetdb:8081, producing agent
      run failures that log a puppetdb hostname different from what they
      believe they've configured.
      
      This patch logs warnings when server and port are detected in the config
      file. I think it would be preferable to remove the defaulting behavior
      and throw an error when server_urls is not present, but I don't have a
      sense of whether anyone relies on the defaulting today.
      c95db47b
    • Wyatt Alt's avatar
      Merge pull request #2087 from... · b6db5df6
      Wyatt Alt authored
      Merge pull request #2087 from camlow325/task/master/PDB-3077-integrate-service-reload-and-logback-file-size-rotation
      
      (PDB-3077) Add service reload and logback size-based rotation
      b6db5df6
  8. 07 Oct, 2016 3 commits
  9. 06 Oct, 2016 2 commits
    • Jeremy Barlow's avatar
      (PDB-3077) Bump TK and lein-ezbake deps · 3d194668
      Jeremy Barlow authored
      This commit bumps the following dependencies in order to utilize service
      reload functionality from ezbake package builds:
      
      - Trapperkeeper 1.4.1 -> 1.5.1
      - lein-ezbake 0.5.1 -> 1.0.0
      3d194668
    • Ken Barber's avatar
      Merge branch 'stable' · 26c2a5df
      Ken Barber authored
      * stable:
        (maint) correct mistake in configure.markdown
        (maint) update configure.markdown to mention effect os setting ttls to 0s
      26c2a5df
  10. 04 Oct, 2016 3 commits
  11. 03 Oct, 2016 6 commits
  12. 30 Sep, 2016 9 commits
    • Ryan Senior's avatar
      Merge pull request #2067 from aperiodic/pdb-2982-shorter-cmd-names · 5b696c4f
      Ryan Senior authored
      (PDB-2982) Shorter Command Names in Queue Metadata
      5b696c4f
    • Wyatt Alt's avatar
      (maint) bump version to 4.2.4-SNAPSHOT · 53e55ea4
      Wyatt Alt authored
      53e55ea4
    • Wyatt Alt's avatar
      Merge pull request #2078 from kbrezina/pdb-3073_queryable_corrective_change · 18c22357
      Wyatt Alt authored
      (PDB-3073) Add support for querying resource events by corrective_change flag
      18c22357
    • Dan Lidral-Porter's avatar
      (maint) Remove suffix check in dlo/metrics-for-dir · 44f759f6
      Dan Lidral-Porter authored
      Remove a redundant check for a ".json" suffix on the filename from
      `puppetdb.command.dlo/metrics-for-dir`, since the metadata parser also
      performs this check, and can handle random strings that aren't the form
      it expects, so there's no need to do this pre-screening.
      44f759f6
    • Dan Lidral-Porter's avatar
      (PDB-2982) Clarify args of embeddable-certname. · d8971ab2
      Dan Lidral-Porter authored
      Clarify that `puppetdb.queue/embeddable-certname` and the two
      functions it calls to determine the certname length all take the
      metadata command name, rather than the command name that the rest of
      PuppetDB uses.
      d8971ab2
    • Dan Lidral-Porter's avatar
      (PDB-2982) Abbrev command names in queue metadata · 6eb6e24d
      Dan Lidral-Porter authored
      Replace `puppetdb.queue/metadata-command-names` with a map called
      `metadata-command->puppetdb-comand` that defines the mapping between
      the command names that can appear in the queue metadata that forms the
      message filenames and the command names used by the rest of PuppetDB.
      The inverse mapping is dynamically constructed under the var
      `puppetdb-command->metadata-command`.
      
      Replace `puppetdb.queue/metadata-str` with `metadata-serializer`, which
      takes a map from PuppetDB command names to the metadata command names
      and returns a function with the same signature as `metadata-str`; viz.
      taking all the queue metadata components and returning a metadata
      string. The only differences are that the returned function looks up the
      command name it's given in the translation map and puts the metadata
      name it finds there in the metadata string, and that if this lookup
      fails then an IllegalArgumentException is thrown.
      
      Bind a metadata serializer with the default translation map of
      `queue/puppetdb-command->metadata-command` to `queue/serialize-metadata`
      
      Change `metadata-parser` to take a translation map rather than
      a sequential collection comand names, have the returned function perform
      the inverse mapping from the metadata command name back to the PuppetDB
      command name, and to add a docstring to `metadata-parser`.
      
      Add `parse-metadata` and `serialize-metadata` vars to the
      `puppetdb.command.dlo` namespace that add an "unknown" -> "unknown"
      entry to both translation maps, since the DLO uses that command name as
      a fallback when the message is so garbled that the command name cannot
      be recovered. Consequently, change all invocations of
      `queue/metadata-str` in the DLO to call `dlo/serialize-metadata`, and
      likewise `queue/metadata-parser` to `dlo/parse-metadata`.
      
      Change `puppetdb.command.dlo/discard-cmdref` to create its own queue
      metadat string and use `stock/entry` directly in order to create
      a stockpile entry for the discarded cmdref, rather than using
      `queue/cmdref->entry`, as the latter creates a metadata string using
      only the default command names & metadata abbreviations, so it will now
      throw an error if the discarded cmdref's command is "unknown".
      
      Update tests to align with the new function names and arguments, as well
      as the abbreviated command names in queue metadata strings.
      6eb6e24d
    • Wyatt Alt's avatar
      (maint) update project.clj version to 4.2.3 · 9fe3f981
      Wyatt Alt authored
      9fe3f981
    • Wyatt Alt's avatar
      (maint) update release notes for 4.2.3 · 2429139c
      Wyatt Alt authored
      2429139c
    • Ryan Senior's avatar
      (PDB-2948) Deprecate ActiveMQ Config · ead9c83c
      Ryan Senior authored
      This commit includes warnings and deprecation notes for the now obsolete
      ActiveMQ config items. The config params no longer apply to PuppetDB
      when running with Stockpile.
      ead9c83c