Hi,
I just think about how to initialize all my existing servers with pallet basics.
At the rough starting point each server has it's individual root user (due to the existing provisioning).
As a first step I try to set up an unified pallet user in order to spread config in an more uniform process later on.
The way which works is
(defn create-init-user-for-cm
"create the user to initialize cm prerequisits on the system"
[username users-password]
(api/make-user username :password users-password :no-sudo (= username "root"))
)
(api/lift my-group :user (create-init-user-for-cm "initialUserName" "initialUserPassword") :compute my-provider)
But this works only for one individual server.
So my question is, can I operate with individual admin-users per server for the first run?
The code for getting server individual config in phases allready exists - but switching user in phase/plan is to late, because pallet calls quite early scripts to get "target-os-details" with the configured compute user.
Any Idea?
Best Regards,
Michael