summaryrefslogtreecommitdiff
path: root/manifests/init.pp
blob: 5b4450787635ad2ee356faa58d523a06661468af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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;
  }
}