Skip to content

Commit 7f69274

Browse files
author
scott coulton
committed
Fix for swarm run
1 parent 74b3842 commit 7f69274

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
/.tmp
22
/.vagrant/
3-
/.DS_Store
3+
/.DS_Store
4+
/.bundle

modules/docker_swarm/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/junit.xml
33
/spec/fixtures
44
/pkg
5+
/.bundle

modules/docker_swarm/lib/puppet/provider/swarm_run/ruby.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ def port
1717
ports = (resource[:ports])
1818
ports_conf = Array.new
1919
if ports.respond_to?(:to_str)
20-
a = ports_conf.push(ports)
21-
a.unshift('-p')
20+
a = ports.insert(0, '--publish=')
2221
else
2322
a = ports_conf + ports
2423
a.each do |p|

servers.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
forward_ports:
88
- { guest: 8500, host: 9501 }
99
- { guest: 80, host: 8001 }
10+
- { guest: 443, host: 8441 }
1011
- { guest: 8080, host: 8081 }
1112
ram: 2048
1213
shell_commands:
@@ -25,6 +26,7 @@
2526
forward_ports:
2627
- { guest: 8500, host: 9502 }
2728
- { guest: 80, host: 8002 }
29+
- { guest: 443, host: 8442 }
2830
- { guest: 8080, host: 8082 }
2931
ram: 2048
3032
shell_commands:
@@ -43,6 +45,7 @@
4345
forward_ports:
4446
- { guest: 8500, host: 9503 }
4547
- { guest: 80, host: 8003 }
48+
- { guest: 443, host: 8443 }
4649
- { guest: 8080, host: 8083 }
4750
ram: 2048
4851
shell_commands:

0 commit comments

Comments
 (0)