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 DragonFlyBSD support #904

Merged
merged 7 commits into from
Jun 14, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
cloud.cfg.tmpl: use is_bsd
  • Loading branch information
goneri committed Jun 13, 2021
commit dd8e53b981fa7b380bd02f887012c7b84b7d2f6b
9 changes: 4 additions & 5 deletions config/cloud.cfg.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
## template:jinja
# The top level settings are used as module
# and system configuration.

{% if variant.endswith("bsd") %}
{% set is_bsd = variant in ["dragonfly", "freebsd", "netbsd", "openbsd"] %}
{% if is_bsd %}
syslog_fix_perms: root:wheel
{% elif variant in ["suse"] %}
syslog_fix_perms: root:root
Expand Down Expand Up @@ -65,7 +65,7 @@ cloud_init_modules:
- growpart
- resizefs
{% endif %}
{% if variant not in ["dragonfly", "freebsd", "netbsd", "openbsd"] %}
{% if not is_bsd %}
- disk_setup
- mounts
{% endif %}
Expand Down Expand Up @@ -280,8 +280,7 @@ system_info:
{% if variant in ["freebsd", "netbsd", "openbsd"] %}
network:
renderers: ['{{ variant }}']
{% endif %}
{% if variant in ["dragonfly"] %}
{% elif variant in ["dragonfly"] %}
network:
renderers: ['freebsd']
{% endif %}