|
62 | 62 | end |
63 | 63 |
|
64 | 64 | it { is_expected.to compile.with_all_deps } |
65 | | - it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:5432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass') } |
| 65 | + it { is_expected.to contain_exec('update_pgpass').with_command(sensitive('echo node01.example.com:5432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass')) } |
66 | 66 | 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 && psql -h 'node01.example.com' -U 'zabbix-server' -p 5432 -d 'zabbix-server' -f #{sql_server} && touch /etc/zabbix/.schema.done") } |
67 | 67 | it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } |
68 | 68 | it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } |
|
83 | 83 | end |
84 | 84 |
|
85 | 85 | it { is_expected.to compile.with_all_deps } |
86 | | - it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:5432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass') } |
| 86 | + it { is_expected.to contain_exec('update_pgpass').with_command(sensitive('echo node01.example.com:5432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass')) } |
87 | 87 | 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 && psql -h 'node01.example.com' -U 'zabbix-server' -p 5432 -d 'zabbix-server' -f #{sql_server} && touch /etc/zabbix/.schema.done") } |
88 | 88 | it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } |
89 | 89 | it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } |
|
105 | 105 | end |
106 | 106 |
|
107 | 107 | it { is_expected.to compile.with_all_deps } |
108 | | - it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:6432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass') } |
| 108 | + it { is_expected.to contain_exec('update_pgpass').with_command(sensitive('echo node01.example.com:6432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass')) } |
109 | 109 | 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 && psql -h 'node01.example.com' -U 'zabbix-server' -p 6432 -d 'zabbix-server' -f #{sql_server} && touch /etc/zabbix/.schema.done") } |
110 | 110 | it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } |
111 | 111 | it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } |
|
127 | 127 | end |
128 | 128 |
|
129 | 129 | it { is_expected.to compile.with_all_deps } |
130 | | - it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:5432:zabbix-proxy:zabbix-proxy:zabbix-proxy >> /root/.pgpass') } |
| 130 | + it { is_expected.to contain_exec('update_pgpass').with_command(sensitive('echo node01.example.com:5432:zabbix-proxy:zabbix-proxy:zabbix-proxy >> /root/.pgpass')) } |
131 | 131 |
|
132 | 132 | if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') < 0 |
133 | 133 | 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 && psql -h 'node01.example.com' -U 'zabbix-proxy' -p 5432 -d 'zabbix-proxy' -f schema.sql && touch /etc/zabbix/.schema.done") } |
|
150 | 150 | end |
151 | 151 |
|
152 | 152 | it { is_expected.to compile.with_all_deps } |
153 | | - it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:5432:zabbix-proxy:zabbix-proxy:zabbix-proxy >> /root/.pgpass') } |
| 153 | + #it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:5432:zabbix-proxy:zabbix-proxy:zabbix-proxy >> /root/.pgpass') } |
| 154 | + it { is_expected.to contain_exec('update_pgpass').with_command(sensitive('echo node01.example.com:5432:zabbix-proxy:zabbix-proxy:zabbix-proxy >> /root/.pgpass')) } |
154 | 155 |
|
155 | 156 | if Puppet::Util::Package.versioncmp(zabbix_version, '6.0') < 0 |
156 | 157 | 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 && psql -h 'node01.example.com' -U 'zabbix-proxy' -p 5432 -d 'zabbix-proxy' -f schema.sql && touch /etc/zabbix/.schema.done") } |
|
0 commit comments