Some mistakes
This commit is contained in:
parent
9a4c4b7510
commit
f2f2b5440a
|
@ -9,8 +9,8 @@ munin_hosts:
|
||||||
munin_admin_user: "{{ vault_munin_admin_user }}"
|
munin_admin_user: "{{ vault_munin_admin_user }}"
|
||||||
munin_admin_password: "{{ vault_munin_admin_password }}"
|
munin_admin_password: "{{ vault_munin_admin_password }}"
|
||||||
|
|
||||||
private_key_munin_user_host: "{{ vault_private_key_munin_async_user_host }}"
|
private_key_munin_user_host: "{{ vault_private_key_munin_user_host }}"
|
||||||
public_key_munin__user_host: "{{ vault_public_key_munin_async_user_host }}"
|
public_key_munin_user_host: "{{ vault_public_key_munin_user_host }}"
|
||||||
|
|
||||||
munin_alerts: []
|
munin_alerts: []
|
||||||
|
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
---
|
---
|
||||||
- name: Create SSH directory for Munin user
|
- name: Create SSH directory for Munin user
|
||||||
file:
|
file:
|
||||||
path: "{{ /var/lib/munin }}"/.ssh
|
path: "{{ munin_home_directory + '/.ssh' }}"
|
||||||
state: directory
|
state: directory
|
||||||
owner: "{{ munin_user }}"
|
owner: "{{ munin_user }}"
|
||||||
group: "{{ munin_user }}"
|
group: "{{ munin_user }}"
|
||||||
mode: '0700'
|
mode: '0700'
|
||||||
- name: Deploy private key to access other Munin node
|
- name: Deploy private key to access other Munin node
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ /var/lib/munin }}"/.ssh/id_rsa
|
dest: "{{ munin_home_directory + '/.ssh/id_rsa' }}"
|
||||||
owner: "{{ munin_user }}"
|
owner: "{{ munin_user }}"
|
||||||
group: "{{ munin_user }}"
|
group: "{{ munin_user }}"
|
||||||
mode: '0600'
|
mode: '0600'
|
||||||
content: "{{ private_key_munin_async_user_host }}"
|
content: "{{ private_key_munin_user_host }}"
|
||||||
- name: Deploy public key to access other Munin node
|
- name: Deploy public key to access other Munin node
|
||||||
copy:
|
copy:
|
||||||
dest: "{{ /var/lib/munin }}"/.ssh/id_rsa.pub
|
dest: "{{ munin_home_directory + '/.ssh/id_rsa.pub' }}"
|
||||||
owner: "{{ munin_user }}"
|
owner: "{{ munin_user }}"
|
||||||
group: "{{ munin_user }}"
|
group: "{{ munin_user }}"
|
||||||
mode: '0644'
|
mode: '0644'
|
||||||
content: "{{ public_key_munin_async_user_host + '\n' }}"
|
content: "{{ public_key_munin_user_host + '\n' }}"
|
||||||
|
|
Loading…
Reference in a new issue