-
-
Couldn't load subscription status.
- Fork 233
Timescaledb #827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Timescaledb #827
Changes from all commits
9d1791e
a948c97
f5cb0fd
743d0f3
e8eebed
d1217a0
c55e23c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -113,6 +113,53 @@ | |||||
| it { is_expected.to contain_class('zabbix::params') } | ||||||
| end | ||||||
|
|
||||||
| describe "when zabbix_type is server and version is #{zabbix_version} and manage_database_timescale is true" do | ||||||
| let :params do | ||||||
| { | ||||||
| database_name: 'zabbix-server', | ||||||
| database_user: 'zabbix-server', | ||||||
| database_password: 'zabbix-server', | ||||||
| database_host: 'node01.example.com', | ||||||
| zabbix_type: 'server', | ||||||
| zabbix_version: zabbix_version, | ||||||
| manage_database_timescale: true | ||||||
| } | ||||||
| end | ||||||
|
|
||||||
| it { is_expected.to compile.with_all_deps } | ||||||
| it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:6432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass') } | ||||||
| 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") } | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Typo
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hey @bdeferme - just curious if you saw this. Asking because I came here looking for the timescaledb support |
||||||
| it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } | ||||||
| it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } | ||||||
| it { is_expected.to contain_file('/root/.pgpass') } | ||||||
| it { is_expected.to contain_class('zabbix::params') } | ||||||
| it { is_expected.to contain_exec('zabbix_timescaledb.sql').with_command("cd #{path} && psql -h 'node01.example.com' -U 'zabbix-server' -p 5432 -d 'zabbix-server' -f timescaledb.sql && touch /etc/zabbix/.timescaledb.done") } | ||||||
| end | ||||||
|
|
||||||
| describe "when zabbix_type is server and version is #{zabbix_version} and manage_database_timescale is true and custom port is defined" do | ||||||
| let :params do | ||||||
| { | ||||||
| database_name: 'zabbix-server', | ||||||
| database_user: 'zabbix-server', | ||||||
| database_password: 'zabbix-server', | ||||||
| database_host: 'node01.example.com', | ||||||
| database_port: 6432, | ||||||
| zabbix_type: 'server', | ||||||
| zabbix_version: zabbix_version, | ||||||
| manage_database_timescale: true | ||||||
| } | ||||||
| end | ||||||
|
|
||||||
| it { is_expected.to compile.with_all_deps } | ||||||
| it { is_expected.to contain_exec('update_pgpass').with_command('echo node01.example.com:6432:zabbix-server:zabbix-server:zabbix-server >> /root/.pgpass') } | ||||||
| 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") } | ||||||
| it { is_expected.to contain_exec('zabbix_server_images.sql').with_command('touch /etc/zabbix/.images.done') } | ||||||
| it { is_expected.to contain_exec('zabbix_server_data.sql').with_command('touch /etc/zabbix/.data.done') } | ||||||
| it { is_expected.to contain_file('/root/.pgpass') } | ||||||
| it { is_expected.to contain_class('zabbix::params') } | ||||||
| it { is_expected.to contain_exec('zabbix_timescaledb.sql').with_command("cd #{path} && psql -h 'node01.example.com' -U 'zabbix-server' -p 6432 -d 'zabbix-server' -f timescaledb.sql && touch /etc/zabbix/.timescaledb.done") } | ||||||
| end | ||||||
|
|
||||||
| describe "when zabbix_type is proxy and version is #{zabbix_version}" do | ||||||
| let :params do | ||||||
| { | ||||||
|
|
||||||
Uh oh!
There was an error while loading. Please reload this page.