491a7fb503100b19583e364dfac60891ff759e6c
[inetstation.git] / modules / system / manifests / init.pp
1 class system {
2
3         exec { 'add-architecture-i386':
4                 command => '/usr/bin/dpkg --add-architecture i386',
5                 unless => '/bin/fgrep -q i386 /var/lib/dpkg/arch',
6                 notify => Exec['aptget-update'],
7         }
8
9         exec { 'aptget-update':
10                 command => '/usr/bin/apt-get update',
11                 refreshonly => true,
12         }
13
14         $packages = [
15                 'sudo',
16                 'lsof',
17                 'vim',
18                 'screen',
19                 'rsync',
20                 'tcpdump',
21                 'pv',
22                 'openssh-server',
23                 'locales-all',
24         ]
25   
26         package { $packages:
27                 ensure => installed,
28         }
29
30
31         package { 'chrony':
32                 ensure => installed,
33         }
34
35         service { 'chrony':
36                 ensure => running,
37                 enable => true,
38                 hasstatus  => false,
39                 hasrestart => true,
40                 require => Package['chrony'],
41         }
42
43         package { 'network-manager':
44                 ensure => installed,
45         }
46
47         file { '/etc/NetworkManager/system-connections/ffm.freifunk.net':
48                 source => 'puppet:///modules/system/etc/NetworkManager/system-connections/ffm.freifunk.net',
49                 mode => 'a=,u=rw',
50                 require => Package['network-manager'],
51         }
52
53         file { '/etc/NetworkManager/system-connections/wired':
54                 source => 'puppet:///modules/system/etc/NetworkManager/system-connections/wired',
55                 mode => 'a=,u=rw',
56                 require => Package['network-manager'],
57         }
58
59         package { 'wicd*':
60                 ensure => absent,
61                 require => Package['network-manager'],
62         }
63
64 }