Add address config for dummy interface
This commit is contained in:
parent
1e8cad6ea0
commit
637e2ae307
|
@ -47,6 +47,14 @@ class cdn::cache(
|
||||||
content => template('cdn/cache/cdn-dummy.netdev.erb'),
|
content => template('cdn/cache/cdn-dummy.netdev.erb'),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
file { '/etc/systemd/network/cdn-dummy.network':
|
||||||
|
ensure => file,
|
||||||
|
owner => 'root',
|
||||||
|
group => 'root',
|
||||||
|
mode => '0644',
|
||||||
|
content => template('cdn/cache/cdn-dummy.network.erb'),
|
||||||
|
}
|
||||||
|
|
||||||
$sysctl_file = '/etc/sysctl.d/99-cdn-cache.conf'
|
$sysctl_file = '/etc/sysctl.d/99-cdn-cache.conf'
|
||||||
file { $sysctl_file:
|
file { $sysctl_file:
|
||||||
ensure => file,
|
ensure => file,
|
||||||
|
|
11
global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.network.erb
vendored
Normal file
11
global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.network.erb
vendored
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
[Match]
|
||||||
|
Name=dummy0
|
||||||
|
|
||||||
|
[Network]
|
||||||
|
|
||||||
|
<% @cache_secrets['customers'][@customer].each do |customer| -%>
|
||||||
|
# <%= @customer %>
|
||||||
|
Address=<%= $customer['ip4'] %>
|
||||||
|
Address=<%= $customer['ip6'] %>
|
||||||
|
|
||||||
|
<% end -%>
|
Loading…
Reference in a new issue