automatically test all variables in a config file

14 views
Skip to first unread message

sami....@gmail.com

unread,
Feb 22, 2017, 1:08:35 PM2/22/17
to Ansible Project
Hi,

I built an application that gets deployed using ansible, the 'config' file for my app has a lot of variables that are set in a YAML file.

Some examples of these variables:

1) Path to images
2) Number of VM instances to spin up
3) Number of CPU, Memory to use.
...etc

I would like to test my deployment, with different variables (sort of fuzzing), and i wonder if there are any testing framework or tools out there, for this purpose.

Basically, I just want to exercise all these variables with different values.

Thanks,
Sam

Dick Visser

unread,
Feb 22, 2017, 4:31:30 PM2/22/17
to ansible...@googlegroups.com
On 21 February 2017 at 01:21, <sami....@gmail.com> wrote:

> I would like to test my deployment, with different variables (sort of
> fuzzing),

(I'll respond to only one of your three similar (fuzzing?) messages)

You can construct your vars using the random filter:

http://docs.ansible.com/ansible/playbooks_filters.html#random-number-filter


DIck




--
Dick Visser
Sr. System & Network Engineer
GÉANT

Want to join us? We're hiring: https://www.geant.org/jobs
Reply all
Reply to author
Forward
0 new messages