Hello,
Is there any way to create a new user by adding it to a new group that is not named after the user name with cloud-config?
I've read
this reference and tried "groups" section in my cloud-config, but I got message like warning: unrecognized key "groups" and group was not created.
my cloud config looks like below :
groups:
- foo
users:
- name: aoi
primary-group:foo # this is a creation-time field. will be ignored if account exists
groups:
- sudo
- coreI'm currently using CoreOS607.0.0.
I'm also wondering how I can specify uid and gid when creating new ones with cloud-config.
Of course I could add them by commands manually but what I'm trying to do it to keep everything in cloud-config so that I can distribute the same configuration to the machines on the different platforms.