toft-puppet 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- toft (0.0.8)
4
+ toft-puppet (0.0.9)
5
5
  net-ssh
6
6
 
7
7
  GEM
@@ -58,5 +58,5 @@ DEPENDENCIES
58
58
  fpm
59
59
  rake
60
60
  rspec
61
- toft!
61
+ toft-puppet!
62
62
  vagrant (>= 0.8.7)
@@ -38,3 +38,12 @@ Scenario: Check that service is running on centos box
38
38
  When I run puppet manifest "test_service.pp" on node "n1"
39
39
  Then Node "n1" should have service "named" running in the centos box
40
40
 
41
+ Scenario: Run puppet manifest overriding conf settings
42
+ Given I have a clean running node n1
43
+ And node "n1" has the configuration settings:
44
+ |key|value|
45
+ |modulepath|/tmp/toft-puppet-tmp/modules|
46
+ When I run puppet manifest "test_module.pp" on node "n1"
47
+ Then Node "n1" should have file or directory "/tmp/puppet_test_module"
48
+
49
+
@@ -5,3 +5,11 @@ end
5
5
  When /^I run puppet manifest "([^"]*)" with config file "([^"]*)" on node "([^"]*)"$/ do |run_list, conf_file, node|
6
6
  find(node).run_puppet(run_list, :conf_file => conf_file)
7
7
  end
8
+
9
+ When /^node "([^"]*)" has the configuration settings:$/ do |node, table|
10
+ r = find(node)
11
+ r.run_ssh("echo '[user]' >> /etc/puppet/puppet.conf")
12
+ table.hashes.each do |hash|
13
+ r.run_ssh("echo '#{hash[:key]} = #{hash[:value]}' >> /etc/puppet/puppet.conf")
14
+ end
15
+ end
data/lib/toft/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Toft
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: toft-puppet
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Francisco Trindade
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-02-07 00:00:00 +11:00
18
+ date: 2012-02-08 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency