Skip to content

Commit

Permalink
CE: добавлена роль центрального сервера (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
slothfk committed Aug 11, 2020
1 parent 49ce7be commit 77e4677
Show file tree
Hide file tree
Showing 6 changed files with 27 additions and 5 deletions.
Empty file modified etc/zabbix/scripts/1c_central_server.sh
100644 → 100755
Empty file.
12 changes: 8 additions & 4 deletions playbooks/install.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
---

- hosts: all

- hosts: 1c_servers
roles:
- general

- hosts: 1c_ws
roles:
- 1c_ws

- hosts: 1c_ws
- hosts: 1c_ls
roles:
- 1c_ws
- 1c_ls

- hosts: 1c_cs
roles:
- 1c_ls
- 1c_cs
2 changes: 1 addition & 1 deletion playbooks/inventory.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[1c_cs]
localhost

# Группа севреров лицензирования 1С Предприятия
# Группа серверов лицензирования 1С Предприятия
[1c_ls]
localhost

Expand Down
1 change: 1 addition & 0 deletions playbooks/roles/1c_cs/files/1c_central_server.sh
1 change: 1 addition & 0 deletions playbooks/roles/1c_cs/files/userparameter_1c-cs.conf
16 changes: 16 additions & 0 deletions playbooks/roles/1c_cs/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,18 @@
---
# tasks file for 1c_cs

- name: Copy userparameter for central server
copy:
src: userparameter_1c-cs.conf
dest: /etc/zabbix/zabbix_agentd.d/
owner: root
group: root
mode: 0644

- name: Copy main script for central server
copy:
src: 1c_central_server.sh
dest: /etc/zabbix/scripts/
owner: zabbix
group: zabbix
mode: 0755

0 comments on commit 77e4677

Please sign in to comment.