voxpupuli / puppet-drbd Goto Github PK
View Code? Open in Web Editor NEWBasic module for configuring active-passive drbd resources
Home Page: https://forge.puppet.com/puppet/drbd
License: Apache License 2.0
Basic module for configuring active-passive drbd resources
Home Page: https://forge.puppet.com/puppet/drbd
License: Apache License 2.0
The README states that this is tested on some Ubuntu version (but really old ones). The metadata.json does not have any entry for Ubuntu support. Which one is right and are there any plans to support Ubuntu 20.04?
I can see that this module have a 0.2 release, but the last at puppetforge is a 4 year old 0.1 - shouldn't this module be upgraded on puppetforge?
I created a config from the example - and I can't find anything wrong, and yet the lvm is created an drbd service is started - but status is diskless/diskless.. it seems it's never put "up".
any hints to try and debug are welcome.. I'm still trying' to figure out, what the reason is for this.
I'm using drbd-8.4, on centos 6.
logical_volume { 'drbd':
ensure => present,
# grab from this existing volume
volume_group => "vg_$hostname",
size => '100G',
}
class { 'drbd': }
#needs firewall opening
firewall { "001 allow drbd": proto => "tcp", port => 7788, action => "accept", source => $fqdn ? { 'jaina.example.dk' => '192.168.99.2', 'jacen.example.dk' => '192.168.99.1', default => '127.0.0.1' } }
drbd::resource { 'drbd':
host1 => 'jaina.example.dk',
host2 => 'jacen.example.dk',
ip1 => '192.168.99.1',
ip2 => '192.168.99.2',
disk => "/dev/mapper/vg_$hostname-drbd",
port => '7788',
device => '/dev/drbd0',
manage => true,
verify_alg => 'sha1',
ha_primary => $fqdn ? { 'jaina.example.dk' => true, default => false},
initial_setup => $fqdn ? { 'jaina.example.dk' => true, default => false},
require => Logical_volume['drbd']
}
}
Package name isn't always drbd8-utils
http://elrepo.org/tiki/drbd84-utils
On the dependency list is concat listed. But the LVM Module is an dependency too.
In the current documentation the value "initial_setup" is set to true. But there is no information, that this value should set be to "false" after the first initialize.
Every times the DRBD volume will be formated again with "initial_setup = true"
We should consider writing the drbd resources as types + provider
refreshonly
can fail when there's some kind of hiccup in puppet. we must not rely on it (thanks @ffrank for writing this). Especially not for something as critical as drbd.
this module once listed debian 7 in the metadata.json. We removed it because it's EOL. We need to check if recent debian versions work and add them back.
Hi,
I'm currently using puppet with concat module version v4.1.1 (github master) and I'm getting this notice in puppet master:
Warning: Module 'puppetlabs-concat' (v4.1.1) fails to meet some dependencies:
'puppet-drbd' (v0.5.1-rc0) requires 'puppetlabs-concat' (>= 1.2.5 < 3.0.0)
If I use concat version 2.2.1 (latest version < 3.0.0) I get a lot of dependencies errors from other modules. I think you could increase required concat module version to a more recent one. I suppose you have tests to check it's ok, but on my side, no problem with concat v4.1.1.
Cheers !
Kyoshiro
Use this module with configuration from example on a recent Debian 10 (Buster).
Running the module will fail, because Debian 10 (Buster) does not have any package named drbd8-utils
. Most other recent releases do not have such a package anymore either. Ubuntu used a transitional package in it's 18.04 LTS.
https://apps.fedoraproject.org/packages/s/drbd
https://packages.ubuntu.com/search?suite=all&searchon=names&keywords=drbd
The package name can be configured, but it would be much more user friendly, if the default package name would match the default of most distros.
Error: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install drbd8-utils' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package drbd8-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
drbd-utils
E: Package 'drbd8-utils' has no installation candidate
Error: /Stage[main]/Drbd/Package[drbd]/ensure: change from 'purged' to 'present' failed: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install drbd8-utils' returned 100: Reading package lists...
Building dependency tree...
Reading state information...
Package drbd8-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
drbd-utils
E: Package 'drbd8-utils' has no installation candidate
Is there any ETA for a release of version 5.3? The module has been set to 0.5.3-rc0
for almost 1.5 years. @smortex
Are there any plans to test this on puppet 7 and change the metadata.json to support puppet 7?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.