diff options
Diffstat (limited to 'ansible/roles/influxdb')
| -rw-r--r-- | ansible/roles/influxdb/defaults/main.yml | 9 | ||||
| -rw-r--r-- | ansible/roles/influxdb/meta/main.yml | 3 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/config.yml | 23 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/deploy.yml | 4 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/main.yml | 2 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/precheck.yml | 1 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/pull.yml | 7 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/reconfigure.yml | 47 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/start.yml | 13 | ||||
| -rw-r--r-- | ansible/roles/influxdb/tasks/upgrade.yml | 4 | ||||
| -rw-r--r-- | ansible/roles/influxdb/templates/influxdb.conf.j2 | 57 | ||||
| -rw-r--r-- | ansible/roles/influxdb/templates/influxdb.json.j2 | 23 |
12 files changed, 0 insertions, 193 deletions
diff --git a/ansible/roles/influxdb/defaults/main.yml b/ansible/roles/influxdb/defaults/main.yml deleted file mode 100644 index 4633af3e2..000000000 --- a/ansible/roles/influxdb/defaults/main.yml +++ /dev/null @@ -1,9 +0,0 @@ ---- -project_name: "influxdb" - -#################### -# Docker -#################### -influxdb_image: "{{ docker_registry ~ '/' if docker_registry else '' }}{{ docker_namespace }}/{{ kolla_base_distro }}-{{ kolla_install_type }}-influxdb" -influxdb_tag: "{{ openstack_release }}" -influxdb_image_full: "{{ influxdb_image }}:{{ influxdb_tag }}" diff --git a/ansible/roles/influxdb/meta/main.yml b/ansible/roles/influxdb/meta/main.yml deleted file mode 100644 index 6b4fff8fe..000000000 --- a/ansible/roles/influxdb/meta/main.yml +++ /dev/null @@ -1,3 +0,0 @@ ---- -dependencies: - - { role: common } diff --git a/ansible/roles/influxdb/tasks/config.yml b/ansible/roles/influxdb/tasks/config.yml deleted file mode 100644 index f9b7544f8..000000000 --- a/ansible/roles/influxdb/tasks/config.yml +++ /dev/null @@ -1,23 +0,0 @@ ---- -- name: Ensuring config directories exist - file: - path: "{{ node_config_directory }}/influxdb" - state: "directory" - recurse: yes - when: inventory_hostname in groups['influxdb'] - -- name: Copying over config.json files - template: - src: "{{ item }}.json.j2" - dest: "{{ node_config_directory }}/influxdb/config.json" - when: inventory_hostname in groups['influxdb'] - with_items: - - influxdb - -- name: Copying over influxdb config file - template: - src: "{{ role_path }}/templates/{{ item }}.conf.j2" - dest: "{{ node_config_directory }}/influxdb/influxdb.conf" - when: inventory_hostname in groups['influxdb'] - with_items: - - influxdb diff --git a/ansible/roles/influxdb/tasks/deploy.yml b/ansible/roles/influxdb/tasks/deploy.yml deleted file mode 100644 index 1f16915ad..000000000 --- a/ansible/roles/influxdb/tasks/deploy.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- include: config.yml - -- include: start.yml diff --git a/ansible/roles/influxdb/tasks/main.yml b/ansible/roles/influxdb/tasks/main.yml deleted file mode 100644 index b017e8b4a..000000000 --- a/ansible/roles/influxdb/tasks/main.yml +++ /dev/null @@ -1,2 +0,0 @@ ---- -- include: "{{ action }}.yml" diff --git a/ansible/roles/influxdb/tasks/precheck.yml b/ansible/roles/influxdb/tasks/precheck.yml deleted file mode 100644 index ed97d539c..000000000 --- a/ansible/roles/influxdb/tasks/precheck.yml +++ /dev/null @@ -1 +0,0 @@ ---- diff --git a/ansible/roles/influxdb/tasks/pull.yml b/ansible/roles/influxdb/tasks/pull.yml deleted file mode 100644 index c611eebd4..000000000 --- a/ansible/roles/influxdb/tasks/pull.yml +++ /dev/null @@ -1,7 +0,0 @@ ---- -- name: Pulling influxdb image - kolla_docker: - action: "pull_image" - common_options: "{{ docker_common_options }}" - image: "{{ influxdb_image_full }}" - when: inventory_hostname in groups['influxdb'] diff --git a/ansible/roles/influxdb/tasks/reconfigure.yml b/ansible/roles/influxdb/tasks/reconfigure.yml deleted file mode 100644 index 6049df474..000000000 --- a/ansible/roles/influxdb/tasks/reconfigure.yml +++ /dev/null @@ -1,47 +0,0 @@ ---- -- name: Ensuring the containers up - kolla_docker: - name: "influxdb" - action: "get_container_state" - register: container_state - failed_when: container_state.Running == false - when: inventory_hostname in groups['influxdb'] - -- include: config.yml - -- name: Check the configs - command: docker exec influxdb /usr/local/bin/kolla_set_configs --check - changed_when: false - failed_when: false - register: check_results - when: inventory_hostname in groups['influxdb'] - -# 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: "influxdb" - action: "get_container_env" - register: container_envs - when: inventory_hostname in groups['influxdb'] - -- name: Remove the containers - kolla_docker: - name: "influxdb" - action: "remove_container" - register: remove_containers - when: - - config_strategy == "COPY_ONCE" - - inventory_hostname in groups['influxdb'] - -- include: start.yml - when: remove_containers.changed - -- name: Restart containers - kolla_docker: - name: "influxdb" - action: "restart_container" - when: - - config_strategy == 'COPY_ALWAYS' - - inventory_hostname in groups['influxdb'] diff --git a/ansible/roles/influxdb/tasks/start.yml b/ansible/roles/influxdb/tasks/start.yml deleted file mode 100644 index 1a98e7123..000000000 --- a/ansible/roles/influxdb/tasks/start.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -- name: Starting influxdb container - kolla_docker: - action: "start_container" - common_options: "{{ docker_common_options }}" - image: "{{ influxdb_image_full }}" - name: "influxdb" - volumes: - - "{{ node_config_directory }}/influxdb/:{{ container_config_directory }}/:ro" - - "/etc/localtime:/etc/localtime:ro" - - "influxdb:/var/lib/influxdb" - - "kolla_logs:/var/log/kolla/" - when: inventory_hostname in groups['influxdb'] diff --git a/ansible/roles/influxdb/tasks/upgrade.yml b/ansible/roles/influxdb/tasks/upgrade.yml deleted file mode 100644 index 1f16915ad..000000000 --- a/ansible/roles/influxdb/tasks/upgrade.yml +++ /dev/null @@ -1,4 +0,0 @@ ---- -- include: config.yml - -- include: start.yml diff --git a/ansible/roles/influxdb/templates/influxdb.conf.j2 b/ansible/roles/influxdb/templates/influxdb.conf.j2 deleted file mode 100644 index cded6fbe6..000000000 --- a/ansible/roles/influxdb/templates/influxdb.conf.j2 +++ /dev/null @@ -1,57 +0,0 @@ -reporting-disabled = false -[logging] -level = "info" -file = "/var/log/kolla/influxdb/influxdb.log" -[meta] - dir = "/var/lib/influxdb/meta" - retention-autocreate = true - logging-enabled = true - pprof-enabled = false - lease-duration = "1m0s" -[data] - enabled = true - dir = "/var/lib/influxdb/data" - wal-dir = "/var/lib/influxdb/wal" - wal-logging-enabled = true - data-logging-enabled = true -[cluster] - shard-writer-timeout = "5s" - write-timeout = "10s" - max-concurrent-queries = 0 - query-timeout = "0s" - max-select-point = 0 - max-select-series = 0 - max-select-buckets = 0 -[retention] - enabled = true - check-interval = "30m" -[shard-precreation] - enabled = true - check-interval = "10m" - advance-period = "30m" -[monitor] - store-enabled = true - store-database = "_internal" - store-interval = "10s" -[admin] - enabled = true - bind-address = "{{ api_interface_address }}:{{ influxdb_admin_port }}" - https-enabled = false -[http] - enabled = true - bind-address = "{{ api_interface_address }}:{{ influxdb_http_port }}" - auth-enabled = false - log-enabled = true - write-tracing = false - pprof-enabled = false - https-enabled = false - max-row-limit = 10000 -[[graphite]] - enabled = false -[[opentsdb]] - enabled = false -[[udp]] - enabled = false -[continuous_queries] - log-enabled = true - enabled = true diff --git a/ansible/roles/influxdb/templates/influxdb.json.j2 b/ansible/roles/influxdb/templates/influxdb.json.j2 deleted file mode 100644 index 3ffa2fe3a..000000000 --- a/ansible/roles/influxdb/templates/influxdb.json.j2 +++ /dev/null @@ -1,23 +0,0 @@ -{ - "command": "/usr/bin/influxd -config /etc/influxdb/influxdb.conf", - "config_files": [ - { - "source": "{{ container_config_directory }}/influxdb.conf", - "dest": "/etc/influxdb/influxdb.conf", - "owner": "influxdb", - "perm": "0600" - } - ], - "permissions": [ - { - "path": "/var/lib/influxdb", - "owner": "influxdb:influxdb", - "recurse": true - }, - { - "path": "/var/log/kolla/influxdb", - "owner": "influxdb:influxdb", - "recurse": true - } - ] -} |
