Had to do something drastic to rename file: git mv --force tm351LTS.pp tm351lts.pp
[tm351-notebooks.git] / modules / tm351_modules / manifests / box / tm351lts.pp
1 #The class defined here will simply start services running and not update any libraries
2 #If you want to run the build script, comment out this class and uncomment the classes below
3
4 class tm351_modules::box::tm351lts {
5
6 file {
7 '/etc/init.d/ipython3-notebook':
8 source => 'puppet:///modules/tm351_modules/etc/init.d/ipython3-notebook',
9 owner => root,
10 group => root,
11 mode => '0744';
12
13 '/etc/init/ipython3-notebook.conf':
14 source => 'puppet:///modules/tm351_modules/etc/init/ipython3-notebook.conf',
15 owner => root,
16 group => root,
17 mode => '0644';
18 }
19
20 service {
21 'ipython3-notebook':
22 ensure => running,
23 enable => true,
24 provider => 'upstart';
25 }
26
27 File['/etc/init.d/ipython3-notebook'] -> Service[ipython3-notebook]
28 File['/etc/init/ipython3-notebook.conf'] -> Service[ipython3-notebook]
29
30 service {
31 'mongodb': ensure => running;
32 }
33
34 file {
35 '/root/postgresql.setup':
36 source => 'puppet:///modules/tm351_modules/root/postgresql.setup',
37 owner => root,
38 group => root,
39 mode => '0744';
40 }
41
42 exec {
43 'setup-postgresql':
44 cwd => '/root',
45 command => '/root/postgresql.setup',
46 creates => '/root/postgresql.done',
47 require => Service['postgresql'];
48 }
49
50 service {
51 'postgresql':
52 require=>File['/root/postgresql.setup'],
53 ensure => running,
54 enable => true;
55 }
56
57
58 }
59