diff --git a/basics.yaml b/basics.yaml index 1862bc6..c4b26e5 100644 --- a/basics.yaml +++ b/basics.yaml @@ -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 diff --git a/host_vars/node01.gprs.ceph.cfo b/host_vars/node01.gprs.ceph.cfo new file mode 100644 index 0000000..df40537 --- /dev/null +++ b/host_vars/node01.gprs.ceph.cfo @@ -0,0 +1,7 @@ +addr: 10.50.8.88 +location: + root: default +labels: + - mon + - osd + - mgr \ No newline at end of file diff --git a/host_vars/node01.gprs.ceph.cfo.bkp b/host_vars/node01.gprs.ceph.cfo.bkp new file mode 100644 index 0000000..ae6779e --- /dev/null +++ b/host_vars/node01.gprs.ceph.cfo.bkp @@ -0,0 +1,7 @@ +addr: 10.50.8.97 +location: + root: default +labels: + - mon + - osd + - mgr \ No newline at end of file diff --git a/host_vars/node02.gprs.ceph.cfo b/host_vars/node02.gprs.ceph.cfo new file mode 100644 index 0000000..0bce9ca --- /dev/null +++ b/host_vars/node02.gprs.ceph.cfo @@ -0,0 +1,5 @@ +addr: 10.50.8.89 +location: + root: default +labels: + - osd diff --git a/host_vars/node02.gprs.ceph.cfo.bkp b/host_vars/node02.gprs.ceph.cfo.bkp new file mode 100644 index 0000000..4031469 --- /dev/null +++ b/host_vars/node02.gprs.ceph.cfo.bkp @@ -0,0 +1,5 @@ +addr: 10.50.8.98 +location: + root: default +labels: + - osd diff --git a/host_vars/node03.gprs.ceph.cfo b/host_vars/node03.gprs.ceph.cfo new file mode 100644 index 0000000..8655a52 --- /dev/null +++ b/host_vars/node03.gprs.ceph.cfo @@ -0,0 +1,5 @@ +addr: 10.50.8.90 +location: + root: default +labels: + - osd diff --git a/host_vars/node03.gprs.ceph.cfo.bkp b/host_vars/node03.gprs.ceph.cfo.bkp new file mode 100644 index 0000000..004ea63 --- /dev/null +++ b/host_vars/node03.gprs.ceph.cfo.bkp @@ -0,0 +1,5 @@ +addr: 10.50.8.99 +location: + root: default +labels: + - osd diff --git a/multi-1st.yaml b/multi-1st.yaml new file mode 100644 index 0000000..6125b6a --- /dev/null +++ b/multi-1st.yaml @@ -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 \ No newline at end of file diff --git a/multi-2nd.yaml b/multi-2nd.yaml new file mode 100644 index 0000000..1c03183 --- /dev/null +++ b/multi-2nd.yaml @@ -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 \ No newline at end of file diff --git a/pre-deploy.yml b/pre-deploy.yml index edb89fd..8a38c32 100644 --- a/pre-deploy.yml +++ b/pre-deploy.yml @@ -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'