Permalink
Browse files

changes

  • Loading branch information...
Tom Barber
Tom Barber committed Mar 21, 2012
1 parent 0c201b3 commit 5bb1eb84309fb09bdcb072497b29ae5cceeb2bd8
Showing with 84 additions and 1 deletion.
  1. +23 −0 .project
  2. +10 −0 Modulefile
  3. +1 −1 manifests/init.pp
  4. +25 −0 metadata.json
  5. +6 −0 spec/spec.opts
  6. +18 −0 spec/spec_helper.rb
  7. +1 −0 tests/init.pp
View
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>timezone</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.cloudsmith.geppetto.pp.dsl.ui.modulefileBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.cloudsmith.geppetto.pp.dsl.ui.puppetNature</nature>
+ <nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
+ </natures>
+</projectDescription>
View
@@ -0,0 +1,10 @@
+name 'Analytical Labs-timezone'
+version '1.0'
+
+author 'Tom Barber'
+license ''
+project_page ''
+source ''
+summary ''
+description ''
+dependency 'Analytical Labs/ntp', '==1.0'
View
@@ -3,7 +3,7 @@
# requires ntp, but not included here as it makes key changes to the OS
# and should instead be included in some sort of default node class
# (common.pp) which is included on all nodes.
- include ntp
+ include ntp::server
$timezone_zone = extlookup('timezone_zone','Etc/UTC')
package { 'tzdata':
View
@@ -0,0 +1,25 @@
+{
+ "name": "Analytical Labs-timezone",
+ "author": "Tom Barber",
+ "description": "",
+ "license": "",
+ "project_page": "",
+ "source": "",
+ "summary": "",
+ "version": "1.0",
+ "checksums": {
+ "Modulefile": "69a3f615822ffc98e23c3162cfaad106",
+ "README": "d41d8cd98f00b204e9800998ecf8427e",
+ "manifests/init.pp": "5d6bd02329498361e8a6c43c977a202b",
+ "spec/spec.opts": "a600ded995d948e393fbe2320ba8e51c",
+ "spec/spec_helper.rb": "ca19ec4f451ebc7fdb035b52eae6e909",
+ "templates/clock.erb": "aef0f18a5247a92817d58055ef3b262d",
+ "tests/init.pp": "6bafc4062b1bafbdf8e36e81b55ee1c5"
+ },
+ "dependencies": [
+ {
+ "name": "Analytical Labs/ntp",
+ "versionRequirement": "\u003d\u003d1.0"
+ }
+ ]
+}
View
@@ -0,0 +1,6 @@
+--format
+s
+--colour
+--loadby
+mtime
+--backtrace
View
@@ -0,0 +1,18 @@
+require 'pathname'
+dir = Pathname.new(__FILE__).parent
+$LOAD_PATH.unshift(dir, dir + 'lib', dir + '../lib')
+
+require 'mocha'
+require 'puppet'
+gem 'rspec', '=1.2.9'
+require 'spec/autorun'
+
+Spec::Runner.configure do |config|
+ config.mock_with :mocha
+end
+
+# We need this because the RAL uses 'should' as a method. This
+# allows us the same behaviour but with a different method name.
+class Object
+ alias :must :should
+end
View
@@ -0,0 +1 @@
+include timezone

0 comments on commit 5bb1eb8

Please sign in to comment.