vagrant-hiera 0.3.0 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/example/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm use ruby-1.9.3@vagrant-hiera --create
@@ -9,6 +9,7 @@ module VagrantHiera
9
9
  @puppet_version = '3.0.0-0.1rc3puppetlabs1'
10
10
  @hiera_puppet_version = '1.0.0-0.1rc1-1-g3e68ff0'
11
11
  @hiera_version = '1.0.0-0.1rc3'
12
+ @apt_opts = "-y --force-yes -o Dpkg::Options::=\"--force-confdef\" -o Dpkg::Options::=\"--force-confold\""
12
13
  end
13
14
 
14
15
  def call(env)
@@ -32,7 +33,7 @@ module VagrantHiera
32
33
 
33
34
  def install_hiera
34
35
  @env[:ui].warn I18n.t('vagrant.plugins.hiera.middleware.setup.install_hiera')
35
- @env[:vm].channel.sudo("apt-get -y --force-yes install hiera=#{@hiera_version}")
36
+ @env[:vm].channel.sudo("apt-get #{@apt_opts} install hiera=#{@hiera_version}")
36
37
  end
37
38
 
38
39
  def apt_repo_set?
@@ -44,7 +45,7 @@ module VagrantHiera
44
45
  def add_apt_repo
45
46
  @env[:ui].warn I18n.t('vagrant.plugins.hiera.middleware.setup.add_apt_repo')
46
47
  @env[:vm].channel.sudo("echo '#{@puppet_repo}' >> /etc/apt/sources.list")
47
- @env[:vm].channel.sudo("apt-get -y --force-yes update")
48
+ @env[:vm].channel.sudo("apt-get update")
48
49
  end
49
50
 
50
51
  def puppet_installed?
@@ -55,8 +56,8 @@ module VagrantHiera
55
56
 
56
57
  def install_puppet
57
58
  @env[:ui].warn I18n.t('vagrant.plugins.hiera.middleware.setup.install_puppet')
58
- @env[:vm].channel.sudo("apt-get -y --force-yes install puppet-common=#{@puppet_version}")
59
- @env[:vm].channel.sudo("apt-get -y --force-yes install puppet=#{@puppet_version}")
59
+ @env[:vm].channel.sudo("apt-get #{@apt_opts} install puppet-common=#{@puppet_version}")
60
+ @env[:vm].channel.sudo("apt-get #{@apt_opts} install puppet=#{@puppet_version}")
60
61
  end
61
62
 
62
63
  def hiera_puppet_installed?
@@ -67,7 +68,7 @@ module VagrantHiera
67
68
 
68
69
  def install_hiera_puppet
69
70
  @env[:ui].warn I18n.t('vagrant.plugins.hiera.middleware.setup.install_hiera_puppet')
70
- @env[:vm].channel.sudo("apt-get -y --force-yes install hiera-puppet=#{@hiera_puppet_version}")
71
+ @env[:vm].channel.sudo("apt-get #{@apt_opts} install hiera-puppet=#{@hiera_puppet_version}")
71
72
  end
72
73
 
73
74
  def create_shared_folders
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
2
  module Hiera
3
- VERSION = "0.3.0"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hiera
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -39,6 +39,7 @@ files:
39
39
  - LICENSE
40
40
  - README.md
41
41
  - Rakefile
42
+ - example/.rvmrc
42
43
  - example/Gemfile
43
44
  - example/Vagrantfile
44
45
  - example/configuration/hiera.yaml