Hi Andrei,

Thanks for sharing. Can you share which page/link you found the error, the 
cloud-init docs I found were at:
https://docs.cloudstack.apache.org/en/latest/adminguide/virtual_machines/user-data.html#using-cloud-init

You may also raise a pull request and propose changes at 
https://github.com/apache/cloudstack-documentation


Regards.

________________________________
From: Andrei Mikhailovsky <and...@arhont.com.INVALID>
Sent: Thursday, November 25, 2021 16:25
To: dev <dev@cloudstack.apache.org>
Subject: ACS 4.16 documentation issue/error

Hello everyone.

I've been following the Cloud-init integration guides in the ACS 4.16 
documentation and noticed a problem with Ubuntu Server 20.04 LTS. In 
particular, the section "Specify the managed user" shows:

system_info : default_user : name : cloud - user lock_passwd : false # disable 
user password login - true/false sudo : [ \ "ALL=(ALL) ALL \" ]       # User 
permissions disable_root : 0 # root remote login is 0 - enabled, 1 - disabled 
ssh_pwauth : 1 # password login is 0 - disabled, 1- enabled

Adding this produces an error message when trying to use sudo. The error 
message is:

$ sudo su
>>> /etc/sudoers.d/90-cloud-init-users: syntax error near line 4 <<<
sudo: parse error in /etc/sudoers.d/90-cloud-init-users near line 4
sudo: no valid sudoers sources found, quitting
sudo: unable to initialize policy plugin

Removing the "\" in
sudo : [ \ "ALL=(ALL) ALL \" ]
seem to fix the problem for me.

Could you please test this part again to make sure the users are producing 
working templates after following the instructions.

Thanks

Andrei

 

Reply via email to