modules_dir: nail empty directory files/empty/ into the repo
authorDavid Schmitt <david@schmitt.edv-bus.at>
Mon, 30 Jun 2008 11:47:30 +0000 (13:47 +0200)
committerDavid Schmitt <david@schmitt.edv-bus.at>
Mon, 30 Jun 2008 11:47:30 +0000 (13:47 +0200)
Since git ignores empty directories, I had to create a placeholder to
fool git. The placeholder is ignored in the define.

files/empty/.ignore [new file with mode: 0644]
manifests/defines/modules_dir.pp

diff --git a/files/empty/.ignore b/files/empty/.ignore
new file mode 100644 (file)
index 0000000..ce47061
--- /dev/null
@@ -0,0 +1 @@
+A placeholder to nail this directory into git
index 971b9fa..a59102f 100644 (file)
@@ -18,6 +18,8 @@ define modules_dir (
                        "/var/lib/puppet/modules/${name}":
                                source => [ "puppet:///${name}/modules_dir", "puppet:///common/empty"],
                                checksum => mtime,
+                               # ignore the placeholder
+                               ignore => '.ignore', 
                                recurse => true, purge => true, force => true,
                                mode => $mode, owner => $owner, group => $group;
                }