Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added some basic system setup stuff

  • Loading branch information...
commit 75b83507532fd714f13b78da0cafcc6057daf756 1 parent 2c0d629
@edavis10 authored
View
21 desktop_manifest.rb
@@ -0,0 +1,21 @@
+require 'rubygems'
+require 'shadow_puppet'
+
+Dir['lib/**.rb'].each {|lib| require lib}
+
+class DesktopManifest < ShadowPuppet::Manifest
+ include CronPuppet
+ recipe :cron_packages
+
+ include NtpPuppet
+ recipe :ntp
+
+ include EmacsPuppet
+ recipe :emacs
+
+ include SystemToolsPuppet
+ recipe :system_tools
+end
+
+m = DesktopManifest.new
+m.execute
View
7 lib/cron_puppet.rb
@@ -0,0 +1,7 @@
+# Taken from Moonshine
+module CronPuppet
+ def cron_packages
+ service "cron", :require => package("cron"), :ensure => :running
+ package "cron", :ensure => :installed
+ end
+end
View
5 lib/emacs_puppet.rb
@@ -0,0 +1,5 @@
+module EmacsPuppet
+ def emacs
+ package "emacs-snapshot", :ensure => :installed
+ end
+end
View
8 lib/ntp_puppet.rb
@@ -0,0 +1,8 @@
+# Taken from Moonshine
+module NtpPuppet
+ # Install ntp and enables the ntp service.
+ def ntp
+ package 'ntp', :ensure => :latest
+ service 'ntp', :ensure => :running, :require => package('ntp'), :pattern => 'ntpd'
+ end
+end
View
10 lib/system_tools_puppet.rb
@@ -0,0 +1,10 @@
+module SystemToolsPuppet
+ def system_tools
+ [
+ 'htop',
+ 'less',
+ ].each do |pkg|
+ package pkg, :ensure => :installed
+ end
+ end
+end
Please sign in to comment.
Something went wrong with that request. Please try again.