Re: Machine types and auto-provisioning

2010-09-24 Thread Aleksey Tsalolikhin
On Fri, Sep 24, 2010 at 11:24 AM, Mark wrote: > This is not strictly true. Cfengine converts the dashes to underscore now. > It does not allow them. Oh, I see. That explains why my code worked, cfengine converted my dashes to underscores before running my code. Thank you. I am very glad I can

Cfengine Help: Re: Host inventory (Was: Machine types)

2010-09-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Host inventory (Was: Machine types) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18488,18491#msg-18491 There is no shortage of free software inventory products. You can certainly use Cfengine to run agents or gather information. No

Re: Host inventory (Was: Machine types)

2010-09-24 Thread Les Mikesell
On 9/24/2010 10:18 AM, Aleksey Tsalolikhin wrote: > >> I'm going to go off on a rant here. DNS names should not be used as an >> inventory system. DNS is used to make host names easier to remember than IP >> addresses. If a host name is harder to remember than an IP address then the >> naming

Host inventory (Was: Machine types)

2010-09-24 Thread Aleksey Tsalolikhin
On Fri, Sep 24, 2010 at 5:52 AM, wrote: > > I'm going to go off on a rant here.  DNS names should not be used as an > inventory system.  DNS is used to make host names easier to remember than IP > addresses.  If a host name is harder to remember than an IP address then the > naming convention

Cfengine Help: Re: Machine types and auto-provisioning

2010-09-24 Thread no-reply
Forum: Cfengine Help Subject: Re: Machine types and auto-provisioning Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18480,18483#msg-18483 Any Nova Knowledge base users out there? This might be usable for host inventory

Machine types and auto-provisioning

2010-09-24 Thread Aleksey Tsalolikhin
Dear Mark and Nicolas, Thank you for your reply. Dashes used to be illegal in class names, but as of 3.0.5p1 that is no longer the case. I found this out yesterday: cf-promise -v listed both "lax-it-web01-prod01" and "lax_it_web01_prod01"; so I tried using the "lax-it-web01-prod01" class and i

Cfengine Help: Re: "irreconcilable constraints" error when trying to set a role class based on a hostname. (Was Re: Machine types)

2010-09-24 Thread no-reply
Forum: Cfengine Help Subject: Re: "irreconcilable constraints" error when trying to set a role class based on a hostname. (Was Re: Machine types) Author: neilhwatson Link to topic: https://cfengine.com/forum/read.php?3,18468,18475#msg-18475 I'm going to go off on a rant here. D

Re: "irreconcilable constraints" error when trying to set a role class based on a hostname. (Was Re: Machine types)

2010-09-24 Thread Nicolas Charles
On 24/09/2010 03:08, Aleksey Tsalolikhin wrote: > Problem: How to determine machine role from the hostname using Cfengine? > > Data: My server hostnames contain location code, department code, > type (web/db/etc.) and environment (stage/prod/dev). > > For example: "lax-it-web01-prod01". > Locati

"irreconcilable constraints" error when trying to set a role class based on a hostname. (Was Re: Machine types)

2010-09-23 Thread Aleksey Tsalolikhin
Problem: How to determine machine role from the hostname using Cfengine? Data: My server hostnames contain location code, department code, type (web/db/etc.) and environment (stage/prod/dev). For example: "lax-it-web01-prod01". Location: Los Angeles Department: IT Primary role: Web (first serv

Re: Machine types

2010-09-22 Thread Francisco Reyes
Michael Potter writes: >can do something like: >"alt_class" or => { "linux", "solaris", fileexists("/etc/fstab") }; That is where I got my idea from. All the machines are linux. > hostnames are very descriptive and indicate 1) the machine role (e.g. > webserver, data-server) 2) the mac

Re: Machine types

2010-09-22 Thread Michael Potter
ot;/etc/fstab") }; > > Could one just use fileexists to define classes to target different machine > types? > > For example creating: > /cfengine-machine-type-smtp > /cfengine-machine-type-web > /cfengine-machine-type-db > > So each type of machine would only have

Re: Machine types

2010-09-22 Thread michoski
On 9/22/10 12:02 PM, "Francisco Reyes" wrote: > Mike Hoskins writes: > >> How many hosts? Machine types? > > About 60 hosts with 3 main types. Cool. >> For starters (I know it is just boring semantics, sorry if it points out the >> obvious) -- pick

Re: Machine types

2010-09-22 Thread Francisco Reyes
Mike Hoskins writes: > How many hosts? Machine types? About 60 hosts with 3 main types. > For starters (I know it is just boring semantics, sorry if it points out the > obvious) -- pick some central dir (beside /) to hold your semaphores (files) > lest your fs become untidy.

Re: Machine types

2010-09-22 Thread Francisco Reyes
Mark Burgess writes: > >> With lots of help from Michael Ciavarella I got an initial test setup going. >> The first thing that became obvious is that there wasn't a straightfoward >> way to define groups of machines for receiving certain tasks/files. > > classes: > > "mygroup" or => { "host1

Re: Machine types

2010-09-22 Thread Mark Burgess
> With lots of help from Michael Ciavarella I got an initial test setup going. > The first thing that became obvious is that there wasn't a straightfoward > way to define groups of machines for receiving certain tasks/files. classes: "mygroup" or => { "host1", "host2", "host3" }; This i

Re: Machine types

2010-09-22 Thread Mike Hoskins
les. > > Looking at the official tutorial at > http://www.cfengine.org/manuals/cf3-tutorial.html#Decisions I see that one > can do something like: > "alt_class" or => { "linux", "solaris", fileexists("/etc/fstab") }; > > Could one jus

Machine types

2010-09-22 Thread Francisco Reyes
s/cf3-tutorial.html#Decisions I see that one can do something like: "alt_class" or => { "linux", "solaris", fileexists("/etc/fstab") }; Could one just use fileexists to define classes to target different machine types? For example creating: /cfengine-machin