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 +2 -2
- data/features/puppet.feature +9 -0
- data/features/step_definitions/puppet.rb +8 -0
- data/lib/toft/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/features/puppet.feature
CHANGED
@@ -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
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:
|
4
|
+
hash: 11
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
18
|
+
date: 2012-02-08 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|