puppetdb_foreman 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 84a178d844838f6b0700fe061146387b74bb2fe2
|
4
|
+
data.tar.gz: 0c5c53cf3ab639d6a5714bbffd5da35817620de8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8f2e07d114710c786dc4da06052a06dfdc43ee5ee97b3e97cc174a36955ff8379f5874428f3510709a805a891ba7249731ea42923579c8cbfd1473112065c0a
|
7
|
+
data.tar.gz: 112c0a72a78d6c94bfb26c73d2c6ea9be9f102fc019c6a0bf3cab52a0896f1e255621f52bfbfd65118821a1d78fd4d6684beee7ada9b32e96e430e7ecc0bf42a
|
@@ -1,4 +1,6 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
<%= alert(:class => 'alert-warning',
|
2
|
+
:text => _("Error proxying PuppetDB Dashboard: #{@proxy_error}.") +
|
3
|
+
' ' + _('Maybe you need to set ') +
|
4
|
+
link_to(_('puppetdb_dashboard_address'),
|
5
|
+
settings_path(:search => 'puppetdb_dashboard_address')) +
|
6
|
+
_(' in Settings')) %>
|
data/config/routes.rb
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
Rails.application.routes.draw do
|
2
|
-
|
2
|
+
get ':puppetdb(/*puppetdb_url)', :to => 'puppetdb_foreman/puppetdb#index', :puppetdb => /d3\.v2|charts|v3|puppetdb|metrics|\/pdb\/meta\/v1\/version\/latest|pdb\/meta\/v1\/version/, :as => "puppetdb"
|
3
3
|
end
|
data/lib/puppetdb_foreman.rb
CHANGED
@@ -7,7 +7,7 @@ module PuppetdbForeman
|
|
7
7
|
|
8
8
|
initializer 'puppetdb_foreman.register_plugin', :after=> :finisher_hook do |app|
|
9
9
|
Foreman::Plugin.register :puppetdb_foreman do
|
10
|
-
requires_foreman '> 1.
|
10
|
+
requires_foreman '> 1.10'
|
11
11
|
security_block :puppetdb_foreman do
|
12
12
|
permission :view_puppetdb_dashboard, {:'puppetdb_foreman/puppetdb' => [:index]}
|
13
13
|
end
|