diff options
author | Clément Delafargue <39330590+clementd-fretlink@users.noreply.github.com> | 2020-06-22 14:53:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-22 14:53:42 +0200 |
commit | fcb00fd5cc86db70d122e126f52e24d0eba4af96 (patch) | |
tree | 93dee19980af622d21d08039aec2248e61bff186 /tasks | |
parent | f39118d499132f017d7f2ec0944bf673b6deb7e9 (diff) | |
parent | 791d2dcbcb3d90ea66ce9b6b519eeb576f5f601b (diff) | |
download | ansible-clever-fcb00fd5cc86db70d122e126f52e24d0eba4af96.tar.gz ansible-clever-fcb00fd5cc86db70d122e126f52e24d0eba4af96.tar.zst ansible-clever-fcb00fd5cc86db70d122e126f52e24d0eba4af96.zip |
Merge pull request #67 from clementd-fretlink/scaling
scalability configuration
Diffstat (limited to 'tasks')
-rw-r--r-- | tasks/deploy.yml | 14 | ||||
-rw-r--r-- | tasks/setup.yml | 1 |
2 files changed, 15 insertions, 0 deletions
diff --git a/tasks/deploy.yml b/tasks/deploy.yml index ca1e54a..c567981 100644 --- a/tasks/deploy.yml +++ b/tasks/deploy.yml | |||
@@ -24,6 +24,20 @@ | |||
24 | environment: | 24 | environment: |
25 | CONFIGURATION_FILE: "{{ clever_login_file }}" | 25 | CONFIGURATION_FILE: "{{ clever_login_file }}" |
26 | 26 | ||
27 | - name: Configure Scalability | ||
28 | when: clever_scaling is defined | ||
29 | command: "{{ ansible_env.HOME }}/{{ clever_user_path }}/clever-set-scalability.sh" | ||
30 | args: | ||
31 | chdir: "{{ clever_app_root }}" | ||
32 | environment: | ||
33 | CONFIGURATION_FILE: "{{ clever_login_file }}" | ||
34 | INSTANCES: "{{ clever_scaling.instances.fixed | default ('') }}" | ||
35 | MIN_INSTANCES: "{{ clever_scaling.instances.min | default('') }}" | ||
36 | MAX_INSTANCES: "{{ clever_scaling.instances.max | default('') }}" | ||
37 | FLAVOR: "{{ clever_scaling.flavor.fixed | default('') }}" | ||
38 | MIN_FLAVOR: "{{ clever_scaling.flavor.min | default('') }}" | ||
39 | MAX_FLAVOR: "{{ clever_scaling.flavor.max | default('') }}" | ||
40 | |||
27 | - name: Push Environment | 41 | - name: Push Environment |
28 | shell: "clever env import --json < {{ clever_app_confdir }}/env" | 42 | shell: "clever env import --json < {{ clever_app_confdir }}/env" |
29 | args: | 43 | args: |
diff --git a/tasks/setup.yml b/tasks/setup.yml index a2d5b90..8a11772 100644 --- a/tasks/setup.yml +++ b/tasks/setup.yml | |||
@@ -29,3 +29,4 @@ | |||
29 | with_items: | 29 | with_items: |
30 | - clever-set-domain.sh | 30 | - clever-set-domain.sh |
31 | - clever-set-drain.sh | 31 | - clever-set-drain.sh |
32 | - clever-set-scalability.sh | ||