Permalink
Browse files

Added feature for fileserver configuration

  • Loading branch information...
1 parent c3ac0f4 commit 23de1039de401832a7654a5676bd16f5c88c020f @frankmt committed Feb 2, 2012
View
@@ -17,3 +17,8 @@ Scenario: Run puppet manifest with modules
Given I have a clean running node n1
When I run puppet manifest "test_module.pp" with config file "puppet_modules.conf" on node "n1"
Then Node "n1" should have file or directory "/tmp/puppet_test_module"
+
+Scenario: Run puppet manifest with static files being served by fileserver
+ Given I have a clean running node n1
+ When I run puppet manifest "test_fileserver.pp" with config file "puppet_fileserver.conf" on node "n1"
+ Then Node "n1" should have file or directory "/tmp/puppet_test_fileserver"
@@ -0,0 +1,3 @@
+[conf]
+ path /tmp/toft-puppet-tmp/manifests/fileserver/conf
+ allow *
@@ -0,0 +1,8 @@
+[main]
+ fileserverconfig = /tmp/toft-puppet-tmp/conf/fileserver.conf
+
+ logdir = /var/log/puppet
+ vardir = /var/lib/puppet
+ ssldir = /var/lib/puppet/ssl
+ rundir = /var/run/puppet
+ report = true
@@ -0,0 +1 @@
+This is a test for the fileserver config
@@ -0,0 +1,14 @@
+class { 'test': }
+
+class test {
+ file { "test_fileserver":
+ path => "/tmp/puppet_test_fileserver",
+ owner => "root",
+ group => "root",
+ mode => 0440,
+ source => "puppet:///conf/test_fileserver",
+ }
+}
+
+
+

0 comments on commit 23de103

Please sign in to comment.