Cfengine Help: Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-30 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3 Author: charming88 Link to topic: https://cfengine.com/forum/read.php?3,22142,22311#msg-22311 Now, what have I earned since I timberland boots for men went into politics? Well, here it

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-30 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: charming88 Link to topic: https://cfengine.com/forum/read.php?3,22131,22310#msg-22310 Now, what have I earned since I timberland boots for men went into politics? Well, here it is. I've jotted it d

Cfengine Help: Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-30 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3 Author: charming88 Link to topic: https://cfengine.com/forum/read.php?3,22146,22308#msg-22308 Now, what have I earned since I timberland boots for men went into politics? Well, here it

Cfengine Help: Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-30 Thread no-reply
Forum: Cfengine Help Subject: Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3 Author: charming88 Link to topic: https://cfengine.com/forum/read.php?3,22162,22306#msg-22306 How can we believe what gold timberland boots you say? After all, is there a possibility

Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-22 Thread Marin Atanasov Nikolov
On Sat, May 21, 2011 at 3:56 PM, wrote: > Forum: Cfengine Help > Subject: Re: Hostname based classes and virtual machines in Cfengine 3 > Author: dnaeon > Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147 > I've tried manually to negate a class, but it's not possible as

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: dnaeon Link to topic: https://cfengine.com/forum/read.php?3,22131,22147#msg-22147 dnaeon Wrote: --- > Another solution proposed by Mikhail Gusarov

Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread Mikhail Gusarov
On 05/21/2011 02:49 PM, Marin Atanasov Nikolov wrote: > It would mean patching Cfengine 3, but it can be done though... > > The question is whether this can be done without having to patch > Cfengine 3 for FreeBSD only. You could try to pass list of IPs and domain names (canonified), to -N argum

Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread Marin Atanasov Nikolov
On Sat, May 21, 2011 at 3:46 PM, Mikhail Gusarov wrote: > On 05/21/2011 02:40 PM, no-re...@cfengine.com wrote: > >> But I have no idea, how this can be done in Cfengine 3... > > Surely not by running a shell pipeline. jls uses jail_get(2) syscall, > which could be used in Cfengine as well. It wou

Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread Mikhail Gusarov
On 05/21/2011 02:40 PM, no-re...@cfengine.com wrote: > But I have no idea, how this can be done in Cfengine 3... Surely not by running a shell pipeline. jls uses jail_get(2) syscall, which could be used in Cfengine as well. ___ Help-cfengine mailing lis

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: dnaeon Link to topic: https://cfengine.com/forum/read.php?3,22131,22145#msg-22145 Another solution proposed by Mikhail Gusarov is to exclude the IP addresses of the jails, and they should not be pr

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,22131,22144#msg-22144 mark Wrote: --- > Okay, so you could use this to qualify things

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: dnaeon Link to topic: https://cfengine.com/forum/read.php?3,22131,22143#msg-22143 mark Wrote: --- > Okay, so you could use this to qualify things

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22131,22141#msg-22141 Okay, so you could use this to qualify things only on the host: HOSTNAME.!JAIL ___

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,22131,22140#msg-22140 Maybe I wasn't clear enough. You were right about $(sys.host) and $(sys.fqhost), they work fine and are much elega

Re: Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread Mikhail Gusarov
On 05/21/2011 02:07 PM, no-re...@cfengine.com wrote: > Yes, but I still don't understand. Cfengine gets the real host name from > uname(), which is what you get from printing the shell command. So your > example is no different from using the hostname of the machine. >From what I get from unix

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: dnaeon Link to topic: https://cfengine.com/forum/read.php?3,22131,22139#msg-22139 mark Wrote: --- > Yes, but I still don't understand. Cfengine ge

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22131,22138#msg-22138 Yes, but I still don't understand. Cfengine gets the real host name from uname(), which is what you get from printing

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,22131,22137#msg-22137 Lets take a FreeBSD system that has two jails JID IP Address Hostname Path 1 1

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22131,22136#msg-22136 I'm not sure I really understand what you are saying. Why does too many options rule out using one of them? In your e

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,22131,22135#msg-22135 I'm sorry Mark. I didn't think the case careful enough. But the problem is that we have too many canonified hostna

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22131,22134#msg-22134 BTW, cfengine evaluates IP addresses directly from the kernel table of interfaces and the addresses they are register

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: mark Link to topic: https://cfengine.com/forum/read.php?3,22131,22133#msg-22133 Don't you dare do this! (Call an unnecessary shell command instead of using cfengine internals). What is wrong with

Cfengine Help: Re: Hostname based classes and virtual machines in Cfengine 3

2011-05-21 Thread no-reply
Forum: Cfengine Help Subject: Re: Hostname based classes and virtual machines in Cfengine 3 Author: toddnni Link to topic: https://cfengine.com/forum/read.php?3,22131,22132#msg-22132 I also faced the same problem on the FreeBSD host system. As a solution I created my own hostname classes which I