pero 0.1.5 → 0.1.6
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 +4 -4
- data/Gemfile.lock +2 -2
- data/lib/pero/docker.rb +1 -0
- data/lib/pero/puppet.rb +1 -3
- data/lib/pero/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f970d0b7869fb40c3e86c2946655bd523971901322cf0e290647c2dbe0115a1b
|
|
4
|
+
data.tar.gz: f2a7c166a9feff206398f8e7dad567c24860cd7613f06a1f2a81f3ff6c9f55ac
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28ca76f64521f7529d63cb1c7bfd0ab2747ade30d3f0cbe247f6793a45e6c147e677086e896d925bd1fc2401d74bb1265bdd63c88dcd5c801d2c03496834fba0
|
|
7
|
+
data.tar.gz: fc59ba398210e11a801cafa509eb81c8db0dcb6e3837b78562a021f0face8741935ecff2b2d5cac021bd5940612524a3ff5a6d18197022bfb2e181a27aba098f
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
pero (0.1.
|
|
4
|
+
pero (0.1.5)
|
|
5
5
|
docker-api
|
|
6
6
|
logger
|
|
7
7
|
net-ssh
|
|
@@ -41,7 +41,7 @@ GEM
|
|
|
41
41
|
rspec-support (~> 3.9.0)
|
|
42
42
|
rspec-support (3.9.3)
|
|
43
43
|
sfl (2.3)
|
|
44
|
-
specinfra (2.82.
|
|
44
|
+
specinfra (2.82.19)
|
|
45
45
|
net-scp
|
|
46
46
|
net-ssh (>= 2.7)
|
|
47
47
|
net-telnet (= 0.1.1)
|
data/lib/pero/docker.rb
CHANGED
data/lib/pero/puppet.rb
CHANGED
|
@@ -91,7 +91,6 @@ module Pero
|
|
|
91
91
|
end
|
|
92
92
|
|
|
93
93
|
def serve_master
|
|
94
|
-
Pero.log.info "start puppet master container"
|
|
95
94
|
container = run_container
|
|
96
95
|
begin
|
|
97
96
|
yield container
|
|
@@ -116,8 +115,6 @@ module Pero
|
|
|
116
115
|
port = container.info["Ports"].first["PublicPort"]
|
|
117
116
|
begin
|
|
118
117
|
tmpdir=container.info["id"][0..5]
|
|
119
|
-
Pero.log.info "start forwarding port:#{port}"
|
|
120
|
-
|
|
121
118
|
in_ssh_forwarding(port) do |host, ssh|
|
|
122
119
|
Pero.log.info "#{host}:puppet cmd[#{puppet_cmd}]"
|
|
123
120
|
cmd = "mkdir -p /tmp/puppet/#{tmpdir} && unshare -m -- /bin/bash -c 'export PATH=$PATH:/opt/puppetlabs/bin/ && \
|
|
@@ -163,6 +160,7 @@ module Pero
|
|
|
163
160
|
options.delete(:strict_host_key_checking)
|
|
164
161
|
end
|
|
165
162
|
|
|
163
|
+
Pero.log.info "start forwarding #{specinfra.get_config(:host)}:8140 => localhost:#{port}"
|
|
166
164
|
Net::SSH.start(
|
|
167
165
|
specinfra.get_config(:host),
|
|
168
166
|
options[:user],
|
data/lib/pero/version.rb
CHANGED