smart_proxy_remote_execution_ssh 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZjdmZmFmMmM4MTJkMGFiYzQzNThkM2ZmMmE0YTVkM2IxNWZjNTYyZg==
5
- data.tar.gz: !binary |-
6
- MGM5M2MwYWEzOTI5Zjk0NzBiZDQ5N2IyZjFlMTQwYWQzNzUyNDM4Mw==
2
+ SHA1:
3
+ metadata.gz: d24214ae74bec3832ef4537c14025712548c7e5a
4
+ data.tar.gz: 191de9ecde2996a5198967a9e2c26b4a969d8b45
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- N2Q3ZTUwNTdmOTA2ZGNhYjYxYjY1Nzc3YmIwY2U0OWE2NTE5M2JiMjRkYzUz
10
- MjM5NzI3MmQ4Y2I3ZmU0MDZiY2JjN2Y5ZDliZjUwYWI4NWY2MGUzMjhkZjg5
11
- NzFkNWJhYzNiOGY1ZDc4YjYwMWE2NTRjYjgyMGViYzIyNjAxOTc=
12
- data.tar.gz: !binary |-
13
- NzkxYmY2NzViOGNkMzYyZjJkZWY4ZTJiYmJkNzk3YTA2MTBlMGQ4NmIwYTgw
14
- ODI3ZjUyMzZmN2E2MjVkYzk4ZTQ1YmVhMzBkYjk0ODkyNzczZWMyOGRkZTAz
15
- OGY5YzY2ZDE4NzNiOTI0MzkwOGUxZDFkYTBmZDQ3OGFlNzViNzk=
6
+ metadata.gz: 42fe7d6f9697a08d08b535b5a19532d1625c6a72d733fcf715d3bc2aa89d51474798996a5717da7aea171dc16675a0edca5cf5fc6fb3c5668cdf24f41a4f0ea8
7
+ data.tar.gz: 54ede07833fb417e55f0bbdf0c354d85efedde2e842b2b8fb7b2c8545127a2d7a0893d557d4d626aba0076722d508bece408336fa3244a83b8e0609ec52245d1
data/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # Smart-proxy Ssh plugin
2
+
3
+ This a plugin for foreman smart-proxy allowing using ssh for the
4
+ [remote execution](http://theforeman.github.io/foreman_remote_execution/)
5
+
6
+ ## Installation
7
+
8
+ Add this line to your smart proxy bundler.d/ssh.rb gemfile:
9
+
10
+ ```ruby
11
+ gem 'smart_proxy_dynflow', :git => 'https://github.com/iNecas/smart_proxy_dynflow.git'
12
+ gem 'smart_proxy_ssh', :git => 'https://github.com/iNecas/smart_proxy_ssh.git'
13
+ ```
14
+
15
+ Enable the plugins in your smart proxy:
16
+
17
+ ```bash
18
+ cat > config/settings.d/dynflow.yml <<EOF
19
+ ---
20
+ :enabled: true
21
+ EOF
22
+
23
+ cat > config/settings.d/remote_execution_ssh.yml <<EOF
24
+ ---
25
+ :enabled: true
26
+ EOF
27
+ ```
28
+
29
+ Install the dependencies
30
+
31
+ $ bundle
32
+
33
+ ## Usage
34
+
35
+ To configure this plugin you can use template from settings.d/remote_execution_ssh.yml.example.
36
+ You must place remote_execution_ssh.yml config file (based on this template) to your
37
+ smart-proxy config/settings.d/ directory.
38
+
39
+ Also, you need to have the `dynflow` plugin enabled to be able to
40
+ trigger the tasks.
41
+
42
+ The simplest thing one can do is just to trigger a command:
43
+
44
+ ```
45
+ curl http://my-proxy.example.com:9292/dynflow/tasks \
46
+ -X POST -H 'Content-Type: application/json'\
47
+ -d '{"action_name": "Proxy::RemoteExecution::Ssh::CommandAction",
48
+ "action_input": {"task_id" : "1234'$RANDOM'",
49
+ "script": "/usr/bin/ls",
50
+ "hostname": "localhost",
51
+ "effective_user": "root"}}'
52
+ ```
@@ -3,7 +3,7 @@ module Proxy::RemoteExecution::Ssh
3
3
  http_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))
4
4
  https_rackup_path File.expand_path("http_config.ru", File.expand_path("../", __FILE__))
5
5
 
6
- settings_file "ssh.yml"
6
+ settings_file "remote_execution_ssh.yml"
7
7
  default_settings :ssh_identity_key_file => '~/.ssh/id_rsa_foreman_proxy',
8
8
  :ssh_user => 'root'
9
9
  plugin :ssh, Proxy::RemoteExecution::Ssh::VERSION
@@ -1,7 +1,7 @@
1
1
  module Proxy
2
2
  module RemoteExecution
3
3
  module Ssh
4
- VERSION = '0.0.2'
4
+ VERSION = '0.0.3'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smart_proxy_remote_execution_ssh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Nečas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ! '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ! '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: mocha
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '1'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: webmock
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rack-test
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ~>
87
+ - - "~>"
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ~>
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
@@ -112,56 +112,56 @@ dependencies:
112
112
  name: smart_proxy_dynflow
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - ~>
115
+ - - "~>"
116
116
  - !ruby/object:Gem::Version
117
117
  version: 0.0.3
118
118
  type: :runtime
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - ~>
122
+ - - "~>"
123
123
  - !ruby/object:Gem::Version
124
124
  version: 0.0.3
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: net-ssh
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - ! '>='
129
+ - - ">="
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :runtime
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - ! '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: net-scp
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - ! '>='
143
+ - - ">="
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - ! '>='
150
+ - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
- description: ! ' Ssh remote execution provider for Foreman Smart-Proxy
154
-
155
- '
153
+ description: |2
154
+ Ssh remote execution provider for Foreman Smart-Proxy
156
155
  email:
157
156
  - inecas@redhat.com
158
157
  executables: []
159
158
  extensions: []
160
- extra_rdoc_files: []
159
+ extra_rdoc_files:
160
+ - README.md
161
+ - LICENSE
161
162
  files:
162
- - Gemfile
163
163
  - LICENSE
164
- - bundler.d/Gemfile.local.rb
164
+ - README.md
165
165
  - bundler.d/remote_execution_ssh.rb
166
166
  - lib/smart_proxy_remote_execution_ssh.rb
167
167
  - lib/smart_proxy_remote_execution_ssh/api.rb
@@ -171,7 +171,7 @@ files:
171
171
  - lib/smart_proxy_remote_execution_ssh/http_config.ru
172
172
  - lib/smart_proxy_remote_execution_ssh/plugin.rb
173
173
  - lib/smart_proxy_remote_execution_ssh/version.rb
174
- - settings.d/ssh.yml.example
174
+ - settings.d/remote_execution_ssh.yml.example
175
175
  homepage: https://github.com/theforeman/smart_proxy_remote_execution_ssh
176
176
  licenses:
177
177
  - GPLv3
@@ -182,19 +182,18 @@ require_paths:
182
182
  - lib
183
183
  required_ruby_version: !ruby/object:Gem::Requirement
184
184
  requirements:
185
- - - ! '>='
185
+ - - ">="
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
188
  required_rubygems_version: !ruby/object:Gem::Requirement
189
189
  requirements:
190
- - - ! '>='
190
+ - - ">="
191
191
  - !ruby/object:Gem::Version
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.4.8
195
+ rubygems_version: 2.4.5
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Ssh remote execution provider for Foreman Smart-Proxy
199
199
  test_files: []
200
- has_rdoc:
data/Gemfile DELETED
@@ -1,10 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gemspec
4
-
5
- group :development do
6
- gem 'smart_proxy', :git => "https://github.com/theforeman/smart-proxy", :branch => "develop"
7
- # TODO: update to master one the https://github.com/theforeman/smart_proxy_dynflow/pull/1 is merged
8
- gem 'smart_proxy_dynflow', :git => "https://github.com/iNecas/smart_proxy_dynflow", :branch => 'initial'
9
- gem 'pry'
10
- end
@@ -1 +0,0 @@
1
- gem 'pry'