Experiments part 3
[inetstation.git] / modules / system / manifests / init.pp
1 class system {
2
3         $packages = [
4                 'sudo',
5                 'lsof',
6                 'vim',
7                 'screen',
8                 'rsync',
9                 'tcpdump',
10                 'pv',
11                 'openssh-server',
12                 'locales-all',
13         ]
14   
15         package { $packages:
16                 ensure => installed,
17         }
18
19
20         package { 'chrony':
21                 ensure => installed,
22         }
23
24         service { 'chrony':
25                 ensure => running,
26                 enable => true,
27                 hasstatus  => false,
28                 hasrestart => true,
29                 require => Package['chrony'],
30         }
31
32         package { 'networkmanager':
33                 ensure => installed,
34         }
35
36         file { '/etc/NetworkManager/system-connections/ffm.freifunk.net':
37                 source => 'puppet:///modules/system/etc/NetworkManager/system-connections/ffm.freifunk.net',
38                 mode => 'a=,u=rw',
39                 require => Package['networkmanager'],
40         }
41
42         file { '/etc/NetworkManager/system-connections/wired':
43                 source => 'puppet:///modules/system/etc/NetworkManager/system-connections/wired',
44                 mode => 'a=,u=rw',
45                 require => Package['networkmanager'],
46         }
47
48         package { 'wicd*':
49                 ensure => absent,
50                 require => Package['networkmanager'],
51         }
52
53 }