Sorry, I meant

bundle edit_line resolvconf

Aleksey Tsalolikhin wrote:
> On Tue, Dec 15, 2009 at 1:02 AM, Mark Burgess <mark.burg...@iu.hio.no> wrote:
>> And I should have pointed out that the "bundle resolvconf" etc, belongs in 
>> the standard
>> library.
> 
> Is this why the below does not work?  What do I need to do?
> 
> myprompt# cf-agent -f ./resolver.cf
> cf3:./resolver.cf:33,18: syntax error, near token '('
> Undeclared promise bundle "resolvconf()" was referenced in a promise
> Summarizing promises as text to ./resolver.cf.txt
> Summarizing promises as html to ./resolver.cf.html
> cf-agent was not able to get confirmation of promises from
> cf-promises, so going to failsafe
> myprompt# cat resolver.cf
> body common control
> {
>     version => "1.0";
>     bundlesequence  => {
>                        "checkresolver"
>                        };
> 
> 
> 
> #    inputs          => {
> #                       "site.cf",
> #                       "library.cf"
> #                       };
> 
> 
> }
> 
> 
> bundle agent checkresolver
> {
>     vars:
> 
>           "resolvers" slist => { "128.39.89.10", "158.36.85.10",
> "129.241.1.99" };
> 
>     files:
> 
>           "$(sys.resolv)"
> 
>                edit_line => resolvconf("iu.hio.no cfengine.com",@(resolvers));
> }
> 
> 
> bundle resolvconf(search,list)
> {
>     delete_lines:
> 
>         "search.*";
> 
>     insert_lines:
> 
>          "search $(search)";
>          "$(list)";
> }
> myprompt#
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> https://cfengine.org/mailman/listinfo/help-cfengine

-- 
Mark Burgess

-------------------------------------------------
Professor of Network and System Administration
Oslo University College, Norway

Personal Web: http://www.iu.hio.no/~mark
Office Telf : +47 22453272
-------------------------------------------------
_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to