puppetdb_foreman 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -13
- data/app/models/puppetdb_foreman/host_extensions.rb +6 -2
- data/app/models/setting/puppetdb.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
|
@@ -1,15 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
|
|
5
|
-
data.tar.gz: !binary |-
|
|
6
|
-
NjEwZjQzMTlmZmIzNGIyZWFjMjYwNTk0YmY0YjE0NGNlNTZjZDllMQ==
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 476b5034f770b3ff3fb490c93eec09fae28e0e1e
|
|
4
|
+
data.tar.gz: b6f6ae848bd2de0ce959592414ea7f59cd478b46
|
|
7
5
|
SHA512:
|
|
8
|
-
metadata.gz:
|
|
9
|
-
|
|
10
|
-
NWJlYmRmMGQyYjliNWU1MmMxMGZlODAyOGYwN2NkOTRmOThjMWYyY2E0YjJi
|
|
11
|
-
MTEwYmE2OWUzODY3NjRlNjAyMWZkMTFhY2MyZDFlNjBmZGUzZGE=
|
|
12
|
-
data.tar.gz: !binary |-
|
|
13
|
-
Njk4OGIwZTc0ZTlmYjNmMzVkYTkyMTFjMzhhZWM4NTNkZGUxNzMxNzI3ZTQ2
|
|
14
|
-
MmJhNTYzZjFiZDRlNTViOWRhOGM3MWVhMTExNTdmYmQzNzNkNWZlY2QzMGM2
|
|
15
|
-
YzkwY2ZjM2NhOTM5MzlkMDNhMzI4NDNhNmI2ZDRhNmFmNzkxNjU=
|
|
6
|
+
metadata.gz: 1c9ce5e792fd6962a7a8221ec63c43ef1d152ade1df70472848bc4d7b98cc5705ec468418b3cbcc6bc68ff97db7fcb85c40a3ed5703332f5a88a524904ff4662
|
|
7
|
+
data.tar.gz: 724c9999b341ef7cec1329d0e88319abd9fa1b9795d05fb77bb9e9516c6739db660e1c3852a98f451c847f8a5c1c81f1472d0f8eae814466e4de4c38d5682f2e
|
|
@@ -24,7 +24,7 @@ module PuppetdbForeman
|
|
|
24
24
|
logger.debug "Deactivating host #{name} in Puppetdb"
|
|
25
25
|
return false unless configured?
|
|
26
26
|
|
|
27
|
-
if
|
|
27
|
+
if enabled?
|
|
28
28
|
begin
|
|
29
29
|
uri = URI.parse(Setting[:puppetdb_address])
|
|
30
30
|
req = Net::HTTP::Post.new(uri.path)
|
|
@@ -55,11 +55,15 @@ module PuppetdbForeman
|
|
|
55
55
|
private
|
|
56
56
|
|
|
57
57
|
def configured?
|
|
58
|
-
if
|
|
58
|
+
if enabled? && Setting[:puppetdb_address].blank?
|
|
59
59
|
errors.add(:base, _("PuppetDB plugin is enabled but not configured. Please configure it before trying to delete a host."))
|
|
60
60
|
end
|
|
61
61
|
errors.empty?
|
|
62
62
|
end
|
|
63
|
+
|
|
64
|
+
def enabled?
|
|
65
|
+
[true, 'true'].include? Setting[:puppetdb_enabled]
|
|
66
|
+
end
|
|
63
67
|
end
|
|
64
68
|
end
|
|
65
69
|
end
|
metadata
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: puppetdb_foreman
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Lobato Garcia
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-09-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: At the moment it basically disables hosts on puppetdb after they are
|
|
14
|
-
deleted in Foreman. Follow https://github.com/
|
|
14
|
+
deleted in Foreman. Follow https://github.com/theforeman/puppetdb_foreman and raise
|
|
15
15
|
an issue/submit a pull request if you need extra functionality
|
|
16
16
|
email: elobatocs@gmail.com
|
|
17
17
|
executables: []
|
|
@@ -22,7 +22,7 @@ files:
|
|
|
22
22
|
- app/models/setting/puppetdb.rb
|
|
23
23
|
- lib/puppetdb_foreman.rb
|
|
24
24
|
- lib/puppetdb_foreman/engine.rb
|
|
25
|
-
homepage: http://www.github.com/
|
|
25
|
+
homepage: http://www.github.com/theforeman/puppetdb_foreman
|
|
26
26
|
licenses:
|
|
27
27
|
- Apache-2.0
|
|
28
28
|
metadata: {}
|
|
@@ -32,19 +32,18 @@ require_paths:
|
|
|
32
32
|
- lib
|
|
33
33
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
34
34
|
requirements:
|
|
35
|
-
- -
|
|
35
|
+
- - '>='
|
|
36
36
|
- !ruby/object:Gem::Version
|
|
37
37
|
version: '0'
|
|
38
38
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
39
39
|
requirements:
|
|
40
|
-
- -
|
|
40
|
+
- - '>='
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: '0'
|
|
43
43
|
requirements: []
|
|
44
44
|
rubyforge_project:
|
|
45
|
-
rubygems_version: 2.
|
|
45
|
+
rubygems_version: 2.2.2
|
|
46
46
|
signing_key:
|
|
47
47
|
specification_version: 4
|
|
48
48
|
summary: This is a foreman plugin to interact with puppetdb through callbacks.
|
|
49
49
|
test_files: []
|
|
50
|
-
has_rdoc:
|