Skip to content

Commit

Permalink
OpenStack: Ensure that cloud-init extends sudoers config (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
hartwork committed Jul 23, 2017
1 parent 76e0a89 commit d37008a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image_bootstrap/distros/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,8 @@ def adjust_cloud_cfg_dict(self, cloud_cfg_dict):
system_info__default_user = system_info.setdefault('default_user', {})
system_info__default_user['name'] = self.get_cloud_username()
system_info__default_user['gecos'] = 'Cloud-init-user'
system_info__default_user.setdefault('sudo',
['ALL=(ALL) NOPASSWD:ALL'])

system_info['distro'] = self.get_cloud_init_distro()

Expand Down

0 comments on commit d37008a

Please sign in to comment.