train-awsssm 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/train-awsssm/connection.rb +6 -0
- data/lib/train-awsssm/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 041cd55cc0d4c017c485f01e7a1e66bc1b1613878c3fa5ae5f63eb32a5ebde68
|
4
|
+
data.tar.gz: 95a505fbe146d80c867212658a7b50ca1de8662cadd2ab4428df63ed6c789d4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 235b021f311880bf479236543271ac364b5a53d8356b53b5300b9e4356790e3ea904e8d2740babc16621218b2e56ccdc2caa6c6ecd38da35a63c0e1124338e6f
|
7
|
+
data.tar.gz: f4a06389079443c938778cd5cdfc8af643962102533ec63916a8e2c567c9435a09bb51a5e128cf82694992daaea9124a024ae3ce1039b72992917dbacc5d55e2
|
data/CHANGELOG.md
CHANGED
@@ -89,6 +89,11 @@ module TrainPlugins
|
|
89
89
|
|
90
90
|
raise ArgumentError, format("Instance %s is not running", instance_id) unless instance_running?
|
91
91
|
raise ArgumentError, format("Instance %s is not managed by SSM or agent unreachable", instance_id) unless managed_instance?
|
92
|
+
|
93
|
+
options[:execution_timeout] = Integer(options[:execution_timeout])
|
94
|
+
options[:recheck_invocation] = Float(options[:recheck_invocation])
|
95
|
+
options[:recheck_execution] = Float(options[:recheck_execution])
|
96
|
+
options[:instance_pagesize] = Integer(options[:instance_pagesize])
|
92
97
|
end
|
93
98
|
|
94
99
|
# Resolve EC2 instance ID associated with a primary IP or a DNS entry
|
@@ -218,6 +223,7 @@ module TrainPlugins
|
|
218
223
|
def execute_command(address, command)
|
219
224
|
ssm_document = windows_instance? ? "AWS-RunPowerShellScript" : "AWS-RunShellScript"
|
220
225
|
|
226
|
+
logger.debug format("[AWS-SSM] Executing with timeout of %s seconds", options[:execution_timeout])
|
221
227
|
cmd = ssm.send_command(instance_ids: [instance_id], document_name: ssm_document, parameters: { "commands": [command] })
|
222
228
|
cmd_id = cmd.command.command_id
|
223
229
|
|
data/lib/train-awsssm/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: train-awsssm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Heinen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bump
|
@@ -113,7 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
113
113
|
- !ruby/object:Gem::Version
|
114
114
|
version: '0'
|
115
115
|
requirements: []
|
116
|
-
rubygems_version: 3.
|
116
|
+
rubygems_version: 3.4.1
|
117
117
|
signing_key:
|
118
118
|
specification_version: 4
|
119
119
|
summary: Train Transport for AWS Systems Manager Agents
|