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

Fix issue #335: Allow provisioning with non-"ubuntu" user #336

Merged
merged 4 commits into from
Aug 13, 2019

Conversation

AdamIsrael
Copy link
Contributor

This patch fixes an issue with the SSH provisioner, which previously
always assumed there was an "ubuntu" user with sudo access available on
the target machine.

The provisioner will now honor the username passed to
model.add_machine.

Added an additional integration test for testing the root user, as well
as modifying the existing integration test to use a randomized username
w/sudo access.

This patch fixes an issue with the SSH provisioner, which previously
always assumed there was an "ubuntu" user with sudo access available on
the target machine.

The provisioner will now honor the username passed to
`model.add_machine`.

Added an additional integration test for testing the root user, as well
as modifying the existing integration test to use a randomized username
w/sudo access.
@jujubot
Copy link
Contributor

jujubot commented Aug 12, 2019

Can one of the admins verify this patch?

1 similar comment
@jujubot
Copy link
Contributor

jujubot commented Aug 12, 2019

Can one of the admins verify this patch?

This patch fixes an issue with the SSH provisioner, which previously
always assumed there was an "ubuntu" user with sudo access available on
the target machine.

The provisioner will now honor the username passed to
`model.add_machine`.

Added an additional integration test for testing the root user, as well
as modifying the existing integration test to use a randomized username
w/sudo access.
@mitechie
Copy link
Contributor

@SimonRichardson @achilleasa can you two take a peek at this please and help progress it.

@mitechie
Copy link
Contributor

!!build!!

Copy link
Member

@SimonRichardson SimonRichardson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

- {}
sudo: ["ALL=(ALL) NOPASSWD:ALL"]
groups: adm, sudoers
""".format(test_user, public_key)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@mitechie
Copy link
Contributor

$$merge$$

@jujubot jujubot merged commit 4359529 into juju:master Aug 13, 2019
@AdamIsrael AdamIsrael deleted the provision_user branch August 13, 2019 15:25
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

Successfully merging this pull request may close these issues.

4 participants