https://pulumi.com logo
Title
w

wooden-midnight-61033

02/14/2023, 1:22 PM
hi, can I use pulumi as a replacement of ansible?
e

echoing-dinner-19531

02/14/2023, 1:43 PM
Not really. Solving different problems, but I understand it's quite common for people to use the pulumi command provider to invoke ansible on virtual machines they've created with Pulumi
w

wooden-midnight-61033

02/14/2023, 1:44 PM
not running ansible through pulumi
I mean as a replacement
can my code using pulumi library to ssh into a machine and make changes?
like restart a service managed by systemd
install an application through yum
apt
etc
these type of things
Im looking for such example in their website and can't find any
it is all using either AWS or Azrure of Google cloud
e

echoing-dinner-19531

02/14/2023, 1:51 PM
It can't, Pulumi is not a machine configuration system.
w

wooden-midnight-61033

02/14/2023, 1:52 PM
ok, so it only communicates to other apis (sdk, http)?
e

echoing-dinner-19531

02/14/2023, 1:56 PM
It takes a graph from a user program and executes that graph against provider programs, most of those provider programs are for things like creating aws resources via http requests, but there are other provider programs like "command" which just run a shell command on a local or remote machine.
w

wooden-midnight-61033

02/14/2023, 1:56 PM
ah
thank you! thats the part I was missing