b1a5a08dea8799e49da2a519e69609d5e5be2948
[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         include pam
31         include pam::mkhomedir
32
33         package { 'chrony':
34                 ensure => installed,
35         }
36
37         service { 'chrony':
38                 ensure => running,
39                 enable => true,
40                 hasstatus  => false,
41                 hasrestart => true,
42                 require => Package['chrony'],
43         }
44
45         package { 'network-manager':
46                 ensure => installed,
47         }
48
49         file { '/etc/NetworkManager/system-connections/ffm.freifunk.net':
50                 ensure => file,
51                 source => 'puppet:///modules/system/etc/NetworkManager/system-connections/ffm.freifunk.net',
52                 mode => 'a=,u=r',
53                 require => Package['network-manager'],
54         }
55
56         file { '/etc/NetworkManager/system-connections/wired':
57                 ensure => file,
58                 source => 'puppet:///modules/system/etc/NetworkManager/system-connections/wired',
59                 mode => 'a=,u=r',
60                 require => Package['network-manager'],
61         }
62
63         package { 'wicd*':
64                 ensure => absent,
65                 require => Package['network-manager'],
66         }
67
68 }