diff options
| author | SamYaple <sam@yaple.net> | 2015-12-25 22:28:29 +0000 |
|---|---|---|
| committer | SamYaple <sam@yaple.net> | 2015-12-31 16:38:56 +0000 |
| commit | a6eba02256b00a35c458e618eebef376bf8cb505 (patch) | |
| tree | 6440e6cca5a1d8a9ed73dcccb3c706218ef10c0f /ansible | |
| parent | bc1cc939d298eb075b4839f9467f107cd36bce46 (diff) | |
| download | kolla-a6eba02256b00a35c458e618eebef376bf8cb505.tar.gz kolla-a6eba02256b00a35c458e618eebef376bf8cb505.zip | |
Convert haproxy to kolla_docker
Change-Id: Iff39395010f47099e7dbbb9ddf7c014756455e91
Partially-Implements: blueprint kolla-docker-module
Diffstat (limited to 'ansible')
| -rw-r--r-- | ansible/roles/haproxy/tasks/start.yml | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/ansible/roles/haproxy/tasks/start.yml b/ansible/roles/haproxy/tasks/start.yml index b0deaef12..5f838cd51 100644 --- a/ansible/roles/haproxy/tasks/start.yml +++ b/ansible/roles/haproxy/tasks/start.yml @@ -1,46 +1,26 @@ --- - name: Starting keepalived container - docker: - tty: True - net: host - pull: "{{ docker_pull_policy }}" - restart_policy: "{{ docker_restart_policy }}" - restart_policy_retry: "{{ docker_restart_policy_retry }}" - state: reloaded - registry: "{{ docker_registry }}" - username: "{{ docker_registry_username }}" - password: "{{ docker_registry_password }}" - insecure_registry: "{{ docker_insecure_registry }}" - name: keepalived + kolla_docker: + action: "start_container" + common_options: "{{ docker_common_options }}" image: "{{ keepalived_image_full }}" + name: "keepalived" privileged: True volumes: - "{{ node_config_directory }}/keepalived/:{{ container_config_directory }}/:ro" - "/run:/run" - "/lib/modules:/lib/modules:ro" - env: - KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" -- name: Starting HAProxy container - docker: - tty: True - net: host - pull: "{{ docker_pull_policy }}" - restart_policy: "{{ docker_restart_policy }}" - restart_policy_retry: "{{ docker_restart_policy_retry }}" - state: reloaded - registry: "{{ docker_registry }}" - username: "{{ docker_registry_username }}" - password: "{{ docker_registry_password }}" - insecure_registry: "{{ docker_insecure_registry }}" - name: haproxy +- name: Starting haproxy container + kolla_docker: + action: "start_container" + common_options: "{{ docker_common_options }}" image: "{{ haproxy_image_full }}" + name: "haproxy" privileged: True volumes: - "{{ node_config_directory }}/haproxy/:{{ container_config_directory }}/:ro" - "/run:/run" - env: - KOLLA_CONFIG_STRATEGY: "{{ config_strategy }}" - name: Ensuring latest haproxy config is used command: docker exec haproxy /usr/local/bin/kolla_ensure_haproxy_latest_config |
