diff --git a/ansible/roles/aodh/tasks/bootstrap_service.yml b/ansible/roles/aodh/tasks/bootstrap_service.yml index 84ed6ec983..5b3f0585c9 100644 --- a/ansible/roles/aodh/tasks/bootstrap_service.yml +++ b/ansible/roles/aodh/tasks/bootstrap_service.yml @@ -14,8 +14,8 @@ restart_policy: "never" volumes: - "{{ node_config_directory }}/aodh-api/:{{ container_config_directory }}/:ro" - - "aodh:/var/lib/aodh/" - "/etc/localtime:/etc/localtime:ro" + - "aodh:/var/lib/aodh/" - "kolla_logs:/var/log/kolla/" run_once: True delegate_to: "{{ groups['aodh-api'][0] }}" diff --git a/ansible/roles/aodh/tasks/start.yml b/ansible/roles/aodh/tasks/start.yml index 5db52b65eb..4084799193 100644 --- a/ansible/roles/aodh/tasks/start.yml +++ b/ansible/roles/aodh/tasks/start.yml @@ -7,6 +7,7 @@ name: "aodh_api" volumes: - "{{ node_config_directory }}/aodh-api/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "aodh:/var/lib/aodh/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['aodh-api'] @@ -19,6 +20,7 @@ name: "aodh_evaluator" volumes: - "{{ node_config_directory }}/aodh-evaluator/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['aodh-evaluator'] @@ -30,6 +32,7 @@ name: "aodh_listener" volumes: - "{{ node_config_directory }}/aodh-listener/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['aodh-listener'] @@ -41,5 +44,6 @@ name: "aodh_notifier" volumes: - "{{ node_config_directory }}/aodh-notifier/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['aodh-notifier'] diff --git a/ansible/roles/barbican/tasks/bootstrap_service.yml b/ansible/roles/barbican/tasks/bootstrap_service.yml index fc575a0ac1..04ece90fdb 100644 --- a/ansible/roles/barbican/tasks/bootstrap_service.yml +++ b/ansible/roles/barbican/tasks/bootstrap_service.yml @@ -14,8 +14,8 @@ restart_policy: "never" volumes: - "{{ node_config_directory }}/barbican-api/:{{ container_config_directory }}/:ro" - - "barbican:/var/lib/barbican/" - "/etc/localtime:/etc/localtime:ro" + - "barbican:/var/lib/barbican/" - "kolla_logs:/var/log/kolla/" run_once: True delegate_to: "{{ groups['barbican-api'][0] }}" diff --git a/ansible/roles/barbican/tasks/start.yml b/ansible/roles/barbican/tasks/start.yml index e1891f6560..c862beaaf9 100644 --- a/ansible/roles/barbican/tasks/start.yml +++ b/ansible/roles/barbican/tasks/start.yml @@ -7,6 +7,7 @@ name: "barbican_api" volumes: - "{{ node_config_directory }}/barbican-api/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "barbican:/var/lib/barbican/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['barbican-api'] @@ -19,6 +20,7 @@ name: "barbican_keystone_listener" volumes: - "{{ node_config_directory }}/barbican-keystone-listener/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['barbican-keystone-listener'] @@ -30,5 +32,6 @@ name: "barbican_worker" volumes: - "{{ node_config_directory }}/barbican-worker/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['barbican-worker'] diff --git a/ansible/roles/etcd/tasks/bootstrap.yml b/ansible/roles/etcd/tasks/bootstrap.yml index bea1cb7ec7..d098ff99bd 100644 --- a/ansible/roles/etcd/tasks/bootstrap.yml +++ b/ansible/roles/etcd/tasks/bootstrap.yml @@ -14,5 +14,6 @@ restart_policy: "never" volumes: - "{{ node_config_directory }}/etcd/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "kolla_etcd:/var/lib/etcd/" - "kolla_logs:/var/log/kolla/" diff --git a/ansible/roles/gnocchi/tasks/start.yml b/ansible/roles/gnocchi/tasks/start.yml index d53ab979b5..5d0231fe47 100644 --- a/ansible/roles/gnocchi/tasks/start.yml +++ b/ansible/roles/gnocchi/tasks/start.yml @@ -7,6 +7,7 @@ name: "gnocchi_api" volumes: - "{{ node_config_directory }}/gnocchi-api/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "gnocchi:/var/lib/gnocchi/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['gnocchi-api'] @@ -19,6 +20,7 @@ name: "gnocchi_metricd" volumes: - "{{ node_config_directory }}/gnocchi-metricd/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "gnocchi:/var/lib/gnocchi/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['gnocchi-metricd'] @@ -31,6 +33,7 @@ name: "gnocchi_statsd" volumes: - "{{ node_config_directory }}/gnocchi-statsd/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "gnocchi:/var/lib/gnocchi/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['gnocchi-statsd'] diff --git a/ansible/roles/kuryr/tasks/bootstrap.yml b/ansible/roles/kuryr/tasks/bootstrap.yml index fff80d223a..72a30a5b4c 100644 --- a/ansible/roles/kuryr/tasks/bootstrap.yml +++ b/ansible/roles/kuryr/tasks/bootstrap.yml @@ -14,5 +14,6 @@ restart_policy: "never" volumes: - "{{ node_config_directory }}/kuryr/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "/run:/run" - "/usr/lib/docker:/usr/lib/docker" diff --git a/ansible/roles/kuryr/tasks/start.yml b/ansible/roles/kuryr/tasks/start.yml index f48865550c..d5a4896a6f 100644 --- a/ansible/roles/kuryr/tasks/start.yml +++ b/ansible/roles/kuryr/tasks/start.yml @@ -13,6 +13,7 @@ privileged: True volumes: - "{{ node_config_directory }}/kuryr/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "/run:/run" - "/usr/lib/docker:/usr/lib/docker" when: inventory_hostname in groups['compute'] diff --git a/ansible/roles/sahara/tasks/start.yml b/ansible/roles/sahara/tasks/start.yml index 5b521ebc60..bb7b22d6bf 100644 --- a/ansible/roles/sahara/tasks/start.yml +++ b/ansible/roles/sahara/tasks/start.yml @@ -7,6 +7,7 @@ name: "sahara_api" volumes: - "{{ node_config_directory }}/sahara-api/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "sahara:/var/lib/sahara/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['sahara-api'] @@ -19,6 +20,7 @@ name: "sahara_engine" volumes: - "{{ node_config_directory }}/sahara-engine/:{{ container_config_directory }}/:ro" + - "/etc/localtime:/etc/localtime:ro" - "sahara:/var/lib/sahara/" - "kolla_logs:/var/log/kolla/" when: inventory_hostname in groups['sahara-engine']