From 6684db07a7c67408693c4d907c708e826c9ef895 Mon Sep 17 00:00:00 2001
From: Marton Kiss <marton.kiss@gmail.com>
Date: Wed, 28 Jan 2015 19:39:44 +0100
Subject: [PATCH] Add standard puppet module files and .gitreview

This module has been split out from system-config, and additional
files are required to create a proper puppet module.

Some of the files are described in the spec:
http://specs.openstack.org/openstack-infra/infra-specs/specs/puppet-modules.html

Change-Id: Ie7932204cd7c7e4e26b369a34b5cc24e1b53c9e3
---
 .gitreview    |  4 ++++
 README.md     | 30 ++++++++++++++++++++++++++++++
 Rakefile      |  8 ++++++++
 metadata.json | 18 ++++++++++++++++++
 4 files changed, 60 insertions(+)
 create mode 100644 .gitreview
 create mode 100644 README.md
 create mode 100644 Rakefile
 create mode 100644 metadata.json

diff --git a/.gitreview b/.gitreview
new file mode 100644
index 0000000..432b847
--- /dev/null
+++ b/.gitreview
@@ -0,0 +1,4 @@
+[gerrit]
+host=review.openstack.org
+port=29418
+project=openstack-infra/puppet-redis.git
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..97146a1
--- /dev/null
+++ b/README.md
@@ -0,0 +1,30 @@
+# OpenStack Redis Module
+
+Marton Kiss <marton.kiss@gmail.com>
+Sebastian Marcet <smarcet@gmail.com>
+
+# Quick Start
+
+To install Redis server and configure it with defaults,
+include the following in your manifest file:
+
+    class { 'redis':
+    }
+
+# Configuration
+
+This module supports redis version 2.2.x, 2.4.x and 2.6.x on Ubuntu
+Operation Systems.
+
+## Redis server
+
+    class { 'redis':
+      redis_port        => '6379',
+      redis_bind        => '127.0.0.1',
+      redis_password    => 'mys3cr3tpassw0rd',
+      redis_max_memory  => '1gb',
+      version           => '2.2.12',
+    }
+
+NOTE: you must specify the package version number, because the configuration
+templates are different for major redis versions.
\ No newline at end of file
diff --git a/Rakefile b/Rakefile
new file mode 100644
index 0000000..7f22329
--- /dev/null
+++ b/Rakefile
@@ -0,0 +1,8 @@
+require 'rubygems'
+require 'puppetlabs_spec_helper/rake_tasks'
+require 'puppet-lint/tasks/puppet-lint'
+PuppetLint.configuration.fail_on_warnings = true
+PuppetLint.configuration.send('disable_80chars')
+PuppetLint.configuration.send('disable_autoloader_layout')
+PuppetLint.configuration.send('disable_class_inherits_from_params_class')
+PuppetLint.configuration.send('disable_class_parameter_defaults')
\ No newline at end of file
diff --git a/metadata.json b/metadata.json
new file mode 100644
index 0000000..0c01fc1
--- /dev/null
+++ b/metadata.json
@@ -0,0 +1,18 @@
+{
+  "name": "openstackci-redis",
+  "version": "0.0.1",
+  "author": "Openstack CI",
+  "summary": "Puppet module for redis",
+  "license": "Apache 2.0",
+  "source": "git://git.openstack.org/openstack-infra/puppet-redis.git",
+  "project_page": "http://ci.openstack.org/",
+  "issues_url": "https://storyboard.openstack.org/#!/project/766",
+  "operatingsystem_support": [
+    { "operatingsystem": "Ubuntu", "operatingsystemrelease": ["12.04"] }
+  ],
+  "requirements": [
+    { "name": "pe", "version_requirement": ">= 3.2.0 < 3.4.0" },
+    { "name": "puppet", "version_requirement": "3.x" }
+  ],
+  "dependencies": []
+}