Skip to content

Add sudo support for prepare #11

Closed
@rothgar

Description

@rothgar

When configuring a server I have ssh access via my user but package installation requires sudo.

There should be an option to use sudo to the config file to allow a non-root user to prepare the OS.

An example would be

[servers]

[servers.172-31-4-82]
host        = "172.31.4.82"
port        = "22"
user        = "ec2-user"
sudo        = "true"
keyPath     = "/home/ec2-user/.ssh/id_rsa"

There may be some consideration to add a sudo_password option if passwordless sudo ( NOPASSWD ) is not configured. I don't like having passwords in config files so maybe it would just be a pre-requirement of the user installing the packages or have vuls prompt for a sudo password before sshing into a system.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions