Revision ca34010f
Added by Shimon Shtein about 1 month ago
app/services/foreman/template_snapshot_service.rb | ||
---|---|---|
name: 'snapshot-ipv4-dhcp-el7',
|
||
subnet: FactoryBot.build(:subnet_ipv4_dhcp_for_snapshots),
|
||
interfaces: [ipv4_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
||
... | ... | |
name: 'snapshot-ipv4-static-el7',
|
||
subnet: FactoryBot.build(:subnet_ipv4_static_for_snapshots),
|
||
interfaces: [ipv4_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
||
... | ... | |
name: 'snapshot-ipv6-dhcp-el7',
|
||
subnet: FactoryBot.build(:subnet_ipv6_dhcp_for_snapshots),
|
||
interfaces: [ipv6_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
||
... | ... | |
name: 'snapshot-ipv6-static-el7',
|
||
subnet: FactoryBot.build(:subnet_ipv6_static_for_snapshots),
|
||
interfaces: [ipv6_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
||
... | ... | |
subnet: FactoryBot.build(:subnet_ipv4_dhcp_for_snapshots),
|
||
subnet6: FactoryBot.build(:subnet_ipv6_dhcp_for_snapshots),
|
||
interfaces: [ipv46_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
||
... | ... | |
name: 'snapshot-ipv4-dhcp-deb10',
|
||
subnet: FactoryBot.build(:subnet_ipv4_dhcp_for_snapshots),
|
||
interfaces: [ipv4_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
||
... | ... | |
name: 'snapshot-ipv4-dhcp-rhel9',
|
||
subnet: FactoryBot.build(:subnet_ipv4_dhcp_for_snapshots),
|
||
interfaces: [ipv4_interface])
|
||
host.stubs(:managed_interfaces).returns(host.interfaces)
|
||
define_host_params(host)
|
||
end
|
||
|
Also available in: Unified diff
Fixes #37367 - Switch to 'network' directive instead of ifcfg