summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaz <me@saz.sh>2011-11-20 21:53:45 +0100
committerSaz <me@saz.sh>2011-11-20 21:53:45 +0100
commit51412e961d41186844ec1af0cbe0d9d5bd04fb73 (patch)
treedb02179fcc75d42626c67c76de45ae65f7b72fd0
parente7f96a70a85e6bff9d1c992049288649941429d0 (diff)
changes for release on forge.puppetlabs.com
-rw-r--r--.gitignore2
-rw-r--r--Modulefile8
-rw-r--r--README.md30
-rw-r--r--metadata.json12
-rw-r--r--spec/spec.opts6
-rw-r--r--spec/spec_helper.rb18
-rw-r--r--tests/init.pp1
7 files changed, 66 insertions, 11 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6ee20c2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+pkg/
+*.swp
diff --git a/Modulefile b/Modulefile
new file mode 100644
index 0000000..673c642
--- /dev/null
+++ b/Modulefile
@@ -0,0 +1,8 @@
+name 'saz-rsyslog'
+version '1.0.0'
+source 'UNKNOWN'
+author 'saz'
+license 'Apache License, Version 2.0'
+summary 'UNKNOWN'
+description 'Manage rsyslog client and server via Puppet'
+project_page 'https://github.com/saz/puppet-rsyslog'
diff --git a/README.md b/README.md
index 6bc2d28..ec4341e 100644
--- a/README.md
+++ b/README.md
@@ -1,23 +1,31 @@
# puppet-rsyslog
-puppet-rsyslog is a module for puppet to manage rsyslog client and server
+
+Manage rsyslog client and server via Puppet
## How to use
-```include rsyslog::client```
-or
+### Client
+```
+ include rsyslog::client
+```
+
+#### Using a different server
+```
+ $rsyslog_server = 'another-server'
+ include rsyslog::client
+```
+### Server
```
- $rsyslog_server_dir = "/path/to/target/directory/"
include rsyslog::server
```
Both can be installed at the same time.
-Default server name is 'log'.
-$rsyslog_server_dir defaults to '/srv/log/'
+#### Other variables
+* $rsyslog_server_dir = '/srv/log/'
-### Setting a different server
-```
- $rsyslog_server = "another.server.domain.tld"
- include rsyslog::client
-```
+### Other notes
+
+* rsyslog::client is logging through relp
+* rsyslog::server is running relp, udp and tcp
diff --git a/metadata.json b/metadata.json
new file mode 100644
index 0000000..8ce7797
--- /dev/null
+++ b/metadata.json
@@ -0,0 +1,12 @@
+/*
++-----------------------------------------------------------------------+
+| |
+| ==> DO NOT EDIT THIS FILE! <== |
+| |
+| You should edit the `Modulefile` and run `puppet-module build` |
+| to generate the `metadata.json` file for your releases. |
+| |
++-----------------------------------------------------------------------+
+*/
+
+{}
diff --git a/spec/spec.opts b/spec/spec.opts
new file mode 100644
index 0000000..91cd642
--- /dev/null
+++ b/spec/spec.opts
@@ -0,0 +1,6 @@
+--format
+s
+--colour
+--loadby
+mtime
+--backtrace
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
new file mode 100644
index 0000000..a4aeeae
--- /dev/null
+++ b/spec/spec_helper.rb
@@ -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
diff --git a/tests/init.pp b/tests/init.pp
new file mode 100644
index 0000000..7fc50c8
--- /dev/null
+++ b/tests/init.pp
@@ -0,0 +1 @@
+include rsyslog