puppetdb_foreman 0.0.6 → 0.0.7
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 +8 -8
- data/app/models/setting/puppetdb.rb +10 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Y2ZlNTE5MTNiMjBkNmRkMzQ1ZTVlYmU2OGU1NTNjODg3NmQxYWViOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjEwZjQzMTlmZmIzNGIyZWFjMjYwNTk0YmY0YjE0NGNlNTZjZDllMQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjBmOWFlNGI2Y2MxZDEwYjc5MDE0ZjkzN2FjZmQ2MzczOWQ5NTUxZDUwNDlk
|
10
|
+
NWJlYmRmMGQyYjliNWU1MmMxMGZlODAyOGYwN2NkOTRmOThjMWYyY2E0YjJi
|
11
|
+
MTEwYmE2OWUzODY3NjRlNjAyMWZkMTFhY2MyZDFlNjBmZGUzZGE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
Njk4OGIwZTc0ZTlmYjNmMzVkYTkyMTFjMzhhZWM4NTNkZGUxNzMxNzI3ZTQ2
|
14
|
+
MmJhNTYzZjFiZDRlNTViOWRhOGM3MWVhMTExNTdmYmQzNzNkNWZlY2QzMGM2
|
15
|
+
YzkwY2ZjM2NhOTM5MzlkMDNhMzI4NDNhNmI2ZDRhNmFmNzkxNjU=
|
@@ -2,15 +2,23 @@ class Setting::Puppetdb < ::Setting
|
|
2
2
|
BLANK_ATTRS << 'puppetdb_address'
|
3
3
|
|
4
4
|
def self.load_defaults
|
5
|
+
if SETTINGS[:puppetdb].present?
|
6
|
+
default_enabled = SETTINGS[:puppetdb][:enabled]
|
7
|
+
default_address = SETTINGS[:puppetdb][:address]
|
8
|
+
end
|
9
|
+
|
10
|
+
default_enabled ||= 'false'
|
11
|
+
default_address ||= 'https://puppetdb:8081/v2/commands'
|
12
|
+
|
5
13
|
Setting.transaction do
|
6
14
|
[
|
7
|
-
self.set('puppetdb_enabled', _("Integration with PuppetDB, enabled will deactivate a host in PuppetDB when it's deleted in Foreman"),
|
15
|
+
self.set('puppetdb_enabled', _("Integration with PuppetDB, enabled will deactivate a host in PuppetDB when it's deleted in Foreman"), default_enabled)
|
8
16
|
].compact.each { |s| self.create s.update(:category => 'Setting::Puppetdb')}
|
9
17
|
end
|
10
18
|
|
11
19
|
Setting.transaction do
|
12
20
|
[
|
13
|
-
self.set('puppetdb_address', _('Foreman will send PuppetDB requests to this address'),
|
21
|
+
self.set('puppetdb_address', _('Foreman will send PuppetDB requests to this address'), default_address)
|
14
22
|
].compact.each { |s| self.create s.update(:category => 'Setting::Puppetdb')}
|
15
23
|
end
|
16
24
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.7
|
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-07-
|
11
|
+
date: 2014-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: At the moment it basically disables hosts on puppetdb after they are
|
14
14
|
deleted in Foreman. Follow https://github.com/cernops/puppetdb_foreman and raise
|