minor updates on playbook
This commit is contained in:
parent
5247ad9dfa
commit
57d5797c84
12
basics.yaml
12
basics.yaml
|
|
@ -3,6 +3,12 @@
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
use: systemd
|
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
|
- name: download asc and cephadm for ceph
|
||||||
get_url:
|
get_url:
|
||||||
url: "{{ item.url }}"
|
url: "{{ item.url }}"
|
||||||
|
|
@ -67,12 +73,6 @@
|
||||||
notify:
|
notify:
|
||||||
- ceph-rollout:restart_sshd
|
- 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
|
- name: set root password
|
||||||
user:
|
user:
|
||||||
name: root
|
name: root
|
||||||
|
|
|
||||||
7
host_vars/node01.gprs.ceph.cfo
Normal file
7
host_vars/node01.gprs.ceph.cfo
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
addr: 10.50.8.88
|
||||||
|
location:
|
||||||
|
root: default
|
||||||
|
labels:
|
||||||
|
- mon
|
||||||
|
- osd
|
||||||
|
- mgr
|
||||||
7
host_vars/node01.gprs.ceph.cfo.bkp
Normal file
7
host_vars/node01.gprs.ceph.cfo.bkp
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
addr: 10.50.8.97
|
||||||
|
location:
|
||||||
|
root: default
|
||||||
|
labels:
|
||||||
|
- mon
|
||||||
|
- osd
|
||||||
|
- mgr
|
||||||
5
host_vars/node02.gprs.ceph.cfo
Normal file
5
host_vars/node02.gprs.ceph.cfo
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
addr: 10.50.8.89
|
||||||
|
location:
|
||||||
|
root: default
|
||||||
|
labels:
|
||||||
|
- osd
|
||||||
5
host_vars/node02.gprs.ceph.cfo.bkp
Normal file
5
host_vars/node02.gprs.ceph.cfo.bkp
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
addr: 10.50.8.98
|
||||||
|
location:
|
||||||
|
root: default
|
||||||
|
labels:
|
||||||
|
- osd
|
||||||
5
host_vars/node03.gprs.ceph.cfo
Normal file
5
host_vars/node03.gprs.ceph.cfo
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
addr: 10.50.8.90
|
||||||
|
location:
|
||||||
|
root: default
|
||||||
|
labels:
|
||||||
|
- osd
|
||||||
5
host_vars/node03.gprs.ceph.cfo.bkp
Normal file
5
host_vars/node03.gprs.ceph.cfo.bkp
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
addr: 10.50.8.99
|
||||||
|
location:
|
||||||
|
root: default
|
||||||
|
labels:
|
||||||
|
- osd
|
||||||
22
multi-1st.yaml
Normal file
22
multi-1st.yaml
Normal 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
22
multi-2nd.yaml
Normal 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
|
||||||
|
|
@ -12,7 +12,7 @@
|
||||||
grafana_tag: "9.4.12"
|
grafana_tag: "9.4.12"
|
||||||
alertmanager_tag: "v0.27.0"
|
alertmanager_tag: "v0.27.0"
|
||||||
ntp_server: "ntp.int.nt-com.ru"
|
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"
|
# cluster_network: "10.63.0.0/24"
|
||||||
public_network: "10.50.8.0/24"
|
public_network: "10.50.8.0/24"
|
||||||
CEPH_RELEASE: '19.2.0'
|
CEPH_RELEASE: '19.2.0'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user