diff options
author | drebs <drebs@sarava.org> | 2012-06-19 10:21:24 -0300 |
---|---|---|
committer | drebs <drebs@sarava.org> | 2012-06-19 10:21:24 -0300 |
commit | fbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07 (patch) | |
tree | fef9fc7d7d7859489b97ad2846bd83a74aebb61e /manifests | |
download | puppet-motion-fbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07.tar.gz puppet-motion-fbfea5c56acaf0f7a4ccf0ff491ebbbcba9e6c07.tar.bz2 |
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/init.pp | 21 |
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; + } +} |