toft-puppet 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- toft-puppet (0.0.9)
4
+ toft-puppet (0.0.10)
5
5
  net-ssh
6
6
 
7
7
  GEM
@@ -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}/manifests/#{run_list}"
19
+ @command_runner.call "puppet apply #{DEST_PUPPET_TMP}/#{run_list}"
20
20
  end
21
21
 
22
22
  private
@@ -1,3 +1,3 @@
1
1
  module Toft
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
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: 11
4
+ hash: 9
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 10
10
- version: 0.0.10
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-08 00:00:00 +11:00
18
+ date: 2012-02-14 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency