meeting.pp 601 Bytes
Newer Older
1
2
3
# Manage our meeting script

class tails::meeting (
intrigeri's avatar
Lint    
intrigeri committed
4
  Pattern[/\A[a-z_]+\z/] $user = 'tails_meeting_reminder',
5
6
) {
  $homedir = "/var/lib/${user}"
intrigeri's avatar
intrigeri committed
7
  $script_path = '/usr/local/bin/meeting.py'
8

9
  user { $user:
10
11
12
13
14
    ensure     => present,
    home       => $homedir,
    managehome => true,
    system     => true,
    require    => File['/usr/local/bin/meeting.py'],
15
16
  }

intrigeri's avatar
intrigeri committed
17
  file { $script_path:
18
19
20
    ensure => file,
    owner  => 'root',
    group  => 'root',
intrigeri's avatar
intrigeri committed
21
    mode   => '0755',
intrigeri's avatar
Lint    
intrigeri committed
22
    source => 'puppet:///modules/tails/meeting/meeting.py',
23
24
  }

25
26
  package { 'python3-requests': ensure => installed }

27
}