minor updates on playbook

This commit is contained in:
a.pivkin 2024-12-27 10:52:05 +03:00
parent 5247ad9dfa
commit 57d5797c84
10 changed files with 85 additions and 7 deletions

View File

@ -3,6 +3,12 @@
name: "{{ inventory_hostname }}"
use: systemd
- name: set up DNS
lineinfile:
path: /etc/resolv.conf
search_string: 'nameserver 10.50.4.8'
line: "nameserver {{ DNS_address }}"
- name: download asc and cephadm for ceph
get_url:
url: "{{ item.url }}"
@ -67,12 +73,6 @@
notify:
- ceph-rollout:restart_sshd
- name: set up DNS
lineinfile:
path: /etc/resolv.conf
search_string: 'nameserver 10.50.4.8'
line: "{{ DNS_address }}"
- name: set root password
user:
name: root

View File

@ -0,0 +1,7 @@
addr: 10.50.8.88
location:
root: default
labels:
- mon
- osd
- mgr

View File

@ -0,0 +1,7 @@
addr: 10.50.8.97
location:
root: default
labels:
- mon
- osd
- mgr

View File

@ -0,0 +1,5 @@
addr: 10.50.8.89
location:
root: default
labels:
- osd

View File

@ -0,0 +1,5 @@
addr: 10.50.8.98
location:
root: default
labels:
- osd

View File

@ -0,0 +1,5 @@
addr: 10.50.8.90
location:
root: default
labels:
- osd

View File

@ -0,0 +1,5 @@
addr: 10.50.8.99
location:
root: default
labels:
- osd

22
multi-1st.yaml Normal file
View File

@ -0,0 +1,22 @@
ceph-nodes:
hosts:
node01.gprs.ceph.cfo:
ansible_host: 10.50.8.88
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
node02.gprs.ceph.cfo:
ansible_host: 10.50.8.89
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
node03.gprs.ceph.cfo:
ansible_host: 10.50.8.90
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
# ceph-client:
# ansible_host: 10.50.8.91
# ansible_user: g10
# ansible_ssh_pass: 12345
# ansible_become_pass: 12345

22
multi-2nd.yaml Normal file
View File

@ -0,0 +1,22 @@
ceph-nodes:
hosts:
node01.gprs.ceph.cfo.bkp:
ansible_host: 10.50.8.97
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
node02.gprs.ceph.cfo.bkp:
ansible_host: 10.50.8.98
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
node03.gprs.ceph.cfo.bkp:
ansible_host: 10.50.8.99
ansible_user: g10
ansible_ssh_pass: 12345
ansible_become_pass: 12345
# ceph-client:
# ansible_host: 10.50.8.91
# ansible_user: g10
# ansible_ssh_pass: 12345
# ansible_become_pass: 12345

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.75"
first_mon_ip: "10.50.8.97"
# cluster_network: "10.63.0.0/24"
public_network: "10.50.8.0/24"
CEPH_RELEASE: '19.2.0'