1.You must have ansible installed on your local machine. 2. You must have docker and docker-compose installed ( How to install Docker, How to install Docker-Compose
- Change the variables on the application.properties files, located at the app folder so they match your configuration or it probably won't work.
- Do the same for the environment file, located at the ansible/playbook/vars folder (it must be encrypted with ansible-vault).
- Change the hosts.yml on the ansible folder, so they match your ssh config file. Alternatively, add a devopsvm host on your
~/.ssh/configfile looking like this:
Host devopsvm
HostName #The ip of the machine you will deploy
User test
IdentityFile path/to/private/key- Add the following variables to you Jenkins credentials:
- DOCKER-PASS: Password for docker registry.
- VAULT: The password for the ansible vault
- Change the variables base on the ansible/vars/*test.yml files (alternatively, you can add use the encrypted var files with password Nasos200)
cd app
sudo ./mvnw clean packagedocker-compose up
cd ansible
ansible-playbook playbooks/setup.ymlThe main page is the first thing we see.
This is what it looks like when the user is not logged in:

In order for the form to be accessible, the user must logged in.

Then, the user gets redirected to the main page, where he can submit his form.

Now, the user can easily submit his form.

After submission, a preview of his data is presented where he can confirm them or change them.

Finally, the user can see the price of the tax and pay the tax.

This is the admin panel where the admin can add users.

After choosing the type of user, the admin can see a list of available users of that type (e.g. Normal Users).

If the admin wishes, it is very easy to add users by clicking the add button and submitting the user information.

Of course, the admin can add admins the same exact way but by choosing Admins on the admin panel.