From f21f0c70a6ac77cf58f1599276a44acec19df1c3 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 14 Sep 2010 19:26:32 +0200 Subject: [PATCH] Ship CellServDB and ThisCell in puppet --- modules/afs/files/CellServDB | 4 ++++ modules/afs/files/ThisCell | 1 + modules/afs/manifests/init.pp | 15 +++++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 modules/afs/files/CellServDB create mode 100644 modules/afs/files/ThisCell diff --git a/modules/afs/files/CellServDB b/modules/afs/files/CellServDB new file mode 100644 index 000000000..fbbb39423 --- /dev/null +++ b/modules/afs/files/CellServDB @@ -0,0 +1,4 @@ +>debian.org +82.195.75.101 #lamb.debian.org +194.177.211.199 #rautavaara.debian.org +206.12.19.120 #locke.debian.org diff --git a/modules/afs/files/ThisCell b/modules/afs/files/ThisCell new file mode 100644 index 000000000..9973f0cf8 --- /dev/null +++ b/modules/afs/files/ThisCell @@ -0,0 +1 @@ +debian.org diff --git a/modules/afs/manifests/init.pp b/modules/afs/manifests/init.pp index 9d3a00724..d047d648d 100644 --- a/modules/afs/manifests/init.pp +++ b/modules/afs/manifests/init.pp @@ -1,4 +1,19 @@ class afs { + + file { + "/etc/openafs/CellServDB": + source => "puppet:///modules/afs/CellServDB", + require => Package["openafs-client"], + # notify => # something to call fs newcell maybe? + mode => 444 + ; + "/etc/openafs/ThisCell": + source => "puppet:///modules/afs/ThisCell", + require => Package["openafs-client"], + mode => 444 + ; + } + @ferm::rule { "dsa-afs callback": domain => "(ip ip6)", description => "afs callback", -- 2.20.1