On Friday 17 Sep 2010 10:45:12 you wrote: > > I can however somewhat work around that using the same method: > > > > classes: > > "ntpd_installed" expression => fileexists("/usr/sbin/ntpd"); > > > > packages: > > !ntpd_installed:: > > "ntpd" > > > > package_method => yum, > > package_policy => "add"; > > > > files: > > ntpd_installed:: > > "/etc/ntd.conf" > > > > # copy the custom config file > > > > However my understanding is that this would require two agent invocations > > to get the intended configuration, the first would install the package, > > the second would copy the config file. > > Why have the config file depend on whether the package is installed? If > the ntp.conf file is installed but the package is not, that's not a real > problem, and it's still a convergence towards the desired state. In fact > it's better - it's arguable you want the ntp.conf to be present *before* > the package is installed, otherwise the first time the ntpd starts, it > will be using the default config file supplied by the distro, which may > not be what you want.
Well, if my custom file is in place before the package is installed, could it be overwritten with the default one by the package installation? (I haven't tried to be honest) -- D. _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine