pax_global_header 0000666 0000000 0000000 00000000064 14637566111 0014524 g ustar 00root root 0000000 0000000 52 comment=8d235069226e9b48214fcb8d0fb2250c67828bf8
puppetlabs-trapperkeeper-d1f1135/ 0000775 0000000 0000000 00000000000 14637566111 0017100 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/.clj-kondo/ 0000775 0000000 0000000 00000000000 14637566111 0021036 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/.clj-kondo/config.edn 0000664 0000000 0000000 00000004055 14637566111 0022777 0 ustar 00root root 0000000 0000000 {:linters {:unresolved-symbol {:level :warning :exclude [(puppetlabs.trapperkeeper.services/service)
(puppetlabs.trapperkeeper.core/defservice)
(puppetlabs.trapperkeeper.core/service)
(puppetlabs.trapperkeeper.services/defservice)
(clojure.test/is [thrown+? thrown+-with-msg? logged?])
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-cli-data)
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-config)
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-empty-config)
(puppetlabs.trapperkeeper.testutils.bootstrap/with-app-with-cli-args)
(puppetlabs.trapperkeeper.testutils.logging/with-started)
(puppetlabs.trapperkeeper.testutils.logging/with-logger-event-maps)
(puppetlabs.trapperkeeper.testutils.logging/with-logged-event-maps)]}
:invalid-arity {:skip-args [puppetlabs.trapperkeeper.services/service
puppetlabs.trapperkeeper.services/defservice
puppetlabs.trapperkeeper.core/defservice
puppetlabs.trapperkeeper.core/service]}
:refer-all {:level :off}
:inline-def {:level :off}
:deprecated-var {:level :off}}
:lint-as {puppetlabs.trapperkeeper.core/defservice clojure.core/def
puppetlabs.trapperkeeper.services/defservice clojure.core/def
slingshot.slingshot/try+ clojure.core/try
puppetlabs.kitchensink.core/while-let clojure.core/let}} puppetlabs-trapperkeeper-d1f1135/.github/ 0000775 0000000 0000000 00000000000 14637566111 0020440 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/.github/workflows/ 0000775 0000000 0000000 00000000000 14637566111 0022475 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/.github/workflows/clojure-linting.yaml 0000664 0000000 0000000 00000001544 14637566111 0026472 0 ustar 00root root 0000000 0000000 name: Clojure Linting
on:
pull_request:
types: [opened, reopened, edited, synchronize]
paths: ['src/**','test/**','.clj-kondo/config.edn','project.clj','.github/**']
jobs:
clojure-linting:
name: Clojure Linting
runs-on: ubuntu-latest
steps:
- name: setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: checkout repo
uses: actions/checkout@v4
- name: install clj-kondo (this is quite fast)
run: |
curl -sLO https://raw.githubusercontent.com/clj-kondo/clj-kondo/master/script/install-clj-kondo
chmod +x install-clj-kondo
./install-clj-kondo --dir .
- name: kondo lint
run: ./clj-kondo --lint src test
- name: eastwood lint
run: |
java -version
lein eastwood puppetlabs-trapperkeeper-d1f1135/.github/workflows/lein-test.yaml 0000664 0000000 0000000 00000001227 14637566111 0025267 0 ustar 00root root 0000000 0000000 name: PR Testing
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, edited, synchronize]
paths: ['src/**','test/**','project.clj']
jobs:
pr-testing:
name: PR Testing
strategy:
fail-fast: false
matrix:
version: ['8', '11', '17']
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v3
with:
submodules: recursive
- name: setup java
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.version }}
- name: clojure tests
run: lein test
timeout-minutes: 30 puppetlabs-trapperkeeper-d1f1135/.github/workflows/mend.yaml 0000664 0000000 0000000 00000003547 14637566111 0024315 0 ustar 00root root 0000000 0000000 name: mend_scan
on:
schedule:
# run every day at 4:00am
- cron: 0 4 * * *
workflow_dispatch:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: connect_twingate
uses: twingate/github-action@v1
with:
service-key: ${{ secrets.TWINGATE_PUBLIC_REPO_KEY }}
- name: checkout repo content
uses: actions/checkout@v4 # checkout the repository content to github runner.
with:
fetch-depth: 1
# install java which is required for mend and clojure
- name: setup java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
# install clojure tools
- name: Install Clojure tools
uses: DeLaGuardo/setup-clojure@12.5
with:
# Install just one or all simultaneously
# The value must indicate a particular version of the tool, or use 'latest'
# to always provision the latest version
cli: latest # Clojure CLI based on tools.deps
lein: latest # Leiningen
boot: latest # Boot.clj
bb: latest # Babashka
clj-kondo: latest # Clj-kondo
cljstyle: latest # cljstyle
zprint: latest # zprint
# run lein gen
- name: create pom.xml
run: lein pom
# download mend
- name: download_mend
run: curl -o wss-unified-agent.jar https://unified-agent.s3.amazonaws.com/wss-unified-agent.jar
- name: run mend
run: env WS_INCLUDES=pom.xml java -jar wss-unified-agent.jar
env:
WS_APIKEY: ${{ secrets.MEND_API_KEY }}
WS_WSS_URL: https://saas-eu.whitesourcesoftware.com/agent
WS_USERKEY: ${{ secrets.MEND_TOKEN }}
WS_PRODUCTNAME: Puppet Enterprise
WS_PROJECTNAME: ${{ github.event.repository.name }}
puppetlabs-trapperkeeper-d1f1135/.gitignore 0000664 0000000 0000000 00000000270 14637566111 0021067 0 ustar 00root root 0000000 0000000
# Emacs
*#
*~
.#*
.lein-failures
.lein-repl-history
target/
checkouts/
pom.xml
.nrepl-port
/resources/locales.clj
/resources/puppetlabs/trapperkeeper/*.class
/dev-resources/i18n/bin
puppetlabs-trapperkeeper-d1f1135/.travis.yml 0000664 0000000 0000000 00000001552 14637566111 0021214 0 ustar 00root root 0000000 0000000 language: clojure
lein: 2.9.1
jobs:
include:
- jdk: openjdk8
name: lein test (openjdk8)
- jdk: openjdk11
name: lein test (openjdk11)
- jdk: openjdk8
name: external tests (openjdk8)
script: lein uberjar && ext/test/run-all
- jdk: openjdk11
name: external tests (openjdk11)
script: lein uberjar && ext/test/run-all
- name: external tests (openjdk11)
# Apparently travis' lein support is broken right now
language: java
os: osx
osx_image: xcode10.3
script: |
# prep in standalone script so things like set -x don't affect travis
ext/travisci/prep-macos \
&& export PATH="$(pwd)/ext/travisci/bin:$PATH" \
&& lein uberjar \
&& ext/test/run-all
notifications:
email: false
cache:
directories:
- $HOME/.m2
- $HOME/Library/Caches/Homebrew
puppetlabs-trapperkeeper-d1f1135/CHANGELOG.md 0000664 0000000 0000000 00000033662 14637566111 0020723 0 ustar 00root root 0000000 0000000 ## 4.0.2
* update `logged?` to not emit an incorrect message when there are no matches, and clean up the output from multiple unexpected matches.
## 4.0.1
* adds a new arity to `logged?` that removes the restriction that only one log line must match the pattern, adds printing to the function and repo documentation to make users aware of this single line match restriction
## 4.0.0
This is a major release with breaking changes.
* remove support for yaml configuration files
* add clj-kondo linting and fix issues found
* add eastwood linting and fix issues found
## 3.3.1
This is a maintenance release
* Unpin logback and logback dependencies versions, bump clj-parent to defer to its versioning
## 3.3.0
This is a potentially breaking dependency version update release
* Upgrades logback version to 1.3.5 from 1.2.9, which is now in maintenance mode
* Adds slf4j-api dependency and pins other relevant dependencies to 2.0.6
## 3.2.1
This is a maintenance release
* Avoid crashing when trying to load bootstrap.cfg in some cases. See
also [PDB-5215](https://tickets.puppetlabs.com/browse/PDB-5215) and
[CLJ-2431](https://clojure.atlassian.net/browse/CLJ-2431)).
## 3.2.0
This is a minor feature release
* Backward compatible changes to the signature of `puppetlabs.trapperkeeper.internal/shutdown!` function. Returns collection of exceptions caught during execution of shutdown sequence instead of nil.
* Extend `stop` method of `puppetlabs.trapperkeeper.app/TrapperkeeperApp` protocol with an argument `throw?` to handle cases where exceptions in shutdown sequence should be rethrown.
* Change default behavior of `puppetlabs.trapperkeeper.testutils.bootstrap` helper macroses to throw exception when shutdown finished abruptly.
## 3.1.1
This is a maintenance release
* Updates to current clj-parent
## 3.1.0
This is a minor feature release
* [PDB-4636](https://github.com/puppetlabs/trapperkeeper/pull/287) - support custom exit status/messages
## 3.0.0
This is a maintenance release
* Updates to current clj-parent to clean up project.clj and update dependencies
* Tests changes for readability and compatibility with Java11
## 2.0.1
This is a maintenance release
* Ensures that all errors are correctly thrown, notably errors about bad config schemas.
## 2.0.0
This is a maintenance release
* [ORCH-2282](https://tickets.puppetlabs.com/browse/ORCH-2282) - Updates to current clj-parent
to support using nrepl/nrepl
* Updates required for using nrepl/nrepl; mainline development for nrepl moved from
org.clojure/tools.nrepl as of the 0.3.x series (last on this line was 0.2.13)
* Updating to this version of trapperkeeper requires lein >=2.9.0 (:min-lein-version updated)
* Drops support for JDK7
## 1.5.6
This is a maintenance release
* [TK-466](https://tickets.puppetlabs.com/browse/TK-466) - Log SIGHUP events at INFO level
## 1.5.5
This is a maintenance release
* Fix log message accidentally converted to a warning
## 1.5.4
This is a maintenance release.
* Fix adding to classpath under Java 9
## 1.5.3
This is a maintenance release.
* [TK-411](https://tickets.puppetlabs.com/browse/TK-411) - Externalize strings for i18n
* [TK-439](https://tickets.puppetlabs.com/browse/TK-439) - Handle exceptions having no
type key in main
* Fix symbol redef warnings under Clojure 1.9
* Improved lifecycle debug logging
## 1.5.2
This is a maintenance release.
* [SERVER-1494](https://tickets.puppetlabs.com/browse/SERVER-1494) - use `lein-parent`
plugin to inherit dependency versions from parent project.
## 1.5.1
This is a minor feature release
* [TK-405](https://tickets.puppetlabs.com/browse/TK-405) - Add support for
specifying the restart file option via a command line argument
## 1.5.0
This is a feature/bugfix/maintenance release
* [TK-345](https://tickets.puppetlabs.com/browse/TK-345) - Add support for optional
restart file which, if specified, will contain an integer that increments when
a TK app has successfully started all of its services
* [TK-382](https://tickets.puppetlabs.com/browse/TK-382) - Fix bug where optional
dependencies could not be specified for a service without a protocol
* [TK-397](https://tickets.puppetlabs.com/browse/TK-397) - Update to logback 1.1.7
## 1.4.1
This is a bugfix release. It fixes a single issue
* [TK-375](https://tickets.puppetlabs.com/browse/TK-375) - Regression in 1.4.0
when loading bootstrap.cfg from resources/classpath
## 1.4.0
This is feature/bugfix release. It is a re-release of 1.3.2
* [TK-347](https://tickets.puppetlabs.com/browse/TK-347) - Support directories
and paths in TK's "bootstrap-config" CLI argument
* [TK-211](https://tickets.puppetlabs.com/browse/TK-211) - Trapperkeeper
doesn't error if two services implementing the same protocol are started
* [TK-349](https://tickets.puppetlabs.com/browse/TK-349) - TK should not
fail during startup if an unrecognized service is found in bootstrap config
* [TK-351](https://tickets.puppetlabs.com/browse/TK-351) - Ensure all bootstrap
related errors log what file they come from
## 1.3.2
This version was released by mistake, it was intended to be 1.4.0
## 1.3.1
This is a bugfix / maintenance / minor feature release
* [TK-319](https://tickets.puppetlabs.com/browse/TK-319) - fix a bug where
optional dependencies could not be used without a service protocol
* [TK-325](https://tickets.puppetlabs.com/browse/TK-325) - move documentation
into repo, instead of storing it on the github wiki
* [HC-51](https://tickets.puppetlabs.com/browse/HC-51) - update to newer
version of clj typesafe / hocon wrapper, fixing bug that prevented
variable interpolation from working properly in hocon config files
* New `bootstrap-services-with-config` testutils macro
* [TK-342](https://tickets.puppetlabs.com/browse/TK-342) - new logging
testutils macros, e.g. `with-logged-event-maps`.
* [TK-326](https://tickets.puppetlabs.com/browse/TK-326),
[TK-330](https://tickets.puppetlabs.com/browse/TK-330),
[TK-331](https://tickets.puppetlabs.com/browse/TK-331) - various minor
improvements to HUP support to eliminate some bugs/annoyances that
were possible in pathological situations
## 1.3.0
This is a feature release.
* [TK-202](https://tickets.puppetlabs.com/browse/TK-202) - adds support for
restarting a TK app via HUP signal, w/o shutting down entire JVM process
* [TK-315](https://tickets.puppetlabs.com/browse/TK-315) - update raynes.fs
dependency to 1.4.6, to minimize dependency conflicts for consumers
* RELEASE NOTE: adds a dependency on core.async
* RELEASE NOTE: minor changes to internal `app-context` API; all service
contexts are now stored under a key called `:service-contexts`. This
shouldn't affect any consuming code unless you were digging into the
internal `app-context` API for really low-level tests or similar.
## 1.2.0
This is a minor feature release.
* [TK-299](https://tickets.puppetlabs.com/browse/TK-299) - support optional
dependencies, which allow services to take advantage of other services if
they're included in the bootstrap and gracefully handled when they are not
included. See the
[docs](https://github.com/puppetlabs/trapperkeeper/wiki/Defining-Services#optional-services)
for more detail.
* Use newer version of schema library and make use of more schemas.
## 1.1.3
This is a bugfix release.
* [TK-311](https://tickets.puppetlabs.com/browse/TK-311) - fix a minor bug in the new
logging testutils, where the log appenders weren't implementing the `isStarted`
method.
## 1.1.2
This is a bugfix / minor feature release.
* Various, significant improvements to logging testutils, courtesy of Rob Browning.
* [TK-291](https://tickets.puppetlabs.com/browse/TK-291) - `(is (logged?` test assertion
now captures log messages that were logged by other (non-Clojure) threads.
* `logs-matching` now has an additional signature that accepts a log level
* Improvements to error handling when an error occurs in TK's `main` function
## 1.1.1
This is a maintenance / minor feature release.
* [TK-197](https://tickets.puppetlabs.com/browse/TK-197) - update prismatic
dependencies to latest versions.
* Add support for yaml config files
* [TK-131](https://tickets.puppetlabs.com/browse/TK131) Relax preconditions on logging configuration
## 1.1.0
This is a minor feature release.
* Add support for logback's `EvaluatorFilter`, which allows users to configure
the logging to filter log messages based on regular expression patterns.
## 1.0.1
* Fix an issue wherein nothing would be logged to the console when the
--debug flag was set
## 1.0.0
* Promoting previous release to 1.0.0, so that we can begin to be more deliberate
about adhering to semver from here on out.
## 0.5.2
This is a minor feature and bugfix release.
* Call the `service-symbol` function in lifecycle error messages to make it easier
to determine which service caused the error
* Fix an IllegalArgumentException that would occur when catching a slingshot exception
in the TK `main` function.
* Allow multiple comma-separated config files and directories to be specified
in the --config CLI argument.
## 0.5.1
This is a bugfix release.
* Fix a bug that prevented `defservice` from working with protocols that were defined in a different namespace.
## 0.5.0
This is a feature release with a minor breaking API change.
* The breaking API change affects the functions defined in the
`puppetlabs.trapperkeeper.services/Service` protocol - namely, `service-context`.
References to these functions are no longer automatically in scope inside a
`service` or `defservice` definition as they were previously (via macro magic),
and they must be `require`d like any other function -
`(require '[puppetlabs.trapperkeeper.services :refer [service-context]])`.
* Changed schema version to support the Bool type
* Improve implementation of the `service` macro
* Formalize public function for loading config
## 0.4.3
This is a minor feature release.
* Moved documentation to github wiki
* Get rid of requirement for `--config` command-line argument
* Add new `service-symbol` and `get-services` functions to protocols
* Update dependencies
## 0.4.2
This is a minor feature release.
* Add a new configuration setting `middlewares` to the nREPL service, to allow
registration of nREPL middleware (e.g. for compatibility with LightTable).
(Thanks to `exi` for this contribution!)
## 0.4.1
This is a maintenance/bugfix release.
* Fix a minor bug in testutils/logging where we inadvertently changed the return value of
log statements.
* Add an explicit call to `shutdown-agents` on trapperkeeper exit, to prevent the JVM from
hanging for 60 seconds on shutdown (if any services were using `future`).
## 0.4.0
This release includes improved error handling and logic for shutting down Trapperkeeper applications.
* Improved handling of errors during a service's `init` or `start` functions:
* All services' `stop` functions are now called, even when an error is thrown by any service's
`init` or `start` function. This means that `stop` implementations must now be resilient
to invocation even when `init` or `start` has not executed.
* Updated `boot-services-with-cli-data`, `boot-services-with-config`, and `boot-with-cli-data`
to return the `TrapperkeeperApp` instance rather than propagating the `Throwable`.
* Updated example "Reloaded" pattern usage to use the new `check-for-errors!`
function on the `TrapperkeeperApp` instance to detect any errors that may have occurred
while services were being bootstrapped.
## 0.3.12
This is a maintenance release.
* Upgrade fs dependency to 1.4.5 to standardize across projects
## 0.3.11
This is a maintenance/bugfix release.
* Fix minor bug in how nrepl service loads its configuration
* Add CONTRIBUTING.md file
* Fix a few misleading things in the README (dan@simple.com)
## 0.3.10
This is a maintenance release.
* Update version number of kitchensink dependency to 0.6.0, to get rid of transitive dependencies on SSL libraries.
## 0.3.9
This is a maintenance release.
* Update version number of logback dependency from 1.0.13 to 1.1.1, to resolve a bug in logback that was affecting our jetty9 web server.
## 0.3.8
This is a bugfix and maintenance release.
* Improve logging of exceptions that occur during bootstrapping.
## 0.3.7
This is a bugfix and maintenance release.
* Log exceptions that occur during bootstrapping.
## 0.3.6
This is a bugfix and maintenance release.
* Move typesafe config code to an external library - https://github.com/puppetlabs/clj-typesafe-config
* Improve error handling and logging in `shutdown-on-error`.
## 0.3.5
* Improved error handling in the `service`/`defservice` macros.
* Improved error handling in the shutdown logic, particularly when using `shutdown-on-error`.
* Fix a bug that prevented `service-id` from being called from a service's `init` function.
* Minor documentation fixes and improvements.
## 0.3.4
* Add new macros in `testutils/bootstrap` namespace, to make it easier to write tests for services
* Add support for .edn, .conf, .json, .properties config files in addition to .ini
## 0.3.3
* Fix a bug in how we were handling command-line arguments in the case where the user does not pass any
* Add a new function `get-service` to the `Service` protocol, which allows service authors to get a reference to the protocol instance of a service if they prefer that to the prismatic-style function injections
## 0.3.2
* Bugfix release
* Use prismatic schema validation during tests to ensure we are complying with
our advertised schemas
* Fix bug where we were not including lifecycle functions in the schema
* Fix bug in error handling of prismatic exceptions
* Upgrade to version 0.2.1 of prismatic schema, which includes a fix for
some thing related to aot.
## 0.3.0
* Changes to `defservice` API so that it supports service lifecycles more explicitly,
and now uses clojure protocols as the means for specifying functions provided
by a service.
* Upgrade to 0.5.1 of kitchensink, which includes a significant performance
improvement for applications that are accepting HTTPS connections
puppetlabs-trapperkeeper-d1f1135/CODEOWNERS 0000664 0000000 0000000 00000000027 14637566111 0020472 0 ustar 00root root 0000000 0000000 * @puppetlabs/dumpling
puppetlabs-trapperkeeper-d1f1135/CONTRIBUTING.md 0000664 0000000 0000000 00000001024 14637566111 0021326 0 ustar 00root root 0000000 0000000 # How to contribute
Third-party patches are essential for keeping Puppet Labs open-source projects
great. We want to keep it as easy as possible to contribute changes that
allow you to get the most out of our projects. There are a few guidelines
that we need contributors to follow so that we can have a chance of keeping on
top of things. For more info, see our canonical guide to contributing:
[https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md](https://github.com/puppetlabs/puppet/blob/master/CONTRIBUTING.md)
puppetlabs-trapperkeeper-d1f1135/LICENSE 0000664 0000000 0000000 00000026075 14637566111 0020117 0 ustar 00root root 0000000 0000000 Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
puppetlabs-trapperkeeper-d1f1135/Makefile 0000664 0000000 0000000 00000000043 14637566111 0020535 0 ustar 00root root 0000000 0000000 include dev-resources/Makefile.i18n puppetlabs-trapperkeeper-d1f1135/README.md 0000664 0000000 0000000 00000007060 14637566111 0020362 0 ustar 00root root 0000000 0000000
# Trapperkeeper
[](https://travis-ci.org/puppetlabs/trapperkeeper)
Trapperkeeper is a Clojure framework for hosting long-running applications and services.
You can think of it as a sort of "binder" for Ring applications and other modular bits of Clojure code.
## Installation
Add the following dependency to your `project.clj` file:
[](http://clojars.org/puppetlabs/trapperkeeper)
## Community
* Bug reports and feature requests: you can submit a Github issue, but we use [JIRA](https://tickets.puppetlabs.com/browse/TK) as our main issue tracker.
* freenode: #trapperkeeper
* [](https://gitter.im/puppetlabs/trapperkeeper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
## Documentation
You can find a quick-start, example code, and lots and lots of documentation in our:
* [Documentation](documentation/Index.md)
## Lein Template
A Leiningen template is available that shows a suggested project structure:
lein new trapperkeeper my.namespace/myproject
Once you've created a project from the template, you can run it via the lein alias:
lein tk
Note that the template is not intended to suggest a specific namespace organization;
it's just intended to show you how to write a service, a web service, and tests
for each.
## Related Projects
Here are some additional projects that provide Trapperkeeper services, and
other related functionality:
* [trapperkeeper-webserver-jetty9](https://github.com/puppetlabs/trapperkeeper-webserver-jetty9): a Jetty9-based webserver for use with TK applications
* [trapperkeeper-rpc](https://github.com/puppetlabs/trapperkeeper-rpc): a TK service that allows you to easily build a way to call remote TK services over RPC
* [trapperkeeper-metrics](https://github.com/puppetlabs/trapperkeeper-metrics): a TK service that manages the life cycle of a [MetricRegistry](https://github.com/dropwizard/metrics), so that all of your TK services can register metrics with a common configuration syntax.
* [trapperkeeper-comidi-metrics](https://github.com/puppetlabs/trapperkeeper-comidi-metrics): a TK utility library that provides middleware to automatically generate metrics for all requests to each of your bidi/comidi HTTP routes.
* [trapperkeeper-status](https://github.com/puppetlabs/trapperkeeper-status): a TK service that provides a mechanism for registering status callbacks for all of your other TK services, and web API for requesting status information about the entire TK system.
* [trapperkeeper-scheduler](https://github.com/puppetlabs/trapperkeeper-scheduler): a TK service that provides an API for scheduling periodic background tasks
## License
Copyright © 2013 Puppet Labs
Distributed under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html)
## Support
Please log tickets and issues at our [JIRA tracker](https://tickets.puppetlabs.com/browse/TK).
There is also a #trapperkeeper channel on Freenode as well as [](https://gitter.im/puppetlabs/trapperkeeper?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge).
puppetlabs-trapperkeeper-d1f1135/dev-resources/ 0000775 0000000 0000000 00000000000 14637566111 0021666 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/Makefile.i18n 0000664 0000000 0000000 00000014105 14637566111 0024105 0 ustar 00root root 0000000 0000000 # -*- Makefile -*-
# This file was generated by the i18n leiningen plugin
# Do not edit this file; it will be overwritten the next time you run
# lein i18n init
#
# The name of the package into which the translations bundle will be placed
BUNDLE=puppetlabs.trapperkeeper
# The name of the POT file into which the gettext code strings (msgid) will be placed
POT_NAME=trapperkeeper.pot
# The list of names of packages covered by the translation bundle;
# by default it contains a single package - the same where the translations
# bundle itself is placed - but this can be overridden - preferably in
# the top level Makefile
PACKAGES?=$(BUNDLE)
LOCALES=$(basename $(notdir $(wildcard locales/*.po)))
BUNDLE_DIR=$(subst .,/,$(BUNDLE))
BUNDLE_FILES=$(patsubst %,resources/$(BUNDLE_DIR)/Messages_%.class,$(LOCALES))
FIND_SOURCES=find src -name \*.clj
# xgettext before 0.19 does not understand --add-location=file. Even CentOS
# 7 ships with an older gettext. We will therefore generate full location
# info on those systems, and only file names where xgettext supports it
LOC_OPT=$(shell xgettext --add-location=file -f - /dev/null 2>&1 && echo --add-location=file || echo --add-location)
LOCALES_CLJ=resources/locales.clj
define LOCALES_CLJ_CONTENTS
{
:locales #{$(patsubst %,"%",$(LOCALES))}
:packages [$(patsubst %,"%",$(PACKAGES))]
:bundle $(patsubst %,"%",$(BUNDLE).Messages)
}
endef
export LOCALES_CLJ_CONTENTS
i18n: msgfmt
# Update locales/.pot
update-pot: locales/$(POT_NAME)
locales/$(POT_NAME): $(shell $(FIND_SOURCES)) | locales
@tmp=$$(mktemp $@.tmp.XXXX); \
$(FIND_SOURCES) \
| xgettext --from-code=UTF-8 --language=lisp \
--copyright-holder='Puppet ' \
--package-name="$(BUNDLE)" \
--package-version="$(BUNDLE_VERSION)" \
--msgid-bugs-address="docs@puppet.com" \
-k \
-kmark:1 -ki18n/mark:1 \
-ktrs:1 -ki18n/trs:1 \
-ktru:1 -ki18n/tru:1 \
-ktrun:1,2 -ki18n/trun:1,2 \
-ktrsn:1,2 -ki18n/trsn:1,2 \
$(LOC_OPT) \
--add-comments --sort-by-file \
-o $$tmp -f -; \
sed -i.bak -e 's/charset=CHARSET/charset=UTF-8/' $$tmp; \
sed -i.bak -e 's/POT-Creation-Date: [^\\]*/POT-Creation-Date: /' $$tmp; \
rm -f $$tmp.bak; \
if ! diff -q -I POT-Creation-Date $$tmp $@ >/dev/null 2>&1; then \
mv $$tmp $@; \
else \
rm $$tmp; touch $@; \
fi
# Run msgfmt over all .po files to generate Java resource bundles
# and create the locales.clj file
msgfmt: $(BUNDLE_FILES) $(LOCALES_CLJ) clean-orphaned-bundles
# Force rebuild of locales.clj if its contents is not the the desired one. The
# shell echo is used to add a trailing newline to match the one from `cat`
ifneq ($(shell cat $(LOCALES_CLJ) 2> /dev/null),$(shell echo '$(LOCALES_CLJ_CONTENTS)'))
.PHONY: $(LOCALES_CLJ)
endif
$(LOCALES_CLJ): | resources
@echo "Writing $@"
@echo "$$LOCALES_CLJ_CONTENTS" > $@
# Remove every resource bundle that wasn't generated from a PO file.
# We do this because we used to generate the english bundle directly from the POT.
.PHONY: clean-orphaned-bundles
clean-orphaned-bundles:
@for bundle in resources/$(BUNDLE_DIR)/Messages_*.class; do \
locale=$$(basename "$$bundle" | sed -E -e 's/\$$?1?\.class$$/_class/' | cut -d '_' -f 2;); \
if [ ! -f "locales/$$locale.po" ]; then \
rm "$$bundle"; \
fi \
done
resources/$(BUNDLE_DIR)/Messages_%.class: locales/%.po | resources
msgfmt --java2 -d resources -r $(BUNDLE).Messages -l $(*F) $<
# Use this to initialize translations. Updating the PO files is done
# automatically through a CI job that utilizes the scripts in the project's
# `bin` file, which themselves come from the `clj-i18n` project.
locales/%.po: | locales
@if [ ! -f $@ ]; then \
touch $@ && msginit --no-translator -l $(*F) -o $@ -i locales/$(POT_NAME); \
fi
resources locales:
@mkdir $@
help:
$(info $(HELP))
@echo
.PHONY: help
define HELP
This Makefile assists in handling i18n related tasks during development. Files
that need to be checked into source control are put into the locales/ directory.
They are
locales/$(POT_NAME) - the POT file generated by 'make update-pot'
locales/$$LANG.po - the translations for $$LANG
Only the $$LANG.po files should be edited manually; this is usually done by
translators.
You can use the following targets:
i18n: refresh all the files in locales/ and recompile resources
update-pot: extract strings and update locales/$(POT_NAME)
locales/LANG.po: create translations for LANG
msgfmt: compile the translations into Java classes; this step is
needed to make translations available to the Clojure code
and produces Java class files in resources/
endef
# @todo lutter 2015-04-20: for projects that use libraries with their own
# translation, we need to combine all their translations into one big po
# file and then run msgfmt over that so that we only have to deal with one
# resource bundle
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/ 0000775 0000000 0000000 00000000000 14637566111 0024561 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/classpath/ 0000775 0000000 0000000 00000000000 14637566111 0026543 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/classpath/bootstrap.cfg 0000664 0000000 0000000 00000000247 14637566111 0031244 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/classpath-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/ 0000775 0000000 0000000 00000000000 14637566111 0025330 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/bootstrap.cfg 0000664 0000000 0000000 00000000241 14637566111 0030023 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/bootstrap_with_comments.cfg 0000664 0000000 0000000 00000000470 14637566111 0032767 0 ustar 00root root 0000000 0000000 # commented out line
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service # comment
; another commented out line
;puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service ; comment
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/duplicate_entries.cfg 0000664 0000000 0000000 00000000632 14637566111 0031515 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/duplicate_services/ 0000775 0000000 0000000 00000000000 14637566111 0031205 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/duplicate_services/duplicates.cfg 0000664 0000000 0000000 00000000716 14637566111 0034027 0 ustar 00root root 0000000 0000000 # cli and foo implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
# test-service-two and test-service-two-duplicate implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two-duplicate
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/duplicate_services/split_one.cfg 0000664 0000000 0000000 00000000460 14637566111 0033662 0 ustar 00root root 0000000 0000000 # cli and foo implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
# test-service-two and test-service-two-duplicate implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two-duplicate
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/duplicate_services/split_two.cfg 0000664 0000000 0000000 00000000446 14637566111 0033716 0 ustar 00root root 0000000 0000000 # cli and foo implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
# test-service-two and test-service-two-duplicate implement the same service protocol
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/empty_bootstrap.cfg 0000664 0000000 0000000 00000000000 14637566111 0031232 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/fake_namespace_bootstrap.cfg 0000664 0000000 0000000 00000000303 14637566111 0033024 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
non-existent-service/test-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/invalid_entry_bootstrap.cfg 0000664 0000000 0000000 00000000151 14637566111 0032752 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/foo-test-service
This is not a legit line.
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/invalid_service_graph_bootstrap.cfg0000664 0000000 0000000 00000000134 14637566111 0034433 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/invalid-service-graph-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/missing_definition_bootstrap.cfg 0000664 0000000 0000000 00000000364 14637566111 0033772 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/non-existent-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/path with spaces/ 0000775 0000000 0000000 00000000000 14637566111 0030457 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/path with spaces/bootstrap.cfg 0000664 0000000 0000000 00000000241 14637566111 0033152 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/ 0000775 0000000 0000000 00000000000 14637566111 0030743 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/both/ 0000775 0000000 0000000 00000000000 14637566111 0031677 5 ustar 00root root 0000000 0000000 bootstrap_one.cfg 0000664 0000000 0000000 00000000241 14637566111 0035154 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/both puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
bootstrap_two.cfg 0000664 0000000 0000000 00000000240 14637566111 0035203 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/both puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-three
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/empty/ 0000775 0000000 0000000 00000000000 14637566111 0032101 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/empty/empty1.cfg 0000664 0000000 0000000 00000000000 14637566111 0033767 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/empty/empty2.cfg 0000664 0000000 0000000 00000000034 14637566111 0033777 0 ustar 00root root 0000000 0000000 # any entries here?
# nope
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/one/ 0000775 0000000 0000000 00000000000 14637566111 0031524 5 ustar 00root root 0000000 0000000 bootstrap_one.cfg 0000664 0000000 0000000 00000000241 14637566111 0035001 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/one puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/spaces/ 0000775 0000000 0000000 00000000000 14637566111 0032221 5 ustar 00root root 0000000 0000000 bootstrap with spaces one.cfg 0000664 0000000 0000000 00000000241 14637566111 0037572 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/spaces puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cli-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
bootstrap with spaces two.cfg 0000664 0000000 0000000 00000000240 14637566111 0037621 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/spaces puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-three
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/two/ 0000775 0000000 0000000 00000000000 14637566111 0031554 5 ustar 00root root 0000000 0000000 bootstrap_two.cfg 0000664 0000000 0000000 00000000240 14637566111 0035060 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cli/split_bootstraps/two puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-two
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/test-service-three
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cwd/ 0000775 0000000 0000000 00000000000 14637566111 0025336 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/cwd/bootstrap.cfg 0000664 0000000 0000000 00000000241 14637566111 0030031 0 ustar 00root root 0000000 0000000 puppetlabs.trapperkeeper.examples.bootstrapping.test-services/cwd-test-service
puppetlabs.trapperkeeper.examples.bootstrapping.test-services/hello-world-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/jar/ 0000775 0000000 0000000 00000000000 14637566111 0025335 5 ustar 00root root 0000000 0000000 this-jar-contains-a-bootstrap-config-file.jar 0000664 0000000 0000000 00000000365 14637566111 0035726 0 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/jar PK ⁞C#4E S
bootstrap.cfgUT RRux 5K
0KZ}h16![70*Ku
+m O9TE¿J찫i[?PK ⁞C#4E S
bootstrap.cfgUT Rux PK S puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/plugin/ 0000775 0000000 0000000 00000000000 14637566111 0026057 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/bootstrapping/plugin/bootstrap.cfg 0000664 0000000 0000000 00000000067 14637566111 0030560 0 ustar 00root root 0000000 0000000 test-services.plugin-test-services/plugin-test-service
puppetlabs-trapperkeeper-d1f1135/dev-resources/config/ 0000775 0000000 0000000 00000000000 14637566111 0023133 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir1/ 0000775 0000000 0000000 00000000000 14637566111 0025514 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir1/config.conf 0000664 0000000 0000000 00000000110 14637566111 0027620 0 ustar 00root root 0000000 0000000 foo {
// comment
somesetting : 12
# comment
baz = "hi"
} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir1/config.ini 0000664 0000000 0000000 00000000041 14637566111 0027455 0 ustar 00root root 0000000 0000000 [foo]
bar = "barbar"
baz = bazbaz puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir2/ 0000775 0000000 0000000 00000000000 14637566111 0025515 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir2/config.json 0000664 0000000 0000000 00000000076 14637566111 0027660 0 ustar 00root root 0000000 0000000 {"foo":
{"something": "something",
"baz": "jsonbaz"}} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir2/config.properties 0000664 0000000 0000000 00000000037 14637566111 0031100 0 ustar 00root root 0000000 0000000 foo.bar="barbar"
foo.baz=bazbaz puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir3/ 0000775 0000000 0000000 00000000000 14637566111 0025516 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir3/config.edn 0000664 0000000 0000000 00000000051 14637566111 0027447 0 ustar 00root root 0000000 0000000 {:foo
{:bar "barbar"
:baz "bazbaz"}} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/conflictdir3/config.json 0000664 0000000 0000000 00000000076 14637566111 0027661 0 ustar 00root root 0000000 0000000 {"foo":
{"something": "something",
"baz": "jsonbaz"}} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/file/ 0000775 0000000 0000000 00000000000 14637566111 0024052 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/file/config.conf 0000664 0000000 0000000 00000000314 14637566111 0026164 0 ustar 00root root 0000000 0000000 foo {
baz = "bazbaz"
// this is a test comment
bam: 42
# this is another test comment
bap.boozle = "boozleboozle"
}
foo.bar = barbar
foo.bap : {
bip : [1, 2, { hi = "there" }, 3]
} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/file/config.edn 0000664 0000000 0000000 00000000201 14637566111 0026000 0 ustar 00root root 0000000 0000000 {:foo
{:bar "barbar"
:baz "bazbaz"
:bam 42
:bap
{:boozle "boozleboozle"
:bip [1 2 {:hi "there"} 3]}}} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/file/config.ini 0000664 0000000 0000000 00000000125 14637566111 0026016 0 ustar 00root root 0000000 0000000 [foo]
# these are some settings
setting1 = foo1
setting2=foo2
[bar]
setting1 = bar1 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/file/config.json 0000664 0000000 0000000 00000000251 14637566111 0026210 0 ustar 00root root 0000000 0000000 {"foo":
{"bar": "barbar",
"baz": "bazbaz",
"bam": 42,
"bap":
{"boozle": "boozleboozle",
"bip": [1, 2, {"hi": "there"}, 3]
}}} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/file/config.properties 0000664 0000000 0000000 00000000110 14637566111 0027425 0 ustar 00root root 0000000 0000000 foo.bar="barbar"
foo.baz=bazbaz
foo.bam=42
foo.bap.boozle="boozleboozle" puppetlabs-trapperkeeper-d1f1135/dev-resources/config/inidir/ 0000775 0000000 0000000 00000000000 14637566111 0024411 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/inidir/bam.ini 0000664 0000000 0000000 00000000025 14637566111 0025646 0 ustar 00root root 0000000 0000000 [bam]
setting1 = bam1 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/inidir/baz.ini 0000664 0000000 0000000 00000000077 14637566111 0025672 0 ustar 00root root 0000000 0000000 [baz]
# these are some settings
setting1 = baz1
setting2=baz2
puppetlabs-trapperkeeper-d1f1135/dev-resources/config/mixeddir/ 0000775 0000000 0000000 00000000000 14637566111 0024740 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/mixeddir/bar.conf 0000664 0000000 0000000 00000000225 14637566111 0026352 0 ustar 00root root 0000000 0000000 bar {
nesty.mappy {
hi = there
# comment
stuff = [1, 2, {"how" = "areyou"}, 3]
}
// comment
junk : "thingz"
} puppetlabs-trapperkeeper-d1f1135/dev-resources/config/mixeddir/baz.ini 0000664 0000000 0000000 00000000077 14637566111 0026221 0 ustar 00root root 0000000 0000000 [baz]
# these are some settings
setting1 = baz1
setting2=baz2
puppetlabs-trapperkeeper-d1f1135/dev-resources/config/mixeddir/foo.properties 0000664 0000000 0000000 00000000064 14637566111 0027641 0 ustar 00root root 0000000 0000000 foo.bar="barbar"
foo.baz=bazbaz
foo.meaningoflife=42 puppetlabs-trapperkeeper-d1f1135/dev-resources/config/mixeddir/taco.json 0000664 0000000 0000000 00000000071 14637566111 0026557 0 ustar 00root root 0000000 0000000 {"taco":
{"burrito": [1, 2],
"nacho": "cheese"}} puppetlabs-trapperkeeper-d1f1135/dev-resources/logback.xml 0000664 0000000 0000000 00000000530 14637566111 0024010 0 ustar 00root root 0000000 0000000
%d %-5p [%c{2}] %m%n
puppetlabs-trapperkeeper-d1f1135/dev-resources/logging/ 0000775 0000000 0000000 00000000000 14637566111 0023314 5 ustar 00root root 0000000 0000000 puppetlabs-trapperkeeper-d1f1135/dev-resources/logging/logback-debug.xml 0000664 0000000 0000000 00000000573 14637566111 0026531 0 ustar 00root root 0000000 0000000
%d %-5p [%c{2}] %m%n