shitty settings updates on MTS cluster
This commit is contained in:
parent
716d315cdb
commit
072536a895
20
basics.yaml
20
basics.yaml
|
|
@ -49,12 +49,30 @@
|
||||||
# - { name: "ceph.conf.j2", dest: "/root/ceph.conf" }
|
# - { name: "ceph.conf.j2", dest: "/root/ceph.conf" }
|
||||||
- { name: "cluster_spec.yml.j2", dest: "/root/cluster_spec.yml" }
|
- { name: "cluster_spec.yml.j2", dest: "/root/cluster_spec.yml" }
|
||||||
- { name: "initial-ceph.j2", dest: "/root/initial-ceph.conf" }
|
- { 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
|
run_once: true
|
||||||
delegate_to: "{{ ansible_play_hosts[0] }}"
|
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:
|
notify:
|
||||||
- ceph-rollout:restart_sshd
|
- 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
|
# UNCOMMENT ONLY IN CASE OF NO ACCESS TO REPOS AND CANNOT DOWNLOAD CEPHADM
|
||||||
# - name: copy onto target host
|
# - name: copy onto target host
|
||||||
# copy:
|
# copy:
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
addr: 10.52.37.14
|
addr: 10.50.8.75
|
||||||
location:
|
location:
|
||||||
root: default
|
root: default
|
||||||
labels:
|
labels:
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
addr: 10.52.37.15
|
addr: 10.50.8.76
|
||||||
location:
|
location:
|
||||||
root: default
|
root: default
|
||||||
labels:
|
labels:
|
||||||
- mon
|
# - mon
|
||||||
- osd
|
- osd
|
||||||
- mgr
|
# - mgr
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
addr: 10.52.37.16
|
addr: 10.50.8.77
|
||||||
location:
|
location:
|
||||||
root: default
|
root: default
|
||||||
labels:
|
labels:
|
||||||
- mon
|
# - mon
|
||||||
- osd
|
- osd
|
||||||
14
inv.yaml
14
inv.yaml
|
|
@ -1,17 +1,17 @@
|
||||||
ceph-nodes:
|
ceph-nodes:
|
||||||
hosts:
|
hosts:
|
||||||
ceph-node01:
|
node01.brbd.ceph.szfo:
|
||||||
ansible_host: 10.50.8.51
|
|
||||||
ansible_user: g10
|
|
||||||
ansible_ssh_pass: 12345
|
|
||||||
ansible_become_pass: 12345
|
|
||||||
ceph-node02:
|
|
||||||
ansible_host: 10.50.8.75
|
ansible_host: 10.50.8.75
|
||||||
ansible_user: g10
|
ansible_user: g10
|
||||||
ansible_ssh_pass: 12345
|
ansible_ssh_pass: 12345
|
||||||
ansible_become_pass: 12345
|
ansible_become_pass: 12345
|
||||||
ceph-node03:
|
node02.brbd.ceph.szfo:
|
||||||
ansible_host: 10.50.8.76
|
ansible_host: 10.50.8.76
|
||||||
ansible_user: g10
|
ansible_user: g10
|
||||||
ansible_ssh_pass: 12345
|
ansible_ssh_pass: 12345
|
||||||
ansible_become_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
|
||||||
|
|
@ -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.51"
|
first_mon_ip: "10.50.8.75"
|
||||||
# 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'
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
{% macro nodes() %}
|
{% macro nodes() %}
|
||||||
{%- for _host in groups['all'] %}
|
{%- for _host in groups['ceph-nodes'] %}
|
||||||
service_type: host
|
service_type: host
|
||||||
addr: {{hostvars[_host]['addr']}}
|
addr: {{hostvars[_host]['addr']}}
|
||||||
hostname: {{ _host }}
|
hostname: {{ _host }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user