kitchen-ansible 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Kitchen
2
2
  module Ansible
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -51,7 +51,8 @@ module Kitchen
51
51
  default_config :chef_bootstrap_url, "https://www.getchef.com/chef/install.sh"
52
52
 
53
53
  default_config :playbook do |provisioner|
54
- provisioner.calculate_path('site.yml', :file)
54
+ provisioner.calculate_path('default.yml', :file) or
55
+ raise "No playbook found or specified! Please either set a playbook in your .kitchen.yml config, or create a default wrapper playbook for your role in test/integration/playbooks/default.yml or test/integration/default.yml"
55
56
  end
56
57
 
57
58
  default_config :roles_path do |provisioner|
@@ -285,6 +286,7 @@ module Kitchen
285
286
  "-i #{File.join(config[:root_path], 'hosts')}",
286
287
  "-M #{File.join(config[:root_path], 'modules')}",
287
288
  ansible_verbose_flag,
289
+ ansible_check_flag,
288
290
  extra_vars,
289
291
  "#{File.join(config[:root_path], File.basename(config[:playbook]))}",
290
292
  ].join(" ")
@@ -359,6 +361,10 @@ module Kitchen
359
361
  config[:ansible_verbose] ? '-' << ('v' * verbosity_level(config[:ansible_verbosity])) : nil
360
362
  end
361
363
 
364
+ def ansible_check_flag
365
+ config[:ansible_check] ? '--check' : nil
366
+ end
367
+
362
368
  def ansible_platform
363
369
  config[:ansible_platform].to_s.downcase
364
370
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-ansible
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-03 00:00:00.000000000 Z
12
+ date: 2014-12-10 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! '== DESCRIPTION:
15
15