Aleksey,
one cannot iterate over foreign slist. You need to make a local copy:
bundle agent runme
{
vars:
"myusers" slist => { @(g.myusers) };
...
}
2011/5/28 Aleksey Tsalolikhin :
> What's wrong with this picture?
>
> I am trying to loop over the contents of @(myusers)
>
> I want to create h
Thanks, Seva. I'm afraid that does not work either:
[cfengine00 ~]# cf-agent -f ./test.cf
R: /var/spool/cron/crontabs/root
R: $(g.myusers)
R: $(g.mylist)
[cfengine00 ~]# more test.cf
body common control {
bundlesequence => {"runme"};
}
bundle common g
{
vars:
"crontab" string =>
Aleksey, sometimes copy-paste goes wrong ;) Replace $(g.mylist) with $(mylist).
2011/5/28 Aleksey Tsalolikhin :
> Thanks, Seva. I'm afraid that does not work either:
>
>
> [cfengine00 ~]# cf-agent -f ./test.cf
> R: /var/spool/cron/crontabs/root
> R: $(g.myusers)
> R: $(g.mylist)
> [cfengine00 ~
No worries, Seva, I just found that, after checking the manual. I'm
good now. Thanks, team!
Aleksey
On Sat, May 28, 2011 at 7:40 AM, Seva Gluschenko
wrote:
> Aleksey, sometimes copy-paste goes wrong ;) Replace $(g.mylist) with
> $(mylist).
>
> 2011/5/28 Aleksey Tsalolikhin :
>> Thanks, Seva.