Le 01/02/2011 15:18, Fredrik Pettai a écrit : > Hi, > > We're currently testing cfengine 3.0.2 (because that's what you get then > running Ubuntu 10.04). > > I've used some examples from the CFengine Solutions > (http://www.cfengine.org/manuals/cf3-solutions.html) > Some things work, and some doesn't. > > For instance, the distribution of ssh keys > (http://www.cfengine.org/manuals/cf3-solutions.html#Distribute-ssh-keys) > recipe give me the error "Scalar variable user contains itself > (non-convergent): $(user)". > > Seems to be this line (96) -> "/home/$(user)/.ssh/authorized_keys"
I haven't actually tested, but it looks like there's a typo with the variable name "users". Its definition is provided commented at the top of that example as "users" but everywhere else it's referred to as "user". Try changing the name so they're all in sync. > Is Cfengine 3.0.2 too old to run? Is it a know bug that has been fixed in a > later 3.0.x release? I see no reason why that example wouldn't work in Cfengine 3.0.2, but I *really* would not recommend running that version. The latest version (3.1.4) contains many new features and bug fixes (some of them non retro-compatible) and plugs a couple of serious memory leaks. If you're just starting out with Cfengine, I encourage you to use 3.1.4. You're experience will be much more enjoyable, and you won't stumble into bugs that have been found and fixed many months ago! Also, Cfengine AS provides free packages for Ubuntu - just create an account on cfengine.org "Engine Room" and you can download a .deb and have it running in minutes. Best of luck, Jonathan -- ========================================== Jonathan CLARKE ------------------------------------------ Normation 44 rue Cauchy, 94110 Arcueil, France ------------------------------------------ Telephone: +33 (0)1 83 62 41 24 Mobile: +33 (0)6 99 60 03 10 ------------------------------------------ Web: http://www.normation.com/ ========================================== _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine