From 34f2d034cd3f17abb424c56b0a44019e6924e8bf Mon Sep 17 00:00:00 2001 From: Andreas Kempe <kempe@lysator.liu.se> Date: Fri, 13 Jan 2023 23:46:23 +0100 Subject: [PATCH] Add DNS configuration class --- files/resolv.conf | 5 +++++ manifests/dns_config.pp | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 files/resolv.conf create mode 100644 manifests/dns_config.pp diff --git a/files/resolv.conf b/files/resolv.conf new file mode 100644 index 0000000..1ecd776 --- /dev/null +++ b/files/resolv.conf @@ -0,0 +1,5 @@ +# This file is managed by Puppet. +search lysator.liu.se +nameserver 2001:6b0:17:f0a0::e1 +nameserver 130.236.254.225 +nameserver 130.236.254.4 diff --git a/manifests/dns_config.pp b/manifests/dns_config.pp new file mode 100644 index 0000000..cba0b86 --- /dev/null +++ b/manifests/dns_config.pp @@ -0,0 +1,10 @@ +# Class for adding DNS configuration to the system +class timehost::dns_config { + file { '/etc/resolv.conf': + ensure => file, + source => 'puppet:///modules/timehost/resolv.conf', + owner => 'root', + group => 'root', + } +} + -- GitLab