diff --git a/basics.yaml b/basics.yaml index f121017..1862bc6 100644 --- a/basics.yaml +++ b/basics.yaml @@ -67,6 +67,11 @@ 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: diff --git a/grafana.yaml b/grafana.yaml new file mode 100644 index 0000000..609979a --- /dev/null +++ b/grafana.yaml @@ -0,0 +1,3 @@ +service_type: grafana +spec: + initial_admin_password: qweqwe \ No newline at end of file diff --git a/host_vars/node01.brbd.ceph.szfo.yaml b/host_vars/node01.gprs.ceph.ufo.yaml similarity index 100% rename from host_vars/node01.brbd.ceph.szfo.yaml rename to host_vars/node01.gprs.ceph.ufo.yaml diff --git a/host_vars/node02.brbd.ceph.szfo.yaml b/host_vars/node02.gprs.ceph.ufo.yaml similarity index 100% rename from host_vars/node02.brbd.ceph.szfo.yaml rename to host_vars/node02.gprs.ceph.ufo.yaml diff --git a/host_vars/node03.brbd.ceph.szfo.yaml b/host_vars/node03.gprs.ceph.ufo.yaml similarity index 100% rename from host_vars/node03.brbd.ceph.szfo.yaml rename to host_vars/node03.gprs.ceph.ufo.yaml diff --git a/inv.yaml b/inv.yaml index c014133..57614c3 100644 --- a/inv.yaml +++ b/inv.yaml @@ -1,22 +1,22 @@ ceph-nodes: hosts: - node01.brbd.ceph.szfo: + node01.gprs.ceph.ufo: ansible_host: 10.50.8.75 ansible_user: g10 ansible_ssh_pass: 12345 ansible_become_pass: 12345 - node02.brbd.ceph.szfo: + node02.gprs.ceph.ufo: ansible_host: 10.50.8.76 ansible_user: g10 ansible_ssh_pass: 12345 ansible_become_pass: 12345 - node03.brbd.ceph.szfo: + node03.gprs.ceph.ufo: ansible_host: 10.50.8.77 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 +# 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 555ccde..edb89fd 100644 --- a/pre-deploy.yml +++ b/pre-deploy.yml @@ -12,13 +12,14 @@ grafana_tag: "9.4.12" alertmanager_tag: "v0.27.0" ntp_server: "ntp.int.nt-com.ru" - first_mon_ip: "10.50.8.88" + 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' initial_dashboard_user: 'admin' initial_dashboard_password: 'qweqwe' allow_fqdn_hostname: 'true' + DNS_address: "10.50.8.51" tasks: - name: basic setups import_tasks: diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index a4cc315..0d3565d 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -53,8 +53,9 @@ PermitRootLogin yes #IgnoreRhosts yes # To disable tunneled clear text passwords, change to no here! -#PasswordAuthentication yes +PasswordAuthentication yes #PermitEmptyPasswords no +PermitRootLogin yes # Change to yes to enable challenge-response passwords (beware issues with # some PAM modules and threads)