Hello, I use Pulumi (Python) for deploying infrast...
# general
e
Hello, I use Pulumi (Python) for deploying infrastructure in OCI and Ansible to configure the instances. Is there any tool that can integrate both?
e
Integrate both how? It's pretty easy to call into ansible from pulumi if you want to say run setup code when things are created. Or do you mean something more intricate?
e
I would like to know if there is any web tool that allows me to deploy Pulumi and then execute Ansible playbooks, while also seeing the progress visually.
l
Most All CD pipeline tools and PR UIs for the major git SaaSs will do this. If you want something that can be run from CLI, CI, +++... then I'd probably go with a Pulumi automation-api program that calls out to Ansible after all the up()s succeed.
e
then I'd probably go with a Pulumi automation-api program that calls out to Ansible after all the up()s succeed
you could probably just do this in lifecycle hooks now, less need for a wrapping auto api program
l
Aren't hooks for a specific resource? If you wanted to wait for all resources to finish, is there a way to do that with hooks? Running an Ansible script on an EC2 instance would work in the lifecycle hook.. unless it dependended on the RDS instance which won't be ready for another 10 minutes.
e
you can setup empty resources that depend on the set of resources you care about and put the hook on those
whether that, or a wrapping auto api program, is easier probably varies from case to case, but it's possible
l
Yep. Though plain old scripting, in your CI tool, bash script or whatever, it's easier than either 🙂
e
Hey guys, thanks for your ideas. I’ve been looking into Pulumi Automation API as you mentioned, and I found this repo https://github.com/komalali/self-service-platyform I think it could be a great starting point.