diff --git a/.gitreview b/.gitreview new file mode 100644 index 0000000..7886c67 --- /dev/null +++ b/.gitreview @@ -0,0 +1,4 @@ +[gerrit] +host=review.openstack.org +port=29418 +project=openstack-infra/puppet-pgsql_backup.git diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..96912da --- /dev/null +++ b/Gemfile @@ -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 diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..ff1f0d7 --- /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') diff --git a/manifests/backup.pp b/manifests/backup.pp index 0162023..0e4f8d8 100644 --- a/manifests/backup.pp +++ b/manifests/backup.pp @@ -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"], } -} \ No newline at end of file +} + diff --git a/metadata.json b/metadata.json new file mode 100644 index 0000000..e317442 --- /dev/null +++ b/metadata.json @@ -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": [ + ] +}