7
|
1 |
# build and deployment |
|
2 |
|
|
3 |
- install Ansible |
|
4 |
- Create a new deployment profile: |
|
5 |
- add a new deplyment host list by creating a `hosts/hosts.<profile>` file: |
|
6 |
- `cp hosts/hosts.tmpl hosts/hosts.<profile>` |
|
7 |
- define the profile vars: `cp group_vars/group_vars.yml.tmpl group_vars/<profile>.yml`, customize it |
|
8 |
- create the necessary host vars in `host_vars/<machine>/base.yml`. Use ansible vaults to edit them and do not expose any secret. |
8
|
9 |
- deploy with the command `deploy.sh`: `./deploy.sh <profile> <version>` |
|
10 |
|
|
11 |
## Create new version |
|
12 |
Launch the command: |
|
13 |
- `set-version.sh <version>` |
|
14 |
- commit, tag and push as needed. |