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
diff --git a/modules/tm351_modules/manifests/box/tm351lts.pp b/modules/tm351_modules/manifests/box/tm351lts.pp
new file mode 100644 (file)
index 0000000..c83dce3
--- /dev/null
@@ -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;
+  }
+
+
+}
+