smart_proxy_ansible 1.0.1 → 1.1.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 678d2bbb6e06eeedb710162915f888dbcf8e74f5
|
|
4
|
+
data.tar.gz: 187ab51855aa3b009ccc80247ce584da346c1818
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c13d64f05f64ade9df6969bbf957e9cbe41a6ad0c43ba13ce28901a339731f6bc946e354e6f5e99b615906bce3247871d9772b9b50aaa32f0bc0926f4133e6dd
|
|
7
|
+
data.tar.gz: 52e311eae696e1fe19273ada1c25fed3231aecaeed045a7b5bcc5d3126865db624227d92fa814738a0f2144e8e302d2ded1c192f639a55bd5640475eab22f482
|
|
@@ -1 +1 @@
|
|
|
1
|
-
gem 'foreman_ansible_core', '~> 1.0
|
|
1
|
+
gem 'foreman_ansible_core', '~> 1.0'
|
|
@@ -2,12 +2,14 @@ module Proxy
|
|
|
2
2
|
module Ansible
|
|
3
3
|
class Api < Sinatra::Base
|
|
4
4
|
get '/roles' do
|
|
5
|
-
|
|
5
|
+
ForemanAnsibleCore::RolesReader.list_roles.to_json
|
|
6
6
|
end
|
|
7
7
|
|
|
8
8
|
get '/roles/:role_name/variables' do |role_name|
|
|
9
9
|
# not anything matching item, }}, {{, ansible_hostname or 'if'
|
|
10
|
-
|
|
10
|
+
ansible_config = '/etc/ansible/ansible.cfg'
|
|
11
|
+
roles_path = ForemanAnsibleCore::RolesReader.roles_path(ansible_config)
|
|
12
|
+
role_files = Dir.glob("#{roles_path}/#{role_name}/**/*.yml")
|
|
11
13
|
variables = role_files.map do |role_file|
|
|
12
14
|
File.read(role_file).scan(/{{(.*?)}}/).select do |param|
|
|
13
15
|
param.first.scan(/item/) == [] && param.first.scan(/if/) == []
|
metadata
CHANGED
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: smart_proxy_ansible
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0
|
|
4
|
+
version: 1.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Ivan Nečas
|
|
8
|
+
- Daniel Lobato
|
|
8
9
|
autorequire:
|
|
9
10
|
bindir: bin
|
|
10
11
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
12
|
+
date: 2017-02-13 00:00:00.000000000 Z
|
|
12
13
|
dependencies:
|
|
13
14
|
- !ruby/object:Gem::Dependency
|
|
14
15
|
name: bundler
|
|
@@ -126,6 +127,7 @@ description: |2
|
|
|
126
127
|
Smart-Proxy ansible plugin
|
|
127
128
|
email:
|
|
128
129
|
- inecas@redhat.com
|
|
130
|
+
- dlobatog@redhat.com
|
|
129
131
|
executables: []
|
|
130
132
|
extensions: []
|
|
131
133
|
extra_rdoc_files:
|
|
@@ -142,7 +144,7 @@ files:
|
|
|
142
144
|
- lib/smart_proxy_ansible/plugin.rb
|
|
143
145
|
- lib/smart_proxy_ansible/version.rb
|
|
144
146
|
- settings.d/ansible.yml.example
|
|
145
|
-
homepage: https://github.com/
|
|
147
|
+
homepage: https://github.com/theforeman/smart_proxy_ansible
|
|
146
148
|
licenses:
|
|
147
149
|
- GPLv3
|
|
148
150
|
metadata: {}
|
|
@@ -165,5 +167,5 @@ rubyforge_project:
|
|
|
165
167
|
rubygems_version: 2.4.5.1
|
|
166
168
|
signing_key:
|
|
167
169
|
specification_version: 4
|
|
168
|
-
summary: Smart-Proxy
|
|
170
|
+
summary: Smart-Proxy Ansible plugin
|
|
169
171
|
test_files: []
|