|
25 | 25 | $database_host = '', |
26 | 26 | $database_path = $zabbix::params::database_path, |
27 | 27 | ) inherits zabbix::params { |
28 | | - |
29 | 28 | assert_private() |
30 | 29 |
|
31 | 30 | # |
|
99 | 98 | } |
100 | 99 |
|
101 | 100 | case $zabbix_type { |
102 | | - 'proxy': { |
103 | | - exec { 'zabbix_proxy_create.sql': |
104 | | - command => $zabbix_proxy_create_sql, |
105 | | - path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
106 | | - unless => 'test -f /etc/zabbix/.schema.done', |
107 | | - provider => 'shell', |
108 | | - require => [ |
109 | | - Exec['update_pgpass'], |
110 | | - ], |
111 | | - } |
| 101 | + 'proxy': { |
| 102 | + exec { 'zabbix_proxy_create.sql': |
| 103 | + command => $zabbix_proxy_create_sql, |
| 104 | + path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
| 105 | + unless => 'test -f /etc/zabbix/.schema.done', |
| 106 | + provider => 'shell', |
| 107 | + require => Exec['update_pgpass'], |
112 | 108 | } |
113 | | - 'server': { |
114 | | - exec { 'zabbix_server_create.sql': |
115 | | - command => $zabbix_server_create_sql, |
116 | | - path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
117 | | - unless => 'test -f /etc/zabbix/.schema.done', |
118 | | - provider => 'shell', |
119 | | - require => [ |
120 | | - Exec['update_pgpass'], |
121 | | - ], |
122 | | - } |
123 | | - -> exec { 'zabbix_server_images.sql': |
124 | | - command => $zabbix_server_images_sql, |
125 | | - path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
126 | | - unless => 'test -f /etc/zabbix/.images.done', |
127 | | - provider => 'shell', |
128 | | - require => [ |
129 | | - Exec['update_pgpass'], |
130 | | - ], |
131 | | - } |
132 | | - -> exec { 'zabbix_server_data.sql': |
133 | | - command => $zabbix_server_data_sql, |
134 | | - path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
135 | | - unless => 'test -f /etc/zabbix/.data.done', |
136 | | - provider => 'shell', |
137 | | - require => [ |
138 | | - Exec['update_pgpass'], |
139 | | - ], |
140 | | - } |
| 109 | + } |
| 110 | + 'server': { |
| 111 | + exec { 'zabbix_server_create.sql': |
| 112 | + command => $zabbix_server_create_sql, |
| 113 | + path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
| 114 | + unless => 'test -f /etc/zabbix/.schema.done', |
| 115 | + provider => 'shell', |
| 116 | + require => Exec['update_pgpass'], |
| 117 | + } |
| 118 | + -> exec { 'zabbix_server_images.sql': |
| 119 | + command => $zabbix_server_images_sql, |
| 120 | + path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
| 121 | + unless => 'test -f /etc/zabbix/.images.done', |
| 122 | + provider => 'shell', |
| 123 | + require => Exec['update_pgpass'], |
141 | 124 | } |
| 125 | + -> exec { 'zabbix_server_data.sql': |
| 126 | + command => $zabbix_server_data_sql, |
| 127 | + path => "/bin:/usr/bin:/usr/local/sbin:/usr/local/bin:${database_path}", |
| 128 | + unless => 'test -f /etc/zabbix/.data.done', |
| 129 | + provider => 'shell', |
| 130 | + require => Exec['update_pgpass'], |
| 131 | + } |
| 132 | + } |
142 | 133 | default: { |
143 | 134 | fail 'We do not work.' |
144 | 135 | } |
|
0 commit comments