From fbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07 Mon Sep 17 00:00:00 2001 From: drebs Date: Tue, 19 Jun 2012 10:21:24 -0300 Subject: initial commit --- manifests/init.pp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 manifests/init.pp (limited to 'manifests') 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; + } +} -- cgit v1.2.3