-
-
Notifications
You must be signed in to change notification settings - Fork 53
Startup and initial setup fixes #64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This change will make startup {} parameters of a ressource manageble
by putting the startup block into the ressource definition. This makes
one able to configure parameters like wfc-timeout (waiting for conn.
timeout). The parameters are managed like the disk_ and net_parameters.
|
The puppet code looks correct, but I can't judge the DRBD config since I've never used it. |
As the drbd user-guide states, the initial role select on the first node, needs to be done with "--force". Otherwise the role change will error out drbd: State change failed: Need access to UpToDate data reference: http://docs.linbit.com/docs/users-guide-8.4/#s-first-time-up Further to that, version after 8.4 don't have a WFConnection state - this state has been renamed to "Connecting".
ekohl
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can't judge the --force because I don't know drbd that well but otherwise it looks correct
| $fs_type = 'ext4', | ||
| $mkfs_opts = '', | ||
| $disk = undef, | ||
| $startup_parameters = undef, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could this be Optional[Hash[String, String]] $startup_parameters = undef instead?
| } | ||
|
|
||
| startup { | ||
| <% if @startup_parameters -%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like `disk_parameters, I think this whole block should be hidden if no parameters are present.
|
Dear @diLLec, thanks for the PR! This is pccibot, your friendly Vox Pupuli GitHub Bot. I noticed that your pull request contains merge conflict. Can you please rebase? You can find my sourcecode at voxpupuli/vox-pupuli-tasks |
The changes of this PR are fixing the initial setup procedure of the module. With startup options a wfc-timeout can be specified, so that the service enable does not hang an indefinite amount of time. Further the the initial ressource up needs a --force parameter (this may be an update in procedure for versions > 8.4).