clong / DetectionLab

Automate the creation of a lab environment complete with security tooling and logging best practices
MIT License
4.6k stars 980 forks source link

Question: (at least ESXi) Why do you use the GitHub repo as source for the vagrant scripts? #751

Closed certrik closed 2 years ago

certrik commented 2 years ago

@clong I use

- name: Copy local vagrant scripts to c:\vagrant
  ansible.windows.win_copy:
    src: ../../Vagrant/
    dest: c:\vagrant

in for example DetectionLab/ESXi/ansible/roles/win10/tasks/main.yml now. Asking all of this because I am looking into making DetectionLab more flexible regarding IP/MAC/Password configuration at the moment. For ESXi I already have a good track using terraform variables passed to ansible via --extra-vars . In this case you can define everything in terraform.tfvars which is then also passed to ansible. Now the powershell scripts in /Vagrant/scripts still have to accept some variables in order to make it work but I am at a good way.

certrik commented 2 years ago

More ... I think if the powershell scripts in /Vagrant/scripts would rely on DNS more than IP address less variables have to be passed to the scripts.