--- Begin Message ---
Subject: |
Re: miscmounts woes |
Date: |
Wed, 25 Aug 2004 14:47:04 -0600 |
I don't believe 'miscmounts' goes into your actionsequence. Instead,
use 'addmounts' (to edit /etc/fstab and create mountpoints as described
in your 'miscmounts:' section), and 'mountall' (to check if they are
mounted, and mount them if they are not.)
I would add that while this apparently does the right thing, we also see
errors of this nature every time cfengine runs:
cfengine:: Warning the file system /foo seems to be in /etc/fstab
cfengine:: already, but I was not able to mount it.
cfengine:: Check the exports file on host somehost? Check for file with
same name as dir?
though everything is mounted fine, and /etc/fstab is correct.
(Would be happy to hear what I'm doing wrong, if it is apparent to
anyone...)
-Ed
On Wed, 2004-08-25 at 02:28, Ulrich Habel wrote:
> Hej,
>
> Please don't mind if this mail is a duplicate - I had some troubles
> with the listserver on gnu.
>
> I have some trouble to get the actionsequence miscmounts working
> in a proper way. Maybe I just got lost in the code. I am using
> cfengine version 2.1.6 on linux and 2.1.10 on solaris. If I am
> using the sequence miscmounts the message:
>
> Undefined action miscmounts in sequence
>
> is thrown. The message is the same on solaris and on linux. Does
> someone can point out my mistake? I found several issues in the
> archives of this list - however, none of them pointed out a solution.
>
> I doesn't matter if I run cfagent on the host or cfrun <a_hostname>
> on the server.
>
> my stripped down cfengine cfagent.conf file is included below.
>
> Cheers
>
> Uli
>
> ------- cfagent.conf -------
> control:
>
> actionsequence = (
> miscmounts
> )
>
> sysadm = ( sysmaster@example.com )
> smtpserver = ( mail.example.com )
>
> config_server = ( forge )
> cfengine_root = ( /local/var/cfengine )
> files_directory = ( "$(cfengine_root)/files" )
> config_directory = ( "$(cfengine_root)/inputs" )
>
>
> IfElapsed = ( 0 )
> ExpireAfter = ( 15 )
> SplayTime = ( 0 )
>
> DefaultPkgMgr = ( rpm )
>
> yum_install = ( "/usr/bin/yum -y -d0 -e0 install " )
>
>
> ipv4_195::
>
> domain = ( example.com )
>
> ipv4_10::
>
> domain = ( extra-example.com )
>
>
> miscmounts:
>
> a_hostname::
>
> cms-dev.example.com:/iwserver /mnt/iwserver mode=ro
> cms-dev.example.com:/local/ATG6/ATG6.4.0/BR /mnt/BR mode=ro
--- End Message ---