https://pulumi.com logo
Title
b

bored-monitor-99026

05/21/2021, 4:52 AM
hi all! can i use pulumi to install softwares on vps (not from cloud providers). basically i want to do the equivalent with pulumi to what i can do with ansible: providing username and password(or ssh keys) so it can ssh into the host and do some software update.
q

quiet-truck-58459

05/21/2021, 12:56 PM
Closest thing I could find is this guide and the associated github repo
b

bored-monitor-99026

05/23/2021, 5:12 PM
thanks very much tom, excited to find these resources. after reading the guide, i see there is a step to config pub & private keys:
$ cat rsa.pub | pulumi config set publicKey --
$ cat rsa | pulumi config set privateKey --secret --
and in the
___main__.py_
there is
OSProfileArgs
to setup the pubkey on the VM. cool, but i don't use cloud providers, how can i setup pulumi to enable it to access all of my VMs?
seems like it's feasible: i just need to use a for loop to iterate over each of my VMs, then build a connection(which is not tied to a cloud provider), then i can run whatever script for it.