shitty settings updates on MTS cluster

This commit is contained in:
a.pivkin 2024-12-17 12:01:47 +03:00
parent 716d315cdb
commit 072536a895
8 changed files with 2854 additions and 16 deletions

View File

@ -49,12 +49,30 @@
# - { name: "ceph.conf.j2", dest: "/root/ceph.conf" }
- { name: "cluster_spec.yml.j2", dest: "/root/cluster_spec.yml" }
- { name: "initial-ceph.j2", dest: "/root/initial-ceph.conf" }
- { name: "sshd_config.j2", dest: "/etc/ssh/sshd_config"}
# - { name: "sshd_config.j2", dest: "/etc/ssh/sshd_config"}
run_once: true
delegate_to: "{{ ansible_play_hosts[0] }}"
# notify:
# - ceph-rollout:restart_sshd
- name: Templating sshd config to enable password and root
template:
src: "{{ item.name }}"
dest: "{{ item.dest }}"
trim_blocks: true
lstrip_blocks: true
loop:
- { name: "sshd_config.j2", dest: "/etc/ssh/sshd_config"}
notify:
- ceph-rollout:restart_sshd
- name: set root password
user:
name: root
password: "{{ '12345' | password_hash('sha512') }}"
# UNCOMMENT ONLY IN CASE OF NO ACCESS TO REPOS AND CANNOT DOWNLOAD CEPHADM
# - name: copy onto target host
# copy:

View File

@ -1,4 +1,4 @@
addr: 10.52.37.14
addr: 10.50.8.75
location:
root: default
labels:

View File

@ -1,7 +1,7 @@
addr: 10.52.37.15
addr: 10.50.8.76
location:
root: default
labels:
- mon
# - mon
- osd
- mgr
# - mgr

View File

@ -1,6 +1,6 @@
addr: 10.52.37.16
addr: 10.50.8.77
location:
root: default
labels:
- mon
# - mon
- osd

View File

@ -1,17 +1,17 @@
ceph-nodes:
hosts:
ceph-node01:
ansible_host: 10.50.8.51
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
ceph-node02:
node01.brbd.ceph.szfo:
ansible_host: 10.50.8.75
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
ceph-node03:
node02.brbd.ceph.szfo:
ansible_host: 10.50.8.76
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
node03.brbd.ceph.szfo:
ansible_host: 10.50.8.77
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345

2820
kek Normal file

File diff suppressed because it is too large Load Diff

View File

@ -12,7 +12,7 @@
grafana_tag: "9.4.12"
alertmanager_tag: "v0.27.0"
ntp_server: "ntp.int.nt-com.ru"
first_mon_ip: "10.50.8.51"
first_mon_ip: "10.50.8.75"
# cluster_network: "10.63.0.0/24"
public_network: "10.50.8.0/24"
CEPH_RELEASE: '19.2.0'

View File

@ -1,5 +1,5 @@
{% macro nodes() %}
{%- for _host in groups['all'] %}
{%- for _host in groups['ceph-nodes'] %}
service_type: host
addr: {{hostvars[_host]['addr']}}
hostname: {{ _host }}