diff --git a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp index 6360f78..a619166 100644 --- a/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp +++ b/global/overlay/etc/puppet/modules/cdn/manifests/cache.pp @@ -47,6 +47,14 @@ class cdn::cache( 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' file { $sysctl_file: ensure => file, diff --git a/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.network.erb b/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.network.erb new file mode 100644 index 0000000..19547e6 --- /dev/null +++ b/global/overlay/etc/puppet/modules/cdn/templates/cache/cdn-dummy.network.erb @@ -0,0 +1,11 @@ +[Match] +Name=dummy0 + +[Network] + +<% @cache_secrets['customers'][@customer].each do |customer| -%> +# <%= @customer %> +Address=<%= $customer['ip4'] %> +Address=<%= $customer['ip6'] %> + +<% end -%>