aboutsummaryrefslogtreecommitdiffhomepage
path: root/tasks/deploy.yml
diff options
context:
space:
mode:
Diffstat (limited to 'tasks/deploy.yml')
-rw-r--r--tasks/deploy.yml14
1 files changed, 14 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: