Git Product home page Git Product logo

puppet-barman's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

puppet-barman's Issues

Puppet forge module

Howdy! If you are able can you release a new version of your module with the recent updates to the Puppet Forge? Thanks!

puppet parser validate fails on barman::settings

Hello,
in class barman::settings there is a duplicate declaration, which makes puppet parser validate fail:

class barman::settings (
...
  $pre_backup_script       = false,
  $post_backup_script      = false,
...
  $basebackup_retry_sleep  = false,
  $pre_backup_script       = false,   <==== !!
  $post_backup_script      = false    <==== !!

backup_directory is twice in template file

Hello,
for your information,

<%- if @backup_directory -%>
backup_directory = <%= @backup_directory %>
<%- end -%>

is written twice in server.conf.erb (lines 17,18 19 and lines 128 129 130)

I'm not sure i needed to do a pull request for that....

thanks

custom_lines deprecated, but no alternative

Currently the custom_lines parameter is marked as deprecated, but there's no alternative for configuring - for instance - streaming_archiver.
Would you accept a PR extending barman::server to support all current relevant settings?

Convert to puppet4 types

This is just a reminder issue to convert barman to use puppet4 types and get rid of a lot of type validation! 😉

customized home is not used for archive_command

Hi,

Thanks for your great job on this module.
I have an issue with the home parameter.

I use the module with :

  class { 'barman':
    autoconfigure       => true,
    home                => '/opt/barman',
    exported_ipaddress  => "${::networking['ip']}/32",
    manage_package_repo => false,
  }

And the archive_command is always with /var/lib/barman

Thanks.
Mélanie.

Regression: cannot configure multiple servers per host

I believe a1afc14 introduced a regression: before this commit, a single postgresql::server::pg_hba_rule was realized in barman::autoconfigure. Now two of them get realized inside barman::server, which itself can be instantiated multiple times. Since the pg_hba_rules get instantiated with the same titles (based on $::hostname), we hit a "duplicate declaration" error as soon as we have more than one declared for the same host.

Duplicate ssh_authorized_key[barman]

I've configured a backup server and now on a DB server I'm hitting following error:

A duplicate resource was found while collecting exported resources, with the type and title Ssh_authorized_key[barman]

backup server:

  class { 'postgresql::globals':
    manage_package_repo => true,
  }->
  class { 'barman': }

  @@host { $::fqdn:
    ensure       => 'present',
    name         => $::fqdn,
    host_aliases => $::hostname,
    ip           => pick($::ipaddress_eth0, $::ipaddress),
  }
  Host <<| |>>

DB server:

include barman::postgres

Am I missing something?

Allow configuring $retention_policy in barman::postgres

It would be nice to be able to configure $retention_policy from barman::postgres and then have that class pass it to barman::server. This looks like it would be a easy addition since barman::server already accepts the $retention_policy parameter. I don't mind submitting a pull request if that is ok.

postgresql_server_id is not used consistently

when setting postgresql_server_id through barman::postgres it's not used consistently, the exported resource will still be named $::hostname, and so barman will be expecting its wal to show up in /var/lib/barman/$hostname/incoming/ rather than in /var/lib/barman/$postgresql_server_id/incoming/

postgres::globals shouldnt be defined in barman

I am already defining postgresql::globals to configure my servers. barman shouldnt interfere with this

Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[Postgresql::Globals] is already declared

Server's $name should not be limited to lowercase

Hi,

I wonder why $name in server.pp is limited to lowercase characters (etc.).
I'm using Barman (w/o the Puppet module) with all-uppercase names since years, no issues whatsoever.
Moving to the Puppet module will force me to do a lot of renaming... :/

Nick

P.S.: the comment reads
"# check if 'description' has been correctly configured"
which is (pretty obviously) wrong.
P.P.S.: Same goes for the "validate_re($ensure," line.

On Solaris 11, postgres_key fact prints errors

On a Solaris 11 host configured by puppet, pluginsync will pull down the barman_key.rb fact and when it tries to process the postgres_key fact I get:

root@solaris11:~# facter -p postgres_key
Could not create directory '//.ssh'.
open //.ssh/id_rsa failed: No such file or directory.
root@solaris11:~#

This is due to Solaris's entry in passwd for postgres looking like this:

postgres:x:90:90:PostgreSQL Reserved UID:/:/usr/bin/pfksh

Since this module is only supported on Linux, perhaps a quick fix for this is to confine the facts to :kernel => 'Linux' ?

There is no way to pin barman package to a certain version.

Barman package gets updated whenever yum update or yum cron update is run.

In some circumstances it is beneficial to have an opportunity to lock the package to some version, say, the newest version has a bug or there are some breaking changes that need investigation.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.