vagrant-ansible 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +4 -0
- data/lib/vagrant-ansible/provisioner.rb +9 -4
- metadata +33 -18
data/README.md
CHANGED
@@ -44,6 +44,10 @@ Then install the vagrant gem:
|
|
44
44
|
Then install the vagrant-ansible gem:
|
45
45
|
|
46
46
|
gem install vagrant-ansible
|
47
|
+
|
48
|
+
If you installed vagrant using a package from [vagrant homepage](http://downloads.vagrantup.com/) you have to install vagrant-ansible via the vagrant command:
|
49
|
+
|
50
|
+
vagrant gem install vagrant-ansible
|
47
51
|
|
48
52
|
Create a playbook or just clone an existing repository:
|
49
53
|
|
@@ -3,7 +3,7 @@ require 'tempfile'
|
|
3
3
|
module Vagrant
|
4
4
|
module Provisioners
|
5
5
|
class Ansible < Base
|
6
|
-
VERSION = '0.0.
|
6
|
+
VERSION = '0.0.5'
|
7
7
|
include Util::SafeExec
|
8
8
|
|
9
9
|
class Config < Vagrant::Config::Base
|
@@ -55,9 +55,15 @@ module Vagrant
|
|
55
55
|
forward = env[:vm].config.vm.forwarded_ports.select do |x|
|
56
56
|
x[:guestport] == ssh.guest_port
|
57
57
|
end.first[:hostport]
|
58
|
+
if not config.hosts.kind_of?(Array)
|
59
|
+
config.hosts = [config.hosts]
|
60
|
+
end
|
58
61
|
file = Tempfile.new('inventory')
|
59
|
-
|
60
|
-
|
62
|
+
config.hosts.each do |host|
|
63
|
+
file.write("[#{host}]\n")
|
64
|
+
file.write("#{ssh.host}:#{forward}\n")
|
65
|
+
file.write("\n")
|
66
|
+
end
|
61
67
|
file.fsync
|
62
68
|
file.close
|
63
69
|
yield file.path
|
@@ -81,7 +87,6 @@ module Vagrant
|
|
81
87
|
|
82
88
|
cmd = (%w(ansible-playbook) << options << config.playbook).flatten
|
83
89
|
|
84
|
-
puts cmd
|
85
90
|
safe_exec *cmd
|
86
91
|
end
|
87
92
|
end
|
metadata
CHANGED
@@ -1,49 +1,64 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-ansible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.4
|
5
4
|
prerelease:
|
5
|
+
version: 0.0.5
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Dominik Sander
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-01-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
|
16
|
-
requirement:
|
15
|
+
prerelease: false
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
requirements:
|
18
|
+
- - ! '>='
|
19
|
+
- !ruby/object:Gem::Version
|
20
|
+
version: '0'
|
17
21
|
none: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
23
|
requirements:
|
19
24
|
- - ! '>='
|
20
25
|
- !ruby/object:Gem::Version
|
21
26
|
version: '0'
|
27
|
+
none: false
|
22
28
|
type: :runtime
|
23
|
-
|
24
|
-
version_requirements: *22328900
|
29
|
+
name: vagrant
|
25
30
|
- !ruby/object:Gem::Dependency
|
26
|
-
|
27
|
-
requirement:
|
31
|
+
prerelease: false
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
requirements:
|
34
|
+
- - ~>
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '3.10'
|
28
37
|
none: false
|
38
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
39
|
requirements:
|
30
40
|
- - ~>
|
31
41
|
- !ruby/object:Gem::Version
|
32
42
|
version: '3.10'
|
43
|
+
none: false
|
33
44
|
type: :development
|
34
|
-
|
35
|
-
version_requirements: *22327820
|
45
|
+
name: rdoc
|
36
46
|
- !ruby/object:Gem::Dependency
|
37
|
-
|
38
|
-
requirement:
|
47
|
+
prerelease: false
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '3.4'
|
39
53
|
none: false
|
54
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
55
|
requirements:
|
41
56
|
- - ~>
|
42
57
|
- !ruby/object:Gem::Version
|
43
|
-
version: '3.
|
58
|
+
version: '3.4'
|
59
|
+
none: false
|
44
60
|
type: :development
|
45
|
-
|
46
|
-
version_requirements: *22326620
|
61
|
+
name: hoe
|
47
62
|
description: Develop & test your ansible playbooks with Vagrant
|
48
63
|
email:
|
49
64
|
- git@dsander.de
|
@@ -71,20 +86,20 @@ rdoc_options:
|
|
71
86
|
require_paths:
|
72
87
|
- lib
|
73
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
74
|
-
none: false
|
75
89
|
requirements:
|
76
90
|
- - ! '>='
|
77
91
|
- !ruby/object:Gem::Version
|
78
92
|
version: '0'
|
79
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
93
|
none: false
|
94
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
81
95
|
requirements:
|
82
96
|
- - ! '>='
|
83
97
|
- !ruby/object:Gem::Version
|
84
98
|
version: '0'
|
99
|
+
none: false
|
85
100
|
requirements: []
|
86
101
|
rubyforge_project: vagrant-ansible
|
87
|
-
rubygems_version: 1.8.
|
102
|
+
rubygems_version: 1.8.24
|
88
103
|
signing_key:
|
89
104
|
specification_version: 3
|
90
105
|
summary: Vagrant-ansible is a provisioning plugin for Vagrant, that makes developing
|