From: Tony Hirst Date: Thu, 22 Jan 2015 15:13:57 +0000 (+0000) Subject: Had to do something drastic to rename file: git mv --force tm351LTS.pp tm351lts.pp X-Git-Url: https://git.njae.me.uk/?p=tm351-notebooks.git;a=commitdiff_plain;h=837d6afd9180feb839773123b90fb90656a61a18 Had to do something drastic to rename file: git mv --force tm351LTS.pp tm351lts.pp --- diff --git a/modules/tm351_modules/manifests/box/tm351LTS.pp b/modules/tm351_modules/manifests/box/tm351LTS.pp deleted file mode 100644 index c83dce3..0000000 --- a/modules/tm351_modules/manifests/box/tm351LTS.pp +++ /dev/null @@ -1,59 +0,0 @@ -#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; - } - - -} - 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; + } + + +} +