WME setup tool with terraform and ansible
130
oneclick-wme-setup-tool will help to setup WME without any manual process . This tool built with the Terraform for infrastructure provisioning and Ansible for infrastructure configuration and Installing WME software on AWS.
docker container run -d --rm -it --name <container-name> --network my-network -v <aws-credentiaas-file>:/root/.aws/ -v <private-key-location>:<private-key-location-in-Docker> -v <terraform-service-file-location>:/usr/local/wme-setup/service/ wmdevops/oneclick-wme-setup-tool:<tag> /bin/bash -c "terraform init;terraform validate;terraform apply"
docker container run -d -it --name <container-name> --network my-network -v <aws-credentiaas-file>:/root/.aws/ -v <private-key-location>:<private-key-location-in-Docker> -v <terraform-service-file-location>:/usr/local/wme-setup/service/ wmdevops/oneclick-wme-setup-tool:<tag>
docker container run --rm -it --name wmesetup --network my-network -v ~/.aws:/root/.aws/ -v ~/Downloads/onclick-wme/keys/:/usr/local/private_key/ -v ~/Downloads/onclick-wme/service:/usr/local/wme-setup/service/ wmdevops/oneclick-wme-setup-tool:1.0 /bin/bash -c "terraform init;terraform validate;terraform apply"
docker container run --rm -it --name wmesetup --network my-network -v ~/.aws:/root/.aws/ -v ~/Downloads/onclick-wme/keys/:/usr/local/private_key/ -v ~/Downloads/onclick-wme/service:/usr/local/wme-setup/service/ wmdevops/oneclick-wme-setup-tool:1.0 /bin/bash -c "terraform destroy"
Creating WME infrastructure in Cloud providers we are using Terraform Modules structure.A module is a container for multiple resources that are used together.
Every Terraform configuration has at least one module, known as its root module, which consists of the resources defined in the .tf files in the main working directory.
Terraform Module consists of main.tf, variable.tf and output.tf for infrastructure creation and also have ansible playbooks for instances configuration.for more information about terraform module structure and details visit terraform modules
The default Module is located in container at /usr/local/wme-setup/module/wme-setup-creation/. which is provided by wavemaker inbuit in Docker image for WME setup process.
If the user want to use the customized module, mount module as a volume and specify the module location in service main.tf file
example Docker command: wme setup with custom terraform module
docker container run -d --rm -it --name <container-name> --network host -v <aws-credentiaas-file>:/root/.aws/ -v <private-key-location>:<private-key-location-in-Docker> -v <terraform-service-file-location>:/usr/local/wme-setup/service/ -v <terraform-custom-module-file-location>:<terraform-custom-module-file-location-in-Docker> wmdevops/oneclick-wme-setup-tool:<tag> /bin/bash -c "terraform init;terraform validate;terraform apply"
For creating WME setup on other networks of the host instance when connected with VPN connection, just simply run Docker container with host network.
docker container run -d -it --name <container-name> --network host -v <aws-credentiaas-file>:/root/.aws/ -v <private-key-location>:<private-key-location-in-Docker> -v <terraform-service-file-location>:/usr/local/wme-setup/service/ wmdevops/oneclick-wme-setup-tool:<tag>
Content type
Image
Digest
Size
394.3 MB
Last updated
about 6 years ago
docker pull wmdevops/oneclick-wme-setup-tool:1.0