Ancestors

Written by Andreas Gohr on 2024-12-28 at 19:09

[#]linux question. Is there a simple deployment tool that can do the following (for a single server and single project):

  1. log in to a remote ssh server as user A

  1. copy files from local to remote as user B (user A has sudo permissions)

  1. copying should ideally using rsync (or similar) to only copy changes

  1. run a command on the remote server as root (again via sudo)

  1. everything should run through a single SSH connection, not multiple ones

  1. all controlled via a simple config file?

  1. no daemon (other than ssh) on the remote server

I feel like this should be possible, but I can't find anything simple (I don't want to learn a full blown multi-server deployment system)

=> More informations about this toot | More toots from splitbrain@octodon.social

Written by Ben on 2024-12-28 at 20:10

@splitbrain is User B an account on the local system or the remote?

There's probably a way to set this up with https://just.systems - - especially a shebang recipe.

=> More informations about this toot | More toots from ben_zen@social.sdf.org

Toot

Written by Andreas Gohr on 2024-12-28 at 20:25

@ben_zen user b is remote. just looks interesting, but from what I understand it's more of a make replacement than something that inherently understands remote shell access and sudo mechanisms? I don't see the advantage over a bash script (for my usecase) then...

=> More informations about this toot | More toots from splitbrain@octodon.social

Descendants

Written by Ben on 2024-12-28 at 20:44

@splitbrain

Mostly in being a sort of superior runner environment. I think scripting is your best option, honestly.

=> More informations about this toot | More toots from ben_zen@social.sdf.org

Proxy Information
Original URL
gemini://mastogem.picasoft.net/thread/113732323388044775
Status Code
Success (20)
Meta
text/gemini
Capsule Response Time
378.946972 milliseconds
Gemini-to-HTML Time
1.116976 milliseconds

This content has been proxied by September (3851b).