Replies: 2 comments 3 replies
-
Thanks for the report. It looks like you are not enabling OS Login on the VM. I am curious if you have either (A) enabled OS Login at the project level through metadata or (B) have project-wide SSH keys.
I suspect the answer is (B) and that the corresponding users are being created. If so, one potential solution would be to block project-wide SSH keys. That would look something like: ...
settings:
...
block-project-ssh-keys: "TRUE" I advise the quotation marks around |
Beta Was this translation helpful? Give feedback.
-
Hi all, Carlos |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am using a
modules/packer/custom-image
module for creating custom images for my GHPC cluster. During the image creation, google_guest_agent creates a bunch of local users that exist in the project. In the logs, it appears like this:Since it's the base image and the nodes that use this image will not be using a Google authentication service but the separate LDAP server, I don't need any of the local users to be created. Is it possible to disable this behaviour?
I found out that you can stop this by editing
/etc/default/instance_configs.cfg
and settingaccounts_daemon = false
. To my knowledge, the only place where I can change this is in the startup scripts. However, startup scripts are executed after google_guest_agent runs, so it's not an option.Snippet from the blueprint used to create images:
The workaround that I have now is a script that deletes all local users at the end of image build.
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions