summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
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;
+ }
+}