Skip to content

Commit 4718554

Browse files
committed
prepare doc for tag 0.3.0 [skip ci]
1 parent f966cfd commit 4718554

File tree

1 file changed

+77
-2
lines changed

1 file changed

+77
-2
lines changed

doc/getting-started.md

Lines changed: 77 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,15 @@ ansible-galaxy collection install icinga.icinga
2828

2929
Or pull the collection from the git. (Only useable with Ansible version 2.10.9)
3030
```
31-
ansible-galaxy collection install git+https://github.com/Icinga/ansible-collection-icinga.git,0.2.1
31+
ansible-galaxy collection install git+https://github.com/Icinga/ansible-collection-icinga.git,0.3.0
3232
```
3333

3434
Pre 2.10 you can also clone the repository, manually build and install the collection.
3535

3636
```
3737
git clone https://github.com/Icinga/ansible-collection-icinga.git
3838
ansible-galaxy collection build ansible-collection-icinga
39-
ansible-galaxy collection install icinga-icinga-0.2.1.tar.gz
39+
ansible-galaxy collection install icinga-icinga-0.3.0.tar.gz
4040
```
4141

4242
## Example Playbooks
@@ -114,3 +114,78 @@ This is an example on how to install an Icinga 2 agent instance.
114114
- icinga.icinga.repos
115115
- icinga.icinga.icinga2
116116
```
117+
118+
This is a example on how to install Icinga 2 server with Icinga Web 2 and Icinga DB.
119+
120+
```
121+
- name: Converge
122+
hosts: all
123+
vars:
124+
icingaweb2_db:
125+
type: mysql
126+
name: icingaweb
127+
host: 127.0.0.1
128+
user: icingaweb
129+
password: icingaweb
130+
icingaweb2_database_import_schema: true
131+
132+
icingadb_database_type: mysql
133+
icingadb_database_host: localhost
134+
icingadb_database_user: icingadb
135+
icingadb_database_password: icingadb
136+
icingadb_database_import_schema: true
137+
138+
# Mysql Configuration on Ubuntu2204
139+
mysql_innodb_file_format: barracuda
140+
mysql_innodb_large_prefix: 1
141+
mysql_innodb_file_per_table: 1
142+
mysql_packages:
143+
- mariadb-client
144+
- mariadb-server
145+
- python3-mysqldb
146+
mysql_users:
147+
- name: icingaweb
148+
host: "%"
149+
password: icingaweb
150+
priv: "icingaweb.*:ALL"
151+
- name: icingadb
152+
host: "%"
153+
password: icingadb
154+
priv: "icingadb.*:ALL"
155+
mysql_databases:
156+
- name: icingadb
157+
- name: icingaweb
158+
159+
160+
icinga2_confd: false
161+
icinga2_features:
162+
- name: icingadb
163+
host: 127.0.0.1
164+
- name: notification
165+
- name: checker
166+
- name: mainlog
167+
- name: api
168+
ca_host: none
169+
endpoints:
170+
- name: "{{ ansible_fqdn }}"
171+
zones:
172+
- name: "main"
173+
endpoints:
174+
- "{{ ansible_fqdn }}"
175+
pre_tasks:
176+
- ansible.builtin.include_role:
177+
name: icinga.icinga.repos
178+
# Geerlingguy mysql role to configure the databases.
179+
- ansible.builtin.include_role:
180+
name: geerlingguy.mysql
181+
- ansible.builtin.include_role:
182+
name: icinga.icinga.icinga2
183+
- ansible.builtin.include_role:
184+
name: icinga.icinga.icingadb
185+
- ansible.builtin.include_role:
186+
name: icinga.icinga.icingadb_redis
187+
188+
post_tasks:
189+
- ansible.builtin.include_role:
190+
name: icinga.icinga.icingaweb2
191+
```

0 commit comments

Comments
 (0)