Skip to content

Commit

Permalink
Do not interfere with cloud-init when it comes to user creation (#49)
Browse files Browse the repository at this point in the history
.. but keep the code if Vagrant support is added later.
  • Loading branch information
hartwork committed Jul 22, 2017
1 parent c56e6c2 commit 326e226
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion image_bootstrap/engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,6 @@ def run(self):
# Essentials
self._install_dhcp_client()
self._install_sudo()
self._create_sudo_nopasswd_user()
self._install_cloud_init_and_friends()
self._configure_cloud_init_and_friends()
self._install_sshd()
Expand All @@ -947,6 +946,11 @@ def run(self):
self._disable_clearing_tty1()
self._disable_pcspkr_autoloading()
self._intall_acpid_unless_using_systemd()
# elif with vagrant support:
# ...
# self._install_sudo()
# self._create_sudo_nopasswd_user()
# ...

self.create_network_configuration() # after DHCP client install

Expand Down

0 comments on commit 326e226

Please sign in to comment.