Skip to content
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

Add a network defined resource #30

Merged
merged 2 commits into from
Jul 13, 2017
Merged

Conversation

bastelfreak
Copy link
Member

No description provided.

@bastelfreak
Copy link
Member Author

Hi all, I added this as a WIP and I'm currently testing this locally. Could you provide me with feedback? I will add tests later on.

include ::systemd

if $manage_service {
service{'systemd-networkd':
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd split this off in a separate class which you can include. That way you don't need to choose one network where you manage the service.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we but this into the init.pp?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking of a systemd::networkd class that's included here, but since configuration goes through init that could work as well.

README.md Outdated
systemd-networkd is able to manage your network configuration. We provide a
defined resource which can write the interface configurations. systemd-networkd
needs to be restarted to apply the configs. The defined resource can do this
for you, besided managing the service itself.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

s/besided/besides/

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thx, fixed

@bastelfreak bastelfreak force-pushed the network branch 3 times, most recently from 03ea9d9 to fe6c1c2 Compare July 13, 2017 11:12
@bastelfreak bastelfreak changed the title [WIP] Add a network defined resource Add a network defined resource Jul 13, 2017
$notify = undef
}

file { "${path}/${title}":
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd rather use $name than $title to allow for a propre namevar mechanism.

@raphink raphink merged commit 6e5db82 into voxpupuli:master Jul 13, 2017
@bastelfreak bastelfreak deleted the network branch July 13, 2017 11:36
Copy link
Member

@ekohl ekohl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like I forgot to submit my review.

enabled => true,
}
}

if $restart_service {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you want to take ``$::systemd::manage_networkd``` into consideration here?

@@ -1,7 +1,8 @@
# -- Class systemd
# This module allows triggering systemd commands once for all modules
class systemd (
$service_limits = {}
$service_limits = {},
Boolean $manage_networkd = true,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this shouldn't default to true since most configurations don't use networkd. Maybe that's why I would take an optional include

@raphink raphink added the enhancement New feature or request label Aug 21, 2020
op-ct pushed a commit to op-ct/puppet-systemd that referenced this pull request Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants