summaryrefslogtreecommitdiffstats
path: root/test/data/providers/cron
diff options
context:
space:
mode:
authorluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-17 02:50:48 +0000
committerluke <luke@980ebf18-57e1-0310-9a29-db15c13687c0>2007-03-17 02:50:48 +0000
commit86c63ce2d9e93786cb27f9056b90f6887cbc8826 (patch)
tree2457fcfa3098bc1f6da35a6dff7ce1fcc2f52c90 /test/data/providers/cron
parentba23a5ac276e59fdda8186750c6d0fd2cfecdeac (diff)
downloadpuppet-86c63ce2d9e93786cb27f9056b90f6887cbc8826.tar.gz
puppet-86c63ce2d9e93786cb27f9056b90f6887cbc8826.tar.xz
puppet-86c63ce2d9e93786cb27f9056b90f6887cbc8826.zip
Fixing cron support (I hope). It now uses providers, and seems to work, at least on my os x box.
git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2284 980ebf18-57e1-0310-9a29-db15c13687c0
Diffstat (limited to 'test/data/providers/cron')
-rw-r--r--test/data/providers/cron/crontab.allthree17
-rw-r--r--test/data/providers/cron/crontab.envNcomment12
-rw-r--r--test/data/providers/cron/crontab.envNname11
-rw-r--r--test/data/providers/cron/crontab.multirecords12
-rw-r--r--test/data/providers/cron/examples/freebsd2
-rw-r--r--test/data/providers/cron/examples/one14
6 files changed, 68 insertions, 0 deletions
diff --git a/test/data/providers/cron/crontab.allthree b/test/data/providers/cron/crontab.allthree
new file mode 100644
index 000000000..dd2a40466
--- /dev/null
+++ b/test/data/providers/cron/crontab.allthree
@@ -0,0 +1,17 @@
+---
+- |
+ # comment 1
+ # Puppet Name: name2
+ env3=val
+ * * * * * command4
+ # comment 5
+
+- - :record_type: :comment
+ :line: "# comment 1"
+ - :command: command4
+ :environment:
+ - env3=val
+ :name: name2
+ :record_type: :crontab
+ - :record_type: :comment
+ :line: "# comment 5"
diff --git a/test/data/providers/cron/crontab.envNcomment b/test/data/providers/cron/crontab.envNcomment
new file mode 100644
index 000000000..63effe076
--- /dev/null
+++ b/test/data/providers/cron/crontab.envNcomment
@@ -0,0 +1,12 @@
+---
+- |
+ # comment 9
+ env10=val
+ * * * * * command11
+
+- - :record_type: :comment
+ :line: "# comment 9"
+ - :record_type: :environment
+ :line: env10=val
+ - :command: command11
+ :record_type: :crontab
diff --git a/test/data/providers/cron/crontab.envNname b/test/data/providers/cron/crontab.envNname
new file mode 100644
index 000000000..cc058248e
--- /dev/null
+++ b/test/data/providers/cron/crontab.envNname
@@ -0,0 +1,11 @@
+---
+- |
+ env6=val
+ # Puppet Name: name7
+ * * * * * command8
+
+- - :record_type: :environment
+ :line: env6=val
+ - :command: command8
+ :record_type: :crontab
+ :name: name7
diff --git a/test/data/providers/cron/crontab.multirecords b/test/data/providers/cron/crontab.multirecords
new file mode 100644
index 000000000..63effe076
--- /dev/null
+++ b/test/data/providers/cron/crontab.multirecords
@@ -0,0 +1,12 @@
+---
+- |
+ # comment 9
+ env10=val
+ * * * * * command11
+
+- - :record_type: :comment
+ :line: "# comment 9"
+ - :record_type: :environment
+ :line: env10=val
+ - :command: command11
+ :record_type: :crontab
diff --git a/test/data/providers/cron/examples/freebsd b/test/data/providers/cron/examples/freebsd
new file mode 100644
index 000000000..fba1e310b
--- /dev/null
+++ b/test/data/providers/cron/examples/freebsd
@@ -0,0 +1,2 @@
+@daily /path/to/some/job
+@reboot /path/to/some/job
diff --git a/test/data/providers/cron/examples/one b/test/data/providers/cron/examples/one
new file mode 100644
index 000000000..9cddf97e7
--- /dev/null
+++ b/test/data/providers/cron/examples/one
@@ -0,0 +1,14 @@
+TZ=Europe/Paris
+#
+# Some comments
+# and more comments
+#
+SHELL=/bin/sh
+0 0 * * * /usr/local/bin/savelogs --period --postmovehook="/usr/local/apache/bin/apachectl graceful" --apacheconf=/www/conf/httpd.conf
+58 23 * * * /usr/bin/diff /var/log/slow-queries.log /backup/var/log/slow-queries.log
+59 23 * * * /usr/bin/diff /var/db/mysql/*.err /backup/var/db/mysql/*.err
+0 7 * * Mon cd /usr/local/install; find . -maxdepth 1 -type f -mtime -30 -exec ls -l {} \; | mail -E -s 'Recent vinstall kits' vinstall@domain.com
+#* * * * * /bin/ls|mail -s 'test !!' gg@domain.com
+47 4 * * 1 /usr/local/bin/wget 'ftp://ftp.perl.org/pub/CPAN/MIRRORED.BY' -O /home/installman/www/install.domain.com/inst/MIRRORED.BY
+25 */2 * * * /usr/local/bin/freshclam --quiet
+#* * * * * /root/top.sh