diff options
Diffstat (limited to 'ansible/roles/vmtp/tasks')
| -rw-r--r-- | ansible/roles/vmtp/tasks/config.yml | 26 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/deploy.yml | 6 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/main.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/precheck.yml | 1 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/pull.yml | 7 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/reconfigure.yml | 58 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/start.yml | 11 | ||||
| -rw-r--r-- | ansible/roles/vmtp/tasks/upgrade.yml | 4 |
8 files changed, 0 insertions, 115 deletions
diff --git a/ansible/roles/vmtp/tasks/config.yml b/ansible/roles/vmtp/tasks/config.yml deleted file mode 100644 index c63c93e80..000000000 --- a/ansible/roles/vmtp/tasks/config.yml +++ /dev/null @@ -1,26 +0,0 @@ ---- -- name: Ensuring config directories exist - file: - path: "{{ node_config_directory }}/vmtp" - state: "directory" - recurse: yes - -- name: Register binary python path - command: echo /usr/lib/python2.7/site-packages - register: python_path - when: kolla_install_type == 'binary' - -- name: Register source python path - command: echo /var/lib/kolla/venv/lib/python2.7/site-packages - register: python_path - when: kolla_install_type != 'binary' - -- name: Copying over configuration file for vmtp - merge_yaml: - sources: - - "{{ role_path }}/templates/{{ item }}.j2" - - "{{ node_custom_config }}/{{ item }}" - - "{{ node_custom_config }}/vmtp/{{ item }}" - dest: "{{ python_path }}/vmtp/{{ item }}" - with_items: - - "cfg.default.yaml" diff --git a/ansible/roles/vmtp/tasks/deploy.yml b/ansible/roles/vmtp/tasks/deploy.yml deleted file mode 100644 index d4daf108c..000000000 --- a/ansible/roles/vmtp/tasks/deploy.yml +++ /dev/null @@ -1,6 +0,0 @@ ---- -- include: config.yml - when: inventory_hostname in groups['vmtp'] - -- include: start.yml - when: inventory_hostname in groups['vmtp'] diff --git a/ansible/roles/vmtp/tasks/main.yml b/ansible/roles/vmtp/tasks/main.yml deleted file mode 100644 index b017e8b4a..000000000 --- a/ansible/roles/vmtp/tasks/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -- include: "{{ action }}.yml" diff --git a/ansible/roles/vmtp/tasks/precheck.yml b/ansible/roles/vmtp/tasks/precheck.yml deleted file mode 100644 index ed97d539c..000000000 --- a/ansible/roles/vmtp/tasks/precheck.yml +++ /dev/null @@ -1 +0,0 @@ ---- diff --git a/ansible/roles/vmtp/tasks/pull.yml b/ansible/roles/vmtp/tasks/pull.yml deleted file mode 100644 index 0be3c5eec..000000000 --- a/ansible/roles/vmtp/tasks/pull.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Pulling vmtp image - kolla_docker: - action: "pull_image" - common_options: "{{ docker_common_options }}" - image: "{{ vmtp_image_full }}" - when: inventory_hostname in groups['vmtp'] diff --git a/ansible/roles/vmtp/tasks/reconfigure.yml b/ansible/roles/vmtp/tasks/reconfigure.yml deleted file mode 100644 index 3cf5f2940..000000000 --- a/ansible/roles/vmtp/tasks/reconfigure.yml +++ /dev/null @@ -1,58 +0,0 @@ ---- -- name: Ensure container is up - kolla_docker: - name: "vmtp" - action: "get_container_state" - register: container_state - failed_when: container_state.Running == false - when: inventory_hostname in groups['vmtp'] - -- include: config.yml - -- name: Check configuration - command: docker exec {{ item.name }} /usr/local/bin/kolla_set_configs --check - changed_when: false - failed_when: false - register: check_results - when: inventory_hostname in groups['vmtp'] - with_items: - - { name: vmtp, group: vmtp } - -# NOTE(jeffrey4l): when config_strategy == 'COPY_ALWAYS' -# and container env['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE', -# just remove the container and start again -- name: Containers config strategy - kolla_docker: - name: "vmtp" - action: "get_container_env" - register: container_envs - when: inventory_hostname in groups['vmtp'] - -- name: Remove the containers - kolla_docker: - name: "vmtp" - action: "remove_container" - register: remove_containers - when: - - config_strategy == "COPY_ONCE" or item[0]['KOLLA_CONFIG_STRATEGY'] == 'COPY_ONCE' - - item[1]['rc'] == 1 - - inventory_hostname in groups['vmtp'] - with_together: - - "{{ container_envs.results }}" - - "{{ check_results.results }}" - -- include: start.yml - when: remove_containers.changed - -- name: Restart containers - kolla_docker: - name: "vmtp" - action: "restart_container" - when: - - config_strategy == 'COPY_ALWAYS' - - item[0]['KOLLA_CONFIG_STRATEGY'] != 'COPY_ONCE' - - item[1]['rc'] == 1 - - inventory_hostname in groups['vmtp'] - with_together: - - "{{ container_envs.results }}" - - "{{ check_results.results }}" diff --git a/ansible/roles/vmtp/tasks/start.yml b/ansible/roles/vmtp/tasks/start.yml deleted file mode 100644 index c3a2b19b7..000000000 --- a/ansible/roles/vmtp/tasks/start.yml +++ /dev/null @@ -1,11 +0,0 @@ ---- -- name: Starting vmtp container - kolla_docker: - action: "start_container" - common_options: "{{ docker_common_options }}" - image: "{{ vmtp_image_full }}" - name: "vmtp" - volumes: - - "{{ node_config_directory }}/vmtp/:{{ container_config_directory }}/:ro" - - "/etc/localtime:/etc/localtime:ro" - - "kolla_logs:/var/log/kolla" diff --git a/ansible/roles/vmtp/tasks/upgrade.yml b/ansible/roles/vmtp/tasks/upgrade.yml deleted file mode 100644 index 1f16915ad..000000000 --- a/ansible/roles/vmtp/tasks/upgrade.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- include: config.yml - -- include: start.yml |
