From 1d1853d9b551044e2232de89f15686a8cb81a1fc Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 16 Apr 2002 22:59:06 +0000 Subject: CFEngine: Rename cf.local.services.file.conf.m4 into cf.services.file.tmp.m4. --- cfengine/cf.local.services.file.conf.m4 | 65 --------------------------------- cfengine/cf.services.file.tmp.m4 | 65 +++++++++++++++++++++++++++++++++ 2 files changed, 65 insertions(+), 65 deletions(-) delete mode 100644 cfengine/cf.local.services.file.conf.m4 create mode 100644 cfengine/cf.services.file.tmp.m4 (limited to 'cfengine') diff --git a/cfengine/cf.local.services.file.conf.m4 b/cfengine/cf.local.services.file.conf.m4 deleted file mode 100644 index 8991522..0000000 --- a/cfengine/cf.local.services.file.conf.m4 +++ /dev/null @@ -1,65 +0,0 @@ -ifelse(` -/etc/cfengine/cf.local.services.file.conf.m4 -Copyright 2002 Jonas Smedegaard - -$Id: cf.local.services.file.conf.m4,v 1.1 2002-04-07 23:23:11 jonas Exp $ - -cfengine m4 skeleton file for cleaning up Samba and Netatalk shares - -Usage: m4 -DFQDN= /etc/cfengine/cf.local.services.file.conf.m4 > /tmp/cf.local.services.file.conf - -Depend on file /etc/local-COMMON/file-.m4 containing lines of -the following syntax: - _dir(,,,,)dnl - _home(,,,[,ro])dnl - _files(,,,,,,[,ro[,]|,rw,[,]])dnl -where - : Client operating systems (mac|win|any) - : Mount point name (Samba: single word and max. 8 characters for backwards compatibility) - : Mount point description (iso8859-1 is (fully?) supported). - : user name of mountpoint owner - : group name of mountpoint owner - : Numeric access modes of mount point - : Full path to mount point - : Primary group with (readonly) access to mountpoint. Public (or whatever limited by filesystem) readonly access if omitted - : Secondary group with readonly access - -Example: - - _dir(any,/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl - _homefiles(win,homes,Personal files,%H/pc)) - _homefiles(mac,,Personal files,~/mac)) - _files(win,soft,softshare,/home/fsadmin/COMMON/software,fsadmin,fsadmin,775)dnl - _printer(win,LW,Networkprinter queue for Apple LaserWriter 16/600,/tmp,lw) - -')dnl -define(_tab,` ')dnl -define(_dir,_tab$2 - mode=$5 - owner=$3 - group=$4 -)dnl -define(_homefiles,`')dnl -define(_files,_dir($1,$4,$5,$6,$7))dnl -control: - AddInstallable = ( samba samba_reload netatalk netatalk_reload ) - - samba_reload:: - { /etc/samba/smb-shares-$(fqdn).conf - LocateLineMatching "^; EDITED BY CFENGINE .*" - ReplaceAll '; EDITED BY CFENGINE .*$' With '; EDITED BY CFENGINE $(date)' - CatchAbort - BeginGroupIfNoMatch "^; EDITED BY CFENGINE .*" - Append '; EDITED BY CFENGINE $(date)' - EndGroup - } - -directories: -include(/etc/local-COMMON/file-FQDN.m4)dnl - -processes: - "smbd" restart "/etc/init.d/samba restart" - -shellcommands: - samba_reload:: - "/etc/init.d/samba force-reload" diff --git a/cfengine/cf.services.file.tmp.m4 b/cfengine/cf.services.file.tmp.m4 new file mode 100644 index 0000000..24c4ae9 --- /dev/null +++ b/cfengine/cf.services.file.tmp.m4 @@ -0,0 +1,65 @@ +ifelse(` +/etc/cfengine/cf.services.file.tmp.m4 +Copyright 2002 Jonas Smedegaard + +$Id: cf.services.file.tmp.m4,v 1.1 2002-04-16 22:59:06 jonas Exp $ + +cfengine m4 skeleton file for cleaning up Samba and Netatalk shares + +Usage: m4 -DFQDN= /etc/local-COMMON/cfengine/cf.services.file.m4 > /tmp/cf.services.file + +Depend on file /etc/local-COMMON/file-.m4 containing lines of +the following syntax: + _dir(,,,,)dnl + _home(,,,[,ro])dnl + _files(,,,,,,[,ro[,]|,rw,[,]])dnl +where + : Client operating systems (mac|win|any) + : Mount point name (Samba: single word and max. 8 characters for backwards compatibility) + : Mount point description (iso8859-1 is (fully?) supported). + : user name of mountpoint owner + : group name of mountpoint owner + : Numeric access modes of mount point + : Full path to mount point + : Primary group with (readonly) access to mountpoint. Public (or whatever limited by filesystem) readonly access if omitted + : Secondary group with readonly access + +Example: + + _dir(any,/home/fsadmin/COMMON,fsadmin,fsadmin,755)dnl + _homefiles(win,homes,Personal files,%H/pc)) + _homefiles(mac,,Personal files,~/mac)) + _files(win,soft,softshare,/home/fsadmin/COMMON/software,fsadmin,fsadmin,775)dnl + _printer(win,LW,Networkprinter queue for Apple LaserWriter 16/600,/tmp,lw) + +')dnl +define(_tab,` ')dnl +define(_dir,_tab$2 + mode=$5 + owner=$3 + group=$4 +)dnl +define(_homefiles,`')dnl +define(_files,_dir($1,$4,$5,$6,$7))dnl +control: + AddInstallable = ( samba samba_reload netatalk netatalk_reload ) + + samba_reload:: + { /etc/samba/smb-shares-$(fqdn).conf + LocateLineMatching "^; EDITED BY CFENGINE .*" + ReplaceAll '; EDITED BY CFENGINE .*$' With '; EDITED BY CFENGINE $(date)' + CatchAbort + BeginGroupIfNoMatch "^; EDITED BY CFENGINE .*" + Append '; EDITED BY CFENGINE $(date)' + EndGroup + } + +directories: +include(/etc/local-COMMON/file-FQDN.m4)dnl + +processes: + "smbd" restart "/etc/init.d/samba restart" + +shellcommands: + samba_reload:: + "/etc/init.d/samba force-reload" -- cgit v1.2.3