toft-puppet 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/features/puppet.feature +8 -8
- data/lib/toft/puppet/puppet_runner.rb +1 -1
- data/lib/toft/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/features/puppet.feature
CHANGED
@@ -2,40 +2,40 @@ Feature: Puppet support
|
|
2
2
|
|
3
3
|
Scenario: Run Puppet manifest on nodes
|
4
4
|
Given I have a clean running node n1
|
5
|
-
When I run puppet manifest "test.pp" on node "n1"
|
5
|
+
When I run puppet manifest "manifests/test.pp" on node "n1"
|
6
6
|
Then Node "n1" should have file or directory "/tmp/puppet_test"
|
7
7
|
|
8
8
|
Scenario: Run puppet manifest with included nodes
|
9
9
|
Given I have a clean running node n1
|
10
10
|
And I change the internal hostname for "n1" to "correct.puppet.com"
|
11
|
-
And I run puppet manifest "site.pp" on node "n1"
|
11
|
+
And I run puppet manifest "manifests/site.pp" on node "n1"
|
12
12
|
Then Node "n1" should have file or directory "/tmp/puppet_test_correct"
|
13
13
|
And Node "n1" should have file or directory "/tmp/puppet_test_default"
|
14
14
|
And Node "n1" should have not file or directory "/tmp/puppet_test_incorrect"
|
15
15
|
|
16
16
|
Scenario: Run puppet manifest with modules
|
17
17
|
Given I have a clean running node n1
|
18
|
-
When I run puppet manifest "test_module.pp" with config file "puppet_modules.conf" on node "n1"
|
18
|
+
When I run puppet manifest "manifests/test_module.pp" with config file "puppet_modules.conf" on node "n1"
|
19
19
|
Then Node "n1" should have file or directory "/tmp/puppet_test_module"
|
20
20
|
|
21
21
|
Scenario: Run puppet manifest with static files being served by fileserver
|
22
22
|
Given I have a clean running node n1
|
23
|
-
When I run puppet manifest "test_fileserver.pp" with config file "puppet_fileserver.conf" on node "n1"
|
23
|
+
When I run puppet manifest "manifests/test_fileserver.pp" with config file "puppet_fileserver.conf" on node "n1"
|
24
24
|
Then Node "n1" should have file or directory "/tmp/puppet_test_fileserver"
|
25
25
|
|
26
26
|
Scenario: Run puppet manifest with template dir configuration
|
27
27
|
Given I have a clean running node n1
|
28
|
-
When I run puppet manifest "test_template.pp" with config file "puppet_template.conf" on node "n1"
|
28
|
+
When I run puppet manifest "manifests/test_template.pp" with config file "puppet_template.conf" on node "n1"
|
29
29
|
Then Node "n1" should have file or directory "/tmp/puppet_test_template"
|
30
30
|
|
31
31
|
Scenario: Check that package was installed on centos box
|
32
32
|
Given I have a clean running node n1
|
33
|
-
When I run puppet manifest "test_install.pp" on node "n1"
|
33
|
+
When I run puppet manifest "manifests/test_install.pp" on node "n1"
|
34
34
|
Then Node "n1" should have package "zip" installed in the centos box
|
35
35
|
|
36
36
|
Scenario: Check that service is running on centos box
|
37
37
|
Given I have a clean running node n1
|
38
|
-
When I run puppet manifest "test_service.pp" on node "n1"
|
38
|
+
When I run puppet manifest "manifests/test_service.pp" on node "n1"
|
39
39
|
Then Node "n1" should have service "named" running in the centos box
|
40
40
|
|
41
41
|
Scenario: Run puppet manifest overriding conf settings
|
@@ -43,7 +43,7 @@ Scenario: Run puppet manifest overriding conf settings
|
|
43
43
|
And node "n1" has the configuration settings:
|
44
44
|
|key|value|
|
45
45
|
|modulepath|/tmp/toft-puppet-tmp/modules|
|
46
|
-
When I run puppet manifest "test_module.pp" on node "n1"
|
46
|
+
When I run puppet manifest "manifests/test_module.pp" on node "n1"
|
47
47
|
Then Node "n1" should have file or directory "/tmp/puppet_test_module"
|
48
48
|
|
49
49
|
|
@@ -16,7 +16,7 @@ module Toft
|
|
16
16
|
def run(run_list, params = {})
|
17
17
|
copy_puppet_material
|
18
18
|
copy_conf_file(params[:conf_file]) if params[:conf_file]
|
19
|
-
@command_runner.call "puppet apply #{DEST_PUPPET_TMP}
|
19
|
+
@command_runner.call "puppet apply #{DEST_PUPPET_TMP}/#{run_list}"
|
20
20
|
end
|
21
21
|
|
22
22
|
private
|
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: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 11
|
10
|
+
version: 0.0.11
|
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-14 00:00:00 +11:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|