Re: Use case question (moving directories and symlinking the old location)

2010-01-10 Thread Nakarin Phooripoom
Hi Robert, You should try this. Let make it done sequently. classes: SRV_APACHE_STANDALONE:: "isdir" expression => isdir("/var/www"); files: SRV_APACHE_STANDALONE.isdir:: # make sure that there is /srv directory "/srv/." cre

Re: Use case question (moving directories and symlinking the old location)

2009-12-24 Thread Robert Markula
Hi Brendan, Brendan Strejcek wrote: > I think you want this: > > http://www.cfengine.org/manuals/cf3-reference.html#move_005fobstructions-in-files thanks for trying to help me, but unfortunately the error message persists. Hmm... another idea? Here's the latest version (not working): classes:

Re: Use case question (moving directories and symlinking the old location)

2009-12-22 Thread Brendan Strejcek
I think you want this: http://www.cfengine.org/manuals/cf3-reference.html#move_005fobstructions-in-files On Mon, Dec 21, 2009 at 3:43 PM, Robert Markula wrote: > Hi again, > > Brendan Strejcek wrote: >> Set classes based on what kind of file /srv/www is. >> >> http://www.cfengine.org/manuals/cf3

Re: Use case question (moving directories and symlinking the old location)

2009-12-21 Thread Robert Markula
Hi again, Brendan Strejcek wrote: > Set classes based on what kind of file /srv/www is. > > http://www.cfengine.org/manuals/cf3-reference.html#Function-islink > http://www.cfengine.org/manuals/cf3-reference.html#Function-isplain > http://www.cfengine.org/manuals/cf3-reference.html#Function-isdir

Re: Use case question (moving directories and symlinking the old location)

2009-12-21 Thread Robert Markula
Hi Brendan, Brendan Strejcek wrote: > Set classes based on what kind of file /srv/www is. > > http://www.cfengine.org/manuals/cf3-reference.html#Function-islink > http://www.cfengine.org/manuals/cf3-reference.html#Function-isplain > http://www.cfengine.org/manuals/cf3-reference.html#Function-isdi

Re: Use case question (moving directories and symlinking the old location)

2009-12-13 Thread Brendan Strejcek
Set classes based on what kind of file /srv/www is. http://www.cfengine.org/manuals/cf3-reference.html#Function-islink http://www.cfengine.org/manuals/cf3-reference.html#Function-isplain http://www.cfengine.org/manuals/cf3-reference.html#Function-isdir Conditionals should allow you to avoid any r