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

Bugfix add mode 0600 to netplan config file #40

Merged
merged 1 commit into from
Oct 27, 2023

Conversation

lanefu
Copy link
Contributor

@lanefu lanefu commented Aug 27, 2023

Description

newer netplan on Debian Sid errored because of file permission being too open. Added defaults driven attribute to specify mode when rendering template. Remediates error message below:

{"changed": true, "cmd": ["netplan", "generate"], "delta": "0:00:01.119055", "end": "2023-08-27 01:58:23.988600", "msg": "non-zero return code", "rc": 1, "start": "2023-08-27 01:58:22.869545", "stderr": "\n** (generate:2668): WARNING **: 01:58:23.846: Permissions for /etc/netplan/armbian-default.yaml are too open. Netplan configuration should NOT be accessible by others.\n/etc/netplan/armbian-default.yaml:3:12: Error in network definition: unknown renderer ''\n  renderer: \n           ^", "stderr_lines": ["", "** (generate:2668): WARNING **: 01:58:23.846: Permissions for /etc/netplan/armbian-default.yaml are too open. Netplan configuration should NOT be accessible by others.", "/etc/netplan/armbian-default.yaml:3:12: Error in network definition: unknown renderer ''", "  renderer: ", "           ^"], "stdout": "", "stdout_lines": []}

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Chore (non-breaking change that does not add functionality or fix an issue)

Checklist:

  • I have read the CONTRIBUTING document.
  • I have run the pre-merge tests locally and they pass.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@mrlesmithjr mrlesmithjr merged commit 04f5dbd into mrlesmithjr:master Oct 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants