Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

user module: if group with same name as user exists, module fails #131

Open
retrogradeorbit opened this issue Aug 16, 2021 · 0 comments
Open
Labels
bug Something isn't working

Comments

@retrogradeorbit
Copy link
Member

(defn users []
  (let [host-key (:key (get-host-config))]
    (doseq [group-name (get-in vars [host-key :groups])]
      (group :present {:name group-name}))

    (doseq [user-info (get-in vars [host-key :users])]
      (user :present user-info))))
provisioning/common.clj:78 (group :present {:name group-name}) :database :database :webserver
provisioning/common.clj:81 (user :present user-info) :database :database
:database failed! exit:9
--stdout--
--stderr--
useradd: group monitor exists - if you want to add this user to that group, use -g.
----------
provisioning/common.clj:78 (group :present {:name group-name}) :database :database :webserver :webserver
provisioning/common.clj:81 (user :present user-info) :database :database :webserver :webserver
:webserver failed! exit:9
--stdout--
--stderr--
useradd: group monitor exists - if you want to add this user to that group, use -g.
----------
{:database {:err "useradd: group monitor exists - if you want to add this user to that group, use -g.\n",
            :exit 9,
            :out "",
            :out-lines [""],
            :result :failed},
 :webserver {:err "useradd: group monitor exists - if you want to add this user to that group, use -g.\n",
             :exit 9,
             :out "",
             :out-lines [""],
             :result :failed}}
@retrogradeorbit retrogradeorbit added the bug Something isn't working label Aug 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant