Support multiple values in TLSAccept #781
Annotations
10 errors
Run tests:
spec/classes/agent_spec.rb#L314
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^AllowRoot=0$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^AllowRoot=0$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f1799c33950 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used"=>"0 bytes",
|
Run tests:
spec/classes/agent_spec.rb#L315
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^BufferSend=5$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^BufferSend=5$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f1799a21388 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used"=>"0 bytes"
|
Run tests:
spec/classes/agent_spec.rb#L316
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^BufferSize=100$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^BufferSize=100$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f179a7ccf28 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used"=>"0 by
|
Run tests:
spec/classes/agent_spec.rb#L317
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^DebugLevel=4$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^DebugLevel=4$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f17997e93b8 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used"=>"0 bytes"
|
Run tests:
spec/classes/agent_spec.rb#L318
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^AllowKey=system.run\[\*\]$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^AllowKey=system.run\[\*\]$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f179bdc9dd0 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>53
|
Run tests:
spec/classes/agent_spec.rb#L319
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^DenyKey=system.run\[\*\]$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^DenyKey=system.run\[\*\]$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f179a20a4c8 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>5368
|
Run tests:
spec/classes/agent_spec.rb#L320
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^Hostname=10050$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^Hostname=10050$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f179df6e9b8 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used"=>"0 by
|
Run tests:
spec/classes/agent_spec.rb#L321
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^Include=\/etc\/zabbix\/zabbix_agentd.d$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^Include=/etc/zabbix/zabbix_agentd.d$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f179a280d08 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00
|
Run tests:
spec/classes/agent_spec.rb#L322
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^ListenPort=10050$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^ListenPort=10050$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f179d5cff38 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used"=>"
|
Run tests:
spec/classes/agent_spec.rb#L323
zabbix::agent on archlinux-rolling-x86_64 configuration file with full options is expected to contain File[/etc/zabbix/zabbix_agentd.conf] with content =~ /^ListenIP=127.0.0.1$/
Failure/Error: it { is_expected.to contain_file('/etc/zabbix/zabbix_agentd.conf').with_content %r{^ListenIP=127.0.0.1$} }
Puppet::PreformattedError:
Evaluation Error: Error while evaluating a Function Call, Failed to parse template zabbix/zabbix_agentd.conf.erb:
Filepath: /home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb
Line: 313
Detail: undefined method `type' for #<Puppet::Parser::TemplateWrapper:0x00007f1799ef5698 @__scope__=Scope(Class[Zabbix::Agent]), @__file__="/home/runner/work/puppet-zabbix/puppet-zabbix/spec/fixtures/modules/zabbix/templates/zabbix_agentd.conf.erb", @hostname="10050", @fqdn="agent.example.com", @Domain="example.com", @clientcert="agent.example.com", @networking={"dhcp"=>"10.0.2.2", "domain"=>"example.com", "fqdn"=>"agent.example.com", "hostname"=>"agent", "interfaces"=>{"eth0"=>{"bindings"=>[{"address"=>"10.0.2.15", "netmask"=>"255.255.255.0", "network"=>"10.0.2.0"}], "bindings6"=>[{"address"=>"fe80::a00:27ff:fe25:1d85", "netmask"=>"ffff:ffff:ffff:ffff::", "network"=>"fe80::", "scope6"=>"link", "flags"=>["permanent"]}], "dhcp"=>"10.0.2.2", "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "scope6"=>"link"}, "lo"=>{"bindings"=>[{"address"=>"127.0.0.1", "netmask"=>"255.0.0.0", "network"=>"127.0.0.0"}], "bindings6"=>[{"address"=>"::1", "netmask"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"::1", "scope6"=>"host", "flags"=>["permanent"]}], "ip"=>"127.0.0.1", "ip6"=>"::1", "mtu"=>65536, "netmask"=>"255.0.0.0", "netmask6"=>"ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff", "network"=>"127.0.0.0", "network6"=>"::1", "scope6"=>"host"}}, "ip"=>"10.0.2.15", "ip6"=>"fe80::a00:27ff:fe25:1d85", "mac"=>"08:00:27:25:1d:85", "mtu"=>1500, "netmask"=>"255.255.255.0", "netmask6"=>"ffff:ffff:ffff:ffff::", "network"=>"10.0.2.0", "network6"=>"fe80::", "primary"=>"eth0", "scope6"=>"link"}, @clientversion="8.6.0", @architecture="x86_64", @bios_release_date="12/01/2006", @bios_vendor="innotek GmbH", @bios_version="VirtualBox", @blockdevice_sda_model="VBOX HARDDISK", @blockdevice_sda_size=21474836480, @blockdevice_sda_vendor="ATA", @blockdevices="sda", @boardmanufacturer="Oracle Corporation", @boardproductname="VirtualBox", @boardserialnumber="0", @chassistype="Other", @dhcp_servers={"eth0"=>"10.0.2.2", "system"=>"10.0.2.2"}, @disks={"sda"=>{"model"=>"VBOX HARDDISK", "serial"=>"VB2e0ea3fa-e98689b0", "size"=>"20.00 GiB", "size_bytes"=>21474836480, "type"=>"hdd", "vendor"=>"ATA"}}, @dmi={"bios"=>{"release_date"=>"12/01/2006", "vendor"=>"innotek GmbH", "version"=>"VirtualBox"}, "board"=>{"manufacturer"=>"Oracle Corporation", "product"=>"VirtualBox", "serial_number"=>"0"}, "chassis"=>{"type"=>"Other"}, "manufacturer"=>"innotek GmbH", "product"=>{"name"=>"VirtualBox", "serial_number"=>"0", "uuid"=>"0afe8128-03cb-5344-b247-3b76036d050f"}}, @facterversion="4.2.9", @filesystems="btrfs,iso9660", @fips_enabled=false, @gid="root", @hardwareisa="unknown", @hardwaremodel="x86_64", @hypervisors={"virtualbox"=>{}}, @id="root", @identity={"gid"=>0, "group"=>"root", "privileged"=>true, "uid"=>0, "user"=>"root"}, @interfaces="eth0,lo", @IPAddress="10.0.2.15", @ipaddress6="fe80::a00:27ff:fe25:1d85", @ipaddress6_eth0="fe80::a00:27ff:fe25:1d85", @ipaddress6_lo="::1", @ipaddress_eth0="10.0.2.15", @ipaddress_lo="127.0.0.1", @is_virtual=true, @kernel="Linux", @kernelmajversion="5.17", @kernelrelease="5.17.3-arch1-1", @kernelversion="5.17.3", @load_averages={"15m"=>0.06, "1m"=>0.28, "5m"=>0.14}, @macaddress="08:00:27:25:1d:85", @macaddress_eth0="08:00:27:25:1d:85", @Manufacturer="innotek GmbH", @memory={"swap"=>{"available"=>"512.00 MiB", "available_bytes"=>536866816, "capacity"=>"0.00%", "total"=>"512.00 MiB", "total_bytes"=>536866816, "used
|
Loading