Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 35 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,30 @@
# Prepare
# Samba DC testing infrastructure deployment


## Contents

* [Prerequisites](#prerequisites)
* [Quickstart](#quickstart)
* [Deployment options](#deployment-options)

* * *


## Prerequisites

* **Ansible** with necessary Python modules installed
* **Git** with **git-subtree** module installed


## Quickstart

install prerequired ansible 2.6+ and python modules
```sh
apt-get install ansible python-module-proxmoxer python-module-jmespath python-module-netaddr
apt-get install ansible \
python-module-proxmoxer \
python-module-jmespath \
python-module-netaddr \
git-subtree
```

init submodules and pull infra-conf repository
Expand All @@ -18,3 +41,13 @@ deploy desired stack
```sh
./infra.sh test-env test-stack
```


## Deployment options

You may add some extra options to `infra.sh`:

* **-e redeploy_all=yes** - Apply the playbook to existing VMs once
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

with this options all stack`s VMs will be recreated from scratch (destroy VM -> create VM), not just reapply playbooks.

again.
* **-e destroy_all=yes** - Stop all VMs.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This option don't stop VMs, it's destroy VMs.