Add .gitreview and module boilerplate

Also update the puppet code to pass linting standards

Change-Id: I3c7b626110ea14bccf3c973a9b432c68de9b7d81
This commit is contained in:
Spencer Krum 2015-07-28 02:01:39 -07:00
parent 412dc57766
commit 8433537ecf
5 changed files with 57 additions and 2 deletions

4
.gitreview Normal file
View File

@ -0,0 +1,4 @@
[gerrit]
host=review.openstack.org
port=29418
project=openstack-infra/puppet-pgsql_backup.git

30
Gemfile Normal file
View File

@ -0,0 +1,30 @@
source 'https://rubygems.org'
group :development, :test do
gem 'puppetlabs_spec_helper', :require => false
gem 'metadata-json-lint'
# This is nice and all, but let's not worry about it until we've actually
# got puppet 4.x sorted
# gem 'puppet-lint-param-docs'
gem 'puppet-lint-absolute_classname-check'
gem 'puppet-lint-absolute_template_path'
gem 'puppet-lint-trailing_newline-check'
# Puppet 4.x related lint checks
gem 'puppet-lint-unquoted_string-check'
gem 'puppet-lint-empty_string-check'
gem 'puppet-lint-leading_zero-check'
gem 'puppet-lint-variable_contains_upcase'
gem 'puppet-lint-spaceship_operator_without_tag-check'
gem 'puppet-lint-undef_in_function-check'
if puppetversion = ENV['PUPPET_GEM_VERSION']
gem 'puppet', puppetversion, :require => false
else
gem 'puppet', '~> 3.0', :require => false
end
end
# vim:ft=ruby

8
Rakefile Normal file
View File

@ -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')

View File

@ -52,7 +52,7 @@ define pgsql_backup::backup (
],
}
include logrotate
include ::logrotate
logrotate::file { "${name}-rotate":
log => "${dest_dir}/${name}.sql.gz",
options => [
@ -62,4 +62,5 @@ define pgsql_backup::backup (
],
require => Cron["${name}-backup"],
}
}
}

12
metadata.json Normal file
View File

@ -0,0 +1,12 @@
{
"name": "openstackinfra-pgsql_backup",
"version": "0.0.1",
"author": "OpenStack CI",
"summary": "Puppet module for postgres backups",
"license": "Apache 2.0",
"source": "git://git.openstack.org/openstack-infra/puppet-accessbot.git",
"project_page": "http://docs.openstack.org/infra/system-config/",
"issues_url": "https://storyboard.openstack.org/#!/project/748",
"dependencies": [
]
}