|
58 | 58 |
|
59 | 59 | it { is_expected.to contain_class('zabbix::database::mysql') } |
60 | 60 | it { is_expected.to compile.with_all_deps } |
61 | | - it { is_expected.to contain_exec('zabbix_server_create.sql').with_command("cd #{path} && if [ -f #{sql_server}.gz ]; then gunzip -f #{sql_server}.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-server' -p'zabbix-server' -P 3306 -D 'zabbix-server' < #{sql_server} && touch /etc/zabbix/.schema.done") } |
| 61 | + it { is_expected.to contain_exec('zabbix_server_create.sql').with_command("cd #{path} && if [ -f #{sql_server}.gz ]; then gunzip -f #{sql_server}.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-server' -p\"${database_password}\" -P 3306 -D 'zabbix-server' < #{sql_server} && touch /etc/zabbix/.schema.done") } |
62 | 62 | it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } |
63 | 63 | it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } |
64 | 64 | end |
|
77 | 77 |
|
78 | 78 | it { is_expected.to contain_class('zabbix::database::mysql') } |
79 | 79 | it { is_expected.to compile.with_all_deps } |
80 | | - it { is_expected.to contain_exec('zabbix_server_create.sql').with_command("cd #{path} && if [ -f #{sql_server}.gz ]; then gunzip -f #{sql_server}.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-server' -p'zabbix-server' -D 'zabbix-server' < #{sql_server} && touch /etc/zabbix/.schema.done") } |
| 80 | + it { is_expected.to contain_exec('zabbix_server_create.sql').with_command("cd #{path} && if [ -f #{sql_server}.gz ]; then gunzip -f #{sql_server}.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-server' -p\"${database_password}\" -D 'zabbix-server' < #{sql_server} && touch /etc/zabbix/.schema.done") } |
81 | 81 | it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } |
82 | 82 | it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } |
83 | 83 | end |
|
101 | 101 | it { is_expected.to compile.with_all_deps } |
102 | 102 |
|
103 | 103 | if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') < 0 |
104 | | - it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && if [ -f schema.sql.gz ]; then gunzip -f schema.sql.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p'zabbix-proxy' -P 3306 -D 'zabbix-proxy' < schema.sql && touch /etc/zabbix/.schema.done") } |
| 104 | + it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && if [ -f schema.sql.gz ]; then gunzip -f schema.sql.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p\"${database_password}\" -P 3306 -D 'zabbix-proxy' < schema.sql && touch /etc/zabbix/.schema.done") } |
105 | 105 | else |
106 | | - it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p'zabbix-proxy' -P 3306 -D 'zabbix-proxy' < proxy.sql && touch /etc/zabbix/.schema.done") } |
| 106 | + it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p\"${database_password}\" -P 3306 -D 'zabbix-proxy' < proxy.sql && touch /etc/zabbix/.schema.done") } |
107 | 107 | end |
108 | 108 | end |
109 | 109 |
|
|
123 | 123 | it { is_expected.to compile.with_all_deps } |
124 | 124 |
|
125 | 125 | if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') < 0 |
126 | | - it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && if [ -f schema.sql.gz ]; then gunzip -f schema.sql.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p'zabbix-proxy' -D 'zabbix-proxy' < schema.sql && touch /etc/zabbix/.schema.done") } |
| 126 | + it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && if [ -f schema.sql.gz ]; then gunzip -f schema.sql.gz ; fi && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p\"${database_password}\" -D 'zabbix-proxy' < schema.sql && touch /etc/zabbix/.schema.done") } |
127 | 127 | else |
128 | | - it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p'zabbix-proxy' -D 'zabbix-proxy' < proxy.sql && touch /etc/zabbix/.schema.done") } |
| 128 | + it { is_expected.to contain_exec('zabbix_proxy_create.sql').with_command("cd #{path} && mysql -h 'rspec.puppet.com' -u 'zabbix-proxy' -p\"${database_password}\" -D 'zabbix-proxy' < proxy.sql && touch /etc/zabbix/.schema.done") } |
129 | 129 | end |
130 | 130 | end |
131 | 131 | end |
|
0 commit comments