├── .editorconfig ├── .gitignore ├── .rspec ├── .rubocop.yml ├── .travis.yml ├── CHANGELOG.md ├── CONTRIBUTORS ├── Gemfile ├── Gemfile.lock ├── LICENSE ├── README.md ├── Rakefile ├── app ├── controllers │ ├── api │ │ └── v1 │ │ │ └── r10k │ │ │ ├── environment_controller.rb │ │ │ └── module_controller.rb │ ├── application_controller.rb │ └── authentication_controller.rb ├── helpers │ └── r10k_helpers.rb ├── models │ └── auth_token.rb ├── views │ ├── layout.erb │ └── welcome.erb └── workers │ ├── application_worker.rb │ └── deploy │ ├── environment.rb │ └── module.rb ├── config.ru ├── config ├── config.yml.example ├── environment.rb ├── initializers │ └── sidekiq.rb └── sidekiq.yml ├── db ├── migrate │ └── 20190305055755_auth_tokens.rb └── schema.rb ├── docs └── LEGACY.md ├── examples └── samples │ ├── generic_samples │ └── github_curl ├── images └── gh.png ├── lib ├── puppet_webhook.rb └── puppet_webhook │ ├── chatops.rb │ ├── chatops │ ├── rocketchat.rb │ └── slack.rb │ ├── orchestrators.rb │ ├── orchestrators │ └── mcollective.rb │ ├── parsers.rb │ ├── parsers │ ├── json.rb │ ├── payload.rb │ └── www_form_url_encoded.rb │ └── r10k_log_proxy.rb ├── resources ├── generate_token ├── postinst.sh ├── puppet-webhook-app.service ├── puppet-webhook-sidekiq.service ├── puppet-webhook.service └── puppetwebhook └── spec ├── app ├── controllers │ ├── api │ │ └── v1 │ │ │ └── r10k │ │ │ ├── environment_controller_spec.rb │ │ │ └── module_controller_spec.rb │ └── application_controller_spec.rb ├── helpers │ └── r10k_helpers_spec.rb └── workers │ └── deploy │ ├── environment_spec.rb │ └── module_spec.rb ├── fixtures ├── bitbucket-server │ ├── create.json │ ├── delete.json │ ├── update-headers.json │ └── update.json ├── bitbucket │ ├── create.json │ ├── delete.json │ ├── update-headers.json │ └── update.json ├── github │ ├── create.json │ ├── delete.json │ ├── update-headers.json │ └── update.json ├── gitlab │ ├── create.json │ ├── delete.json │ ├── update-headers.json │ └── update.json ├── stash │ ├── create.json │ ├── delete.json │ ├── update-headers.json │ └── update.json └── tfs │ ├── delete.json │ ├── update-headers.json │ └── update.json ├── spec_helper.rb ├── support └── webmock.rb └── unit └── puppet_webhook └── parsers_spec.rb /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/.gitignore -------------------------------------------------------------------------------- /.rspec: -------------------------------------------------------------------------------- 1 | --format documentation 2 | --color 3 | -------------------------------------------------------------------------------- /.rubocop.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/.rubocop.yml -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/.travis.yml -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /CONTRIBUTORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/CONTRIBUTORS -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/Gemfile -------------------------------------------------------------------------------- /Gemfile.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/Gemfile.lock -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/README.md -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/Rakefile -------------------------------------------------------------------------------- /app/controllers/api/v1/r10k/environment_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/controllers/api/v1/r10k/environment_controller.rb -------------------------------------------------------------------------------- /app/controllers/api/v1/r10k/module_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/controllers/api/v1/r10k/module_controller.rb -------------------------------------------------------------------------------- /app/controllers/application_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/controllers/application_controller.rb -------------------------------------------------------------------------------- /app/controllers/authentication_controller.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/controllers/authentication_controller.rb -------------------------------------------------------------------------------- /app/helpers/r10k_helpers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/helpers/r10k_helpers.rb -------------------------------------------------------------------------------- /app/models/auth_token.rb: -------------------------------------------------------------------------------- 1 | # frozen_string_literal: true 2 | 3 | class AuthToken < ActiveRecord::Base; end 4 | -------------------------------------------------------------------------------- /app/views/layout.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/views/layout.erb -------------------------------------------------------------------------------- /app/views/welcome.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/views/welcome.erb -------------------------------------------------------------------------------- /app/workers/application_worker.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/workers/application_worker.rb -------------------------------------------------------------------------------- /app/workers/deploy/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/workers/deploy/environment.rb -------------------------------------------------------------------------------- /app/workers/deploy/module.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/app/workers/deploy/module.rb -------------------------------------------------------------------------------- /config.ru: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/config.ru -------------------------------------------------------------------------------- /config/config.yml.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/config/config.yml.example -------------------------------------------------------------------------------- /config/environment.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/config/environment.rb -------------------------------------------------------------------------------- /config/initializers/sidekiq.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/config/initializers/sidekiq.rb -------------------------------------------------------------------------------- /config/sidekiq.yml: -------------------------------------------------------------------------------- 1 | --- 2 | :concurrency: 1 3 | -------------------------------------------------------------------------------- /db/migrate/20190305055755_auth_tokens.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/db/migrate/20190305055755_auth_tokens.rb -------------------------------------------------------------------------------- /db/schema.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/db/schema.rb -------------------------------------------------------------------------------- /docs/LEGACY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/docs/LEGACY.md -------------------------------------------------------------------------------- /examples/samples/generic_samples: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/examples/samples/generic_samples -------------------------------------------------------------------------------- /examples/samples/github_curl: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/examples/samples/github_curl -------------------------------------------------------------------------------- /images/gh.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/images/gh.png -------------------------------------------------------------------------------- /lib/puppet_webhook.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/chatops.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/chatops.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/chatops/rocketchat.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/chatops/rocketchat.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/chatops/slack.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/chatops/slack.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/orchestrators.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/orchestrators.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/orchestrators/mcollective.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/orchestrators/mcollective.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/parsers.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/parsers.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/parsers/json.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/parsers/json.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/parsers/payload.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/parsers/payload.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/parsers/www_form_url_encoded.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/parsers/www_form_url_encoded.rb -------------------------------------------------------------------------------- /lib/puppet_webhook/r10k_log_proxy.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/lib/puppet_webhook/r10k_log_proxy.rb -------------------------------------------------------------------------------- /resources/generate_token: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/resources/generate_token -------------------------------------------------------------------------------- /resources/postinst.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/resources/postinst.sh -------------------------------------------------------------------------------- /resources/puppet-webhook-app.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/resources/puppet-webhook-app.service -------------------------------------------------------------------------------- /resources/puppet-webhook-sidekiq.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/resources/puppet-webhook-sidekiq.service -------------------------------------------------------------------------------- /resources/puppet-webhook.service: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/resources/puppet-webhook.service -------------------------------------------------------------------------------- /resources/puppetwebhook: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/resources/puppetwebhook -------------------------------------------------------------------------------- /spec/app/controllers/api/v1/r10k/environment_controller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/app/controllers/api/v1/r10k/environment_controller_spec.rb -------------------------------------------------------------------------------- /spec/app/controllers/api/v1/r10k/module_controller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/app/controllers/api/v1/r10k/module_controller_spec.rb -------------------------------------------------------------------------------- /spec/app/controllers/application_controller_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/app/controllers/application_controller_spec.rb -------------------------------------------------------------------------------- /spec/app/helpers/r10k_helpers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/app/helpers/r10k_helpers_spec.rb -------------------------------------------------------------------------------- /spec/app/workers/deploy/environment_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/app/workers/deploy/environment_spec.rb -------------------------------------------------------------------------------- /spec/app/workers/deploy/module_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/app/workers/deploy/module_spec.rb -------------------------------------------------------------------------------- /spec/fixtures/bitbucket-server/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket-server/create.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket-server/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket-server/delete.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket-server/update-headers.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket-server/update-headers.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket-server/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket-server/update.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket/create.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket/delete.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket/update-headers.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket/update-headers.json -------------------------------------------------------------------------------- /spec/fixtures/bitbucket/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/bitbucket/update.json -------------------------------------------------------------------------------- /spec/fixtures/github/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/github/create.json -------------------------------------------------------------------------------- /spec/fixtures/github/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/github/delete.json -------------------------------------------------------------------------------- /spec/fixtures/github/update-headers.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/github/update-headers.json -------------------------------------------------------------------------------- /spec/fixtures/github/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/github/update.json -------------------------------------------------------------------------------- /spec/fixtures/gitlab/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/gitlab/create.json -------------------------------------------------------------------------------- /spec/fixtures/gitlab/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/gitlab/delete.json -------------------------------------------------------------------------------- /spec/fixtures/gitlab/update-headers.json: -------------------------------------------------------------------------------- 1 | { 2 | "HTTP_X_GITLAB_EVENT": "Push Hook" 3 | } 4 | -------------------------------------------------------------------------------- /spec/fixtures/gitlab/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/gitlab/update.json -------------------------------------------------------------------------------- /spec/fixtures/stash/create.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/stash/create.json -------------------------------------------------------------------------------- /spec/fixtures/stash/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/stash/delete.json -------------------------------------------------------------------------------- /spec/fixtures/stash/update-headers.json: -------------------------------------------------------------------------------- 1 | { 2 | "HTTP_X_ATLASSIAN_TOKEN": "no-check" 3 | } 4 | -------------------------------------------------------------------------------- /spec/fixtures/stash/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/stash/update.json -------------------------------------------------------------------------------- /spec/fixtures/tfs/delete.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/tfs/delete.json -------------------------------------------------------------------------------- /spec/fixtures/tfs/update-headers.json: -------------------------------------------------------------------------------- 1 | {} 2 | -------------------------------------------------------------------------------- /spec/fixtures/tfs/update.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/fixtures/tfs/update.json -------------------------------------------------------------------------------- /spec/spec_helper.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/spec_helper.rb -------------------------------------------------------------------------------- /spec/support/webmock.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/support/webmock.rb -------------------------------------------------------------------------------- /spec/unit/puppet_webhook/parsers_spec.rb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/voxpupuli/puppet_webhook/HEAD/spec/unit/puppet_webhook/parsers_spec.rb --------------------------------------------------------------------------------