If the group is the exact same as any of the users being created, the units will go into an error state. This is due to the fact that the group is created beforehand, and then the users are added.
There is no explicit --group flag to the adduser command, hence a group matching the username will be implicitly created, but it will fail if a group with such a name was already created by the charm.
Given that the charm allows to create only a single group and all users are put inside it, I am not sure what's the best course of action is. It could be just a matter of catching the issue and blocking instead of erroring, plus improving the docs. mentioning the restriction.
If the group is the exact same as any of the users being created, the units will go into an error state. This is due to the fact that the group is created beforehand, and then the users are added.
There is no explicit --group flag to the adduser command, hence a group matching the username will be implicitly created, but it will fail if a group with such a name was already created by the charm.
Given that the charm allows to create only a single group and all users are put inside it, I am not sure what's the best course of action is. It could be just a matter of catching the issue and blocking instead of erroring, plus improving the docs. mentioning the restriction.
Imported from Launchpad using lp2gh.
date created: 2022-03-16T15:17:29Z
owner: fandanbango
assignee: valexby
the launchpad url