Forum: CFEngine Help
Subject: Re: Replace underscores in interface names (creating routes)
Author: CFEngine
Link to topic: https://cfengine.com/forum/read.php?3,26010,26022#msg-26022
The indices in the sys.ipv4 array should be the original interface names, and
not their canonified versions. You m
On 05/22/2012 08:41 PM, Nick Anderson wrote:
> https://cfengine.com/manuals/cf3-Reference#Function-getenv
So env contains USER, and with that we can get gid.
"user" string => getenv("USER","20");
"no" int => getfields("$(user):.*","/etc/passwd",":","userdata");
"gid" string => "$(u
On 05/22/2012 08:39 PM, Nick Anderson wrote:
> Or what about accessing env USER
https://cfengine.com/manuals/cf3-Reference#Function-getenv
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
On 05/22/2012 08:35 PM, Nick Anderson wrote:
> The next thing is two seperate command promises, one with a container,
> one without classed on the presance of a variable being defined.
Or what about accessing env USER
___
Help-cfengine mailing list
Help-
On 05/22/2012 08:33 PM, Nick Anderson wrote:
> On 05/22/2012 08:26 PM, Ted Zlatanov wrote:
>> Hmm. Can cfengine find out the current UID? If not, the default will
>> be hard to do, unless I use two contain bodies, one with and one without
>> the user specified.
>>
>> I can't find such getuid() fu
On 05/22/2012 08:26 PM, Ted Zlatanov wrote:
> Hmm. Can cfengine find out the current UID? If not, the default will
> be hard to do, unless I use two contain bodies, one with and one without
> the user specified.
>
> I can't find such getuid() functionality in the manual. It doesn't make
> sense
On Tue, 22 May 2012 18:25:20 -0500 Nick Anderson wrote:
NA> On 05/22/2012 03:36 PM, Ted Zlatanov wrote:
>> How about vcs_mirror? That's pretty clear and the term is not used by
>> Git or Subversion. If you agree I'll make the change on my side.
NA> Works for me.
OK; done.
NA> # TODO: provid
On 05/22/2012 07:57 PM, Neil Watson wrote:
> I have a similar request below. Feel free to add your two cents.
>
> https://cfengine.com/bugtracker/view.php?id=983
>
great, thanks
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.
I have a similar request below. Feel free to add your two cents.
https://cfengine.com/bugtracker/view.php?id=983
--
Neil Watson
Linux/UNIX Consultant
http://watson-wilson.ca
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.or
I am curious why verbose output does not show variables getting assigned.
Should this just be a feature request?
___
Help-cfengine mailing list
Help-cfengine@cfengine.org
https://cfengine.org/mailman/listinfo/help-cfengine
On 05/22/2012 04:03 PM, no-re...@cfengine.com wrote:
> Forum: CFEngine Help
> Subject: Replace underscores in interface names (creating routes)
> Author: alan.hatch
> Link to topic: https://cfengine.com/forum/read.php?3,26010,26010#msg-26010
>
> We are using interface aliases with periods that are
On 05/22/2012 03:36 PM, Ted Zlatanov wrote:
> How about vcs_mirror? That's pretty clear and the term is not used by
> Git or Subversion. If you agree I'll make the change on my side.
Works for me.
> NA> # TODO: provide some way to selectivly contain the executing user
>
> Yeah, good point. Th
Forum: CFEngine Help
Subject: Replace underscores in interface names (creating routes)
Author: alan.hatch
Link to topic: https://cfengine.com/forum/read.php?3,26010,26010#msg-26010
We are using interface aliases with periods that are being converted into
underscores in certain cases. I am trying
On Tue, 22 May 2012 15:11:23 -0500 Nick Anderson wrote:
NA> So in general are you preferring prefix to passing an array name with
NA> new sketches? And also are you preferring a single usebundle call for
NA> each different configuration?
Yes, and yes. It makes passing data between JSON, Perl,
On 05/22/2012 02:23 PM, Ted Zlatanov wrote:
> You want "prefixVAR" instead of "prefix[VAR]". In other words, we're
> passing a namespace prefix, not an array name, so all your variables are
> named "main.repoVAR" (assuming you pass the prefix like that, although I
> think "main.repo_" would be a m
On Tue, 22 May 2012 12:50:39 -0500 Nick Anderson wrote:
NA> On 05/21/2012 02:51 PM, Ted Zlatanov wrote:
>> Nick, see if you can duplicate the bug on your side and I'll open the
>> ticket. No rush, I have the fix above in place.
NA> I tried to use it manually and none of the variables seem to e
On 05/21/2012 02:51 PM, Ted Zlatanov wrote:
> Nick, see if you can duplicate the bug on your side and I'll open the
> ticket. No rush, I have the fix above in place.
I tried to use it manually and none of the variables seem to expand. I
have not tried with cfsketch yet.
looks like all the [] a
Forum: CFEngine Help
Subject: Re: execresult and order
Author: CFEngine
Link to topic: https://cfengine.com/forum/read.php?3,26004,26005#msg-26005
I think you want parsestringarray or parsestringarrayidx:
https://cfengine.com/manuals/cf3-reference#Function-parsestringarray
__
18 matches
Mail list logo