Survey recommendations

Hello guys. Hope you’re doing well…

I’m currently working with AWX 3.0.1.0 for managing several tasks at OS level (windows & linux) and vSphere VM management. I’m responsible of managing a wide virtual infrastructure for several internal customers on my vSphere platform. Each customer (aka company) has their own set of resources such as datastores, networks (virtual portgroup), resource pools, folders, among others. I’d like you to suggest me some ideas for a better way of organizing these elements by using AWX surveys.

I was wondering how could I create one or more surveys to allow junior administrators to deploy new virtual machines on vSphere. The idea I had in mind was to create a survey which allows me to select a customer name, and based on that value, display a list of their corresponding datastores and networks. I believe this is not possible with AWX yet, I am right?

I also thought it would be OK if I create several surveys (each one corresponding to a different customer) and set their resources (datastores and networks) as fixed values in multiple choice form entries, but this seems too tedious.

For instance, I was planning to create a group of variables like these:

Hi,

I think it’s important to take into account how often you update the information for each customer. Unless you do it with tower-cli, maintaining information in AWX is tedious in my experience.

I would go with using variables files for each customer. It’s a good approach since you can easily maintain that information in your SCM instead of storing it in AWX.

Good luck!

Hello, thanks for the answer.

Hi,

I think it’s important to take into account how often you update the information for each customer. Unless you do it with tower-cli, maintaining information in AWX is tedious in my experience.

I don’t think that the customer info will vary too often, but I don’t want to update it manually. I guess that tower-cli is the only alternative.

I would go with using variables files for each customer. It’s a good approach since you can easily maintain that information in your SCM instead of storing it in AWX.

I am doing it it in that way already, by using surveys with lot of fields to be filled and passed as arguments to ansible as variables.

Thank you so much, Sergio, I now feel more confident to continue working with awx this way.