vagrant-guest_ansible 0.0.2.dev → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 97d04d81473888eaace0a13b7fe2f2295b76ce14
4
+ data.tar.gz: 71b1c73e97f88b1414fdf5150fa2edeab7518343
5
+ SHA512:
6
+ metadata.gz: 997d489f5b7812a41cf833fe2052fd78a3a81f15e3385828be826a324a5984c2f8716d5b97a9788a47c26bd9f49721c11253df89464fed3201f825b525d05e8a
7
+ data.tar.gz: 26e6457bd28072b218f762dbbf3f9b6ab4f9bbfcc0a64cf200761ff44c5397e31f99d6e1f78c17b1be766b45fc2bcc837d090a58508a2de27cf23baa2fe6529a
data/CHANGELOG.md ADDED
@@ -0,0 +1,6 @@
1
+ ## 0.0.3
2
+
3
+ BUG FIXES:
4
+
5
+ - Make sure GCC is installed on CentOS guests
6
+ - Fix extra-vars serialization
@@ -2,7 +2,7 @@
2
2
 
3
3
  ANSIBLE_PLAYBOOK=$1
4
4
  ANSIBLE_HOSTS=$2
5
- ANSIBLE_EXTRA_VARS=$3
5
+ ANSIBLE_EXTRA_VARS="$3"
6
6
  TEMP_HOSTS="/tmp/ansible_hosts"
7
7
 
8
8
  if [ ! -f /vagrant/$ANSIBLE_PLAYBOOK ]; then
@@ -18,7 +18,7 @@ fi
18
18
  if ! command -v ansible >/dev/null; then
19
19
  echo "Installing Ansible dependencies and Git."
20
20
  if command -v yum >/dev/null; then
21
- sudo yum install -y git python python-devel
21
+ sudo yum install -y gcc git python python-devel
22
22
  elif command -v apt-get >/dev/null; then
23
23
  sudo apt-get update -qq
24
24
  #sudo apt-get install -y -qq git python-yaml python-paramiko python-jinja2
@@ -39,7 +39,7 @@ if ! command -v ansible >/dev/null; then
39
39
  fi
40
40
 
41
41
  if [ ! -z "$ANSIBLE_EXTRA_VARS" -a "$ANSIBLE_EXTRA_VARS" != " " ]; then
42
- ANSIBLE_EXTRA_VARS=" --extra-vars \"$ANSIBLE_EXTRA_VARS\""
42
+ ANSIBLE_EXTRA_VARS=" --extra-vars $ANSIBLE_EXTRA_VARS"
43
43
  fi
44
44
 
45
45
  # stream output
@@ -21,4 +21,4 @@ DESC
21
21
  end
22
22
 
23
23
  end
24
- end
24
+ end
@@ -1,5 +1,3 @@
1
-
2
-
3
1
  module VagrantPlugins
4
2
  module GuestAnsible
5
3
  class Provisioner < Vagrant.plugin("2", :provisioner)
@@ -15,9 +13,9 @@ module VagrantPlugins
15
13
  File.basename(self.setup_inventory_file),
16
14
  format_extra_vars(config.extra_vars)
17
15
  ].join(' ')
18
-
16
+
19
17
  command = "chmod +x #{config.upload_path} && #{config.upload_path} #{args}"
20
-
18
+
21
19
  with_script_file do |path|
22
20
 
23
21
  # Upload the script to the machine
@@ -31,7 +29,7 @@ module VagrantPlugins
31
29
 
32
30
  @machine.ui.info(I18n.t("vagrant.provisioners.shell.running",
33
31
  script: path.to_s))
34
-
32
+
35
33
  # Execute it with sudo
36
34
  comm.execute(command, sudo: config.sudo) do |type, data|
37
35
  if [:stderr, :stdout].include?(type)
@@ -58,7 +56,7 @@ module VagrantPlugins
58
56
  if extra_vars.kind_of?(String)
59
57
  extra_vars.strip
60
58
  elsif extra_vars.kind_of?(Hash)
61
- extra_vars.map { |k,v| "#{k}=#{v}" }.join(" ")
59
+ "\"#{extra_vars.to_json.gsub('"', '\"')}\""
62
60
  end
63
61
  end
64
62
 
@@ -114,7 +112,7 @@ module VagrantPlugins
114
112
  return config.inventory_path if config.inventory_path
115
113
 
116
114
  ssh = @machine.ssh_info
117
-
115
+
118
116
  generated_inventory_file =
119
117
  @machine.env.root_path.join("vagrant_ansible_inventory_#{machine.name}")
120
118
 
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module GuestAnsible
3
- VERSION = "0.0.2.dev"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,46 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-guest_ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2.dev
5
- prerelease: 6
4
+ version: 0.0.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Roberto Quintanilla
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-12-12 00:00:00.000000000 Z
11
+ date: 2015-04-30 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: bundler
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
19
  version: '1.5'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
26
  version: '1.5'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - ">="
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - ">="
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  description: Ansible provisioner intended to run in the guest machine.
@@ -50,7 +45,8 @@ executables: []
50
45
  extensions: []
51
46
  extra_rdoc_files: []
52
47
  files:
53
- - .gitignore
48
+ - ".gitignore"
49
+ - CHANGELOG.md
54
50
  - Gemfile
55
51
  - LICENSE.txt
56
52
  - README.md
@@ -65,26 +61,25 @@ files:
65
61
  homepage: https://github.com/vovimayhem/vagrant-guest_ansible
66
62
  licenses:
67
63
  - MIT
64
+ metadata: {}
68
65
  post_install_message:
69
66
  rdoc_options: []
70
67
  require_paths:
71
68
  - lib
72
69
  required_ruby_version: !ruby/object:Gem::Requirement
73
- none: false
74
70
  requirements:
75
- - - ! '>='
71
+ - - ">="
76
72
  - !ruby/object:Gem::Version
77
73
  version: '0'
78
74
  required_rubygems_version: !ruby/object:Gem::Requirement
79
- none: false
80
75
  requirements:
81
- - - ! '>'
76
+ - - ">="
82
77
  - !ruby/object:Gem::Version
83
- version: 1.3.1
78
+ version: '0'
84
79
  requirements: []
85
80
  rubyforge_project:
86
- rubygems_version: 1.8.23
81
+ rubygems_version: 2.4.5
87
82
  signing_key:
88
- specification_version: 3
83
+ specification_version: 4
89
84
  summary: Ansible provisioner for guest machine.
90
85
  test_files: []