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

atd_default_allow in atd role does not use bootstrap__admin_name #162

Open
niklashagman opened this issue Aug 11, 2016 · 1 comment
Open

Comments

@niklashagman
Copy link

niklashagman commented Aug 11, 2016

Having a bunch of machines with different admin account names that does not have python or anything else installed that ansible need. Am running my first bootstrap without a ansible_user set, specifying on command line --user that I know works against just this debian host with --become parameter and --ask-pass.

Am expecting debops bootstrap to use this credentials to setup this host with chosen bootstrap__admin_name, bootstrap__admin_sshkeys and bootstrap__domain in my case.
After bootstrap is done I add to hosts file ansible_user={{ bootstrap__admin_name }} and I can use depops.

Problem I have found is that atd_default_allow in atd role is by default using ansible_ssh_user and not bootstrap__admin_name. Meaning wrong username is added to /etc/at.allow.

@drybjed
Copy link
Member

drybjed commented Aug 11, 2016

This is a common thing in different roles so that the role uses the username of the admin from their workstation. But since it looks like it interferes with the use of different account names, I'll add an admin name variable to the debops.core facts so that other roles can use that instead.

And debops.bootstrap needs to allow for multiple admin accounts for this to work better, as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants