Skip to content

Commit

Permalink
PMM-12693 move clickhouse install back
Browse files Browse the repository at this point in the history
  • Loading branch information
ademidoff committed Nov 29, 2023
1 parent 37a6510 commit dd3ffe6
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 39 deletions.
32 changes: 32 additions & 0 deletions build/ansible/roles/pmm-images/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,38 @@
state: installed
enablerepo: "{{ pmm_client_repo_name }}"

- name: Remove ansible RPM if installed | EL9
when:
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
yum:
name: ansible
state: absent
ignore_errors: true

- name: Install ansible-core RPM | EL9
when:
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
yum:
name:
- ansible-core
- ansible-collection-community-general
- ansible-collection-community-postgresql
- ansible-collection-ansible-posix
state: present

- name: Update system packages EL9
when:
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
- not ansible_check_mode
yum:
name: "*"
state: latest
exclude:
- nginx*

- name: Disable pmm-agent service | Disable pmm-agent
when: ansible_virtualization_type != "docker"
service: name=pmm-agent state=stopped enabled=no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
path: "/usr/bin/clickhouse-odbc-bridge"
state: absent

- name: Change ownership for clickhouse directory
- name: Change ownership of clickhouse directory
file:
path: /srv/clickhouse/
owner: root
Expand Down
44 changes: 6 additions & 38 deletions update/ansible/playbook/tasks/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,6 @@
include_role:
name: postgres

- name: Install nginx
include_role:
name: nginx

- name: Install clickhouse
include_role:
name: clickhouse

# Set forking type to 'simple'
- name: Configure systemd
when: not is_docker
Expand Down Expand Up @@ -184,37 +176,13 @@
- name: Wait for pmm-managed
pause: seconds=10

- name: Remove ansible RPM if installed | EL9
when:
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
yum:
name: ansible
state: absent
ignore_errors: true

- name: Install ansible-core RPM | EL9
when:
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
yum:
name:
- ansible-core
- ansible-collection-community-general
- ansible-collection-community-postgresql
- ansible-collection-ansible-posix
state: present
- name: Install nginx
include_role:
name: nginx

- name: Update system packages EL9
when:
- ansible_distribution == 'OracleLinux' or ansible_distribution == 'AlmaLinux'
- ansible_distribution_major_version == '9'
- not ansible_check_mode
yum:
name: "*"
state: latest
exclude:
- nginx*
- name: Install clickhouse
include_role:
name: clickhouse

# Fix things that should be fixed before restarts.

Expand Down

0 comments on commit dd3ffe6

Please sign in to comment.