From: Peter Palfrader Date: Wed, 15 Sep 2010 10:29:44 +0000 (+0200) Subject: Try to have the openafs-client package depend on the config X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;ds=sidebyside;h=69877042dbf9fae59b6ecb79cf3ea8629dbed73a;p=mirror%2Fdsa-puppet.git Try to have the openafs-client package depend on the config --- diff --git a/modules/afs/manifests/init.pp b/modules/afs/manifests/init.pp index 4451c0631..1a631f6b5 100644 --- a/modules/afs/manifests/init.pp +++ b/modules/afs/manifests/init.pp @@ -1,16 +1,28 @@ class afs { - package { "openafs-client": ensure => installed } - + package { + "openafs-client": + ensure => installed, + require => File['/etc/openafs/CellServDB', + '/etc/openafs/ThisCell', + '/etc/openafs/afs.conf.client'], + ; + } file { + "/etc/openafs": + ensure => directory, + mode => 755, + ; "/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 + ; + "/etc/openafs/afs.conf.client": + source => "puppet:///modules/afs/afs.conf.client", mode => 444 ; }