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

freebsd: introduce the freebsd renderer #61

Merged
merged 20 commits into from Dec 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 4 additions & 1 deletion cloudinit/config/cc_salt_minion.py
Expand Up @@ -46,6 +46,8 @@
import os

from cloudinit import safeyaml, util
from cloudinit.distros import rhel_util


# Note: see https://docs.saltstack.com/en/latest/topics/installation/
# Note: see https://docs.saltstack.com/en/latest/ref/configuration/
Expand Down Expand Up @@ -123,7 +125,8 @@ def handle(name, cfg, cloud, log, _args):
# we need to have the salt minion service enabled in rc in order to be
# able to start the service. this does only apply on FreeBSD servers.
if cloud.distro.osfamily == 'freebsd':
cloud.distro.updatercconf('salt_minion_enable', 'YES')
rhel_util.update_sysconfig_file(
'/etc/rc.conf', {'salt_minion_enable': 'YES'})

# restart salt-minion. 'service' will start even if not started. if it
# was started, it needs to be restarted for config change.
Expand Down
2 changes: 1 addition & 1 deletion cloudinit/distros/__init__.py
Expand Up @@ -145,7 +145,7 @@ def apply_network(self, settings, bring_up=True):
# Write it out

# pylint: disable=assignment-from-no-return
# We have implementations in arch, freebsd and gentoo still
# We have implementations in arch and gentoo still
dev_names = self._write_network(settings)
# pylint: enable=assignment-from-no-return
# Now try to bring them up
Expand Down