X-Git-Url: https://git.njae.me.uk/?a=blobdiff_plain;f=modules%2Ftm351_modules%2Fmanifests%2Fbox%2Ftm351lts.pp;fp=modules%2Ftm351_modules%2Fmanifests%2Fbox%2Ftm351lts.pp;h=c83dce3928c13051700565bf13fcdf1b2b968190;hb=837d6afd9180feb839773123b90fb90656a61a18;hp=0000000000000000000000000000000000000000;hpb=ba8d4676663afcd83f27d04f7dd286cc69eccee5;p=tm351-notebooks.git diff --git a/modules/tm351_modules/manifests/box/tm351lts.pp b/modules/tm351_modules/manifests/box/tm351lts.pp new file mode 100644 index 0000000..c83dce3 --- /dev/null +++ b/modules/tm351_modules/manifests/box/tm351lts.pp @@ -0,0 +1,59 @@ +#The class defined here will simply start services running and not update any libraries +#If you want to run the build script, comment out this class and uncomment the classes below + +class tm351_modules::box::tm351lts { + + file { + '/etc/init.d/ipython3-notebook': + source => 'puppet:///modules/tm351_modules/etc/init.d/ipython3-notebook', + owner => root, + group => root, + mode => '0744'; + + '/etc/init/ipython3-notebook.conf': + source => 'puppet:///modules/tm351_modules/etc/init/ipython3-notebook.conf', + owner => root, + group => root, + mode => '0644'; + } + + service { + 'ipython3-notebook': + ensure => running, + enable => true, + provider => 'upstart'; + } + + File['/etc/init.d/ipython3-notebook'] -> Service[ipython3-notebook] + File['/etc/init/ipython3-notebook.conf'] -> Service[ipython3-notebook] + + service { + 'mongodb': ensure => running; + } + + file { + '/root/postgresql.setup': + source => 'puppet:///modules/tm351_modules/root/postgresql.setup', + owner => root, + group => root, + mode => '0744'; + } + + exec { + 'setup-postgresql': + cwd => '/root', + command => '/root/postgresql.setup', + creates => '/root/postgresql.done', + require => Service['postgresql']; + } + + service { + 'postgresql': + require=>File['/root/postgresql.setup'], + ensure => running, + enable => true; + } + + +} +