summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authordrebs <drebs@sarava.org>2012-06-19 10:21:24 -0300
committerdrebs <drebs@sarava.org>2012-06-19 10:21:24 -0300
commitfbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07 (patch)
treefef9fc7d7d7859489b97ad2846bd83a74aebb61e /manifests
downloadpuppet-motion-fbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07.tar.gz
puppet-motion-fbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07.tar.bz2
initial commitHEADmaster
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp21
1 files changed, 21 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
new file mode 100644
index 0000000..5b44507
--- /dev/null
+++ b/manifests/init.pp
@@ -0,0 +1,21 @@
+class motion {
+ package { 'motion':
+ ensure => installed,
+ }
+
+ service { 'motion':
+ ensure => 'running',
+ enable => true,
+ }
+
+ file{'/etc/motion/motion.conf':
+ source => [ "puppet:///modules/site-motion/${fqdn}/motion.conf",
+ "puppet:///modules/site-motion/motion.conf",
+ "puppet:///modules/motion/motion.conf" ],
+ require => Package['motion'],
+ notify => Service['motion'],
+ owner => root,
+ group => motion,
+ mode => 0640;
+ }
+}