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

create option to overwrite /etc/network/interfaces explicitly #78

Closed
kotowicz opened this issue Jul 25, 2014 · 2 comments
Closed

create option to overwrite /etc/network/interfaces explicitly #78

kotowicz opened this issue Jul 25, 2014 · 2 comments

Comments

@kotowicz
Copy link

puppet-network tells me that by default it will keep and not overwrite interfaces that are not being managed by puppet

# HEADER: This file is is being managed by puppet. Changes to
# HEADER: interfaces that are not being managed by puppet will persist;
# HEADER: however changes to interfaces that are being managed by puppet will
# HEADER: be overwritten. In addition, file order is NOT guaranteed.

This is a safe solution, but sometimes one wants to explicitly overwrite any previous entries.

@pieterlange
Copy link

You can already do that, as with any resource type:

  # clean slate
  Network_config {
    ensure => purged
  }
  Network_route {
    ensure => purged
  }
  # Start defining your own network resources with ensure => present

@adrienthebo
Copy link
Member

As @pieterlange noted this can be done through resource defaults; closing this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants