puppet_webhook 1.5.1 → 1.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/helpers/deployments.rb +2 -3
- data/lib/helpers/tasks.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f3451d52653764b10cebb1f14ad0ae809424236
|
4
|
+
data.tar.gz: e8032a9dcfea398560a6287ff633da4cba8b3a45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81723a19aad80a1a2ee1444066d589bec0066d3fd9588e094f5aaba7283a159e5256397b06d056303aed9fcd513bf0eb0f66431c3030bb99c03d55b66c9515c8
|
7
|
+
data.tar.gz: f634ffd28d33e10c9f3662829a8476c0814b2ae1f4f9d94632b8010c489315effa5df28491208422f405dab9e7882509e1b5bccae50953f25d85776a88541600
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
Each new release typically also includes the latest modulesync defaults.
|
5
5
|
These should not affect the functionality of the module.
|
6
6
|
|
7
|
+
## [v1.5.2](https://github.com/voxpupuli/puppet_webhook/tree/v1.5.2) (2018-11-02)
|
8
|
+
[Full Changelog](https://github.com/voxpupuli/puppet_webhook/compare/v1.5.1...v1.5.2)
|
9
|
+
|
10
|
+
**Merged pull requests:**
|
11
|
+
|
12
|
+
- Only load mco and chatops plugins if enabled [\#66](https://github.com/voxpupuli/puppet_webhook/pull/66) ([dhollinger](https://github.com/dhollinger))
|
13
|
+
|
7
14
|
## [v1.5.1](https://github.com/voxpupuli/puppet_webhook/tree/v1.5.1) (2018-11-02)
|
8
15
|
[Full Changelog](https://github.com/voxpupuli/puppet_webhook/compare/v1.5.0...v1.5.1)
|
9
16
|
|
data/lib/helpers/deployments.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
|
-
require 'plugins/mcollective'
|
2
|
-
require 'plugins/chatops'
|
3
|
-
|
4
1
|
module Deployments # rubocop:disable Style/Documentation
|
5
2
|
def deploy(branch, deleted)
|
6
3
|
# Currently requires puppet_webhook to be run as a non-root
|
7
4
|
# user with access to running the MCollective client.
|
8
5
|
if settings.use_mcollective
|
6
|
+
require 'plugins/mcollective'
|
9
7
|
results = PuppetWebhook::Mcollective.new('r10k',
|
10
8
|
'deploy',
|
11
9
|
{
|
@@ -43,6 +41,7 @@ module Deployments # rubocop:disable Style/Documentation
|
|
43
41
|
# Currently requires puppet_webhook to be run as a non-root
|
44
42
|
# user with access to running the MCollective client.
|
45
43
|
if settings.use_mcollective
|
44
|
+
require 'plugins/mcollective'
|
46
45
|
results = PuppetWebhook::Mcollective.new('r10k',
|
47
46
|
'deploy',
|
48
47
|
{
|
data/lib/helpers/tasks.rb
CHANGED
@@ -64,6 +64,8 @@ module Tasks # rubocop:disable Style/Documentation
|
|
64
64
|
def notification(message)
|
65
65
|
return unless settings.chatops || settings.slack_webhook
|
66
66
|
|
67
|
+
require 'plugins/chatops'
|
68
|
+
|
67
69
|
slack_settings if settings.chatops == false && settings.slack_webhook != false
|
68
70
|
PuppetWebhook::Chatops.new(settings.chatops_service,
|
69
71
|
settings.chatops_url,
|