[prev in list] [next in list] [prev in thread] [next in thread]
List: cobbler
Subject: Re: [cobbler] using parameterized mgmt classes
From: David Birdsong <david.birdsong () gmail ! com>
Date: 2013-07-30 20:28:01
Message-ID: CABJfL5goR0ZEy-oRAjoFVZedBGa07pUV-NwO12uWtRCvuC1Uxg () mail ! gmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
On Sat, Jul 27, 2013 at 4:49 PM, Greg Chavez <greg.chavez@gmail.com> wrote:
> Ah ha. So for the time being I have to create a separate management class
> object for every unique declaration of a parameterized class.
>
> At a certain point, doesn't it just make sense to say "Cobbler supports
> puppet 100% and support for other tools vary" instead of "Cobbler supports
> configuration management 100%"? How many people use Cobbler with a config
> tool that is not Puppet?
>
I do. I've used Cfengine, Chef, Puppet, and now days I use Ansible.
Please do not cater only to Puppet.
>
> I only say this because I fear we're going in a direction with config
> management that is no longer intuitive. How can I help?
>
>
>
>
> On Sat, Jul 27, 2013 at 12:50 PM, James Cammarata <jimi@sngx.net> wrote:
>
>> The parameters go in the variables section of the mgmt class, not in
>> ksmeta (I will do variable substitutions from ksmeta in the future, but for
>> now it doesn't).
>>
>> On Sat, Jul 27, 2013 at 11:42 AM, Greg Chavez <greg.chavez@gmail.com>wrote:
>>
>>>
>>> I suspect I am being obtuse here. I'm trying to use the arusso/vnc
>>> module from puppet forge which is declared like this:
>>>
>>> class { 'vnc':
>>> refresh => true,
>>> servers => [ 'user' => 'pete',
>>> 'args' => '-geometry 1920x1200 -depth 16' ],
>>> service_ensure => true,
>>> xstartup_template => 'myclass/xstartup.erb',
>>> }
>>>
>>> Via the Web console, I did the following:
>>>
>>> --------------------
>>>
>>> (1) Created management class "vnc":
>>> **** name: vnc
>>> **** class name: vnc
>>> **** parameters/variables: service_ensure xstartup_template refresh
>>> servers
>>>
>>> (2) In system object:
>>> **** selected class "vnc"
>>> **** Added yaml to management parameters which was converted to:
>>>
>>> { service_ensure: True, xstartup_template: vnc/xstartup.erb, refresh:
>>> True, servers: [{'user': 'pete'}, {'args': '-geometry 1920x1200 -depth
>>> 16'}] }
>>>
>>> --------------------
>>>
>>> However, this is what cobbler-ext-node returns for the system:
>>>
>>> ~> cobbler-ext-nodes pete.local
>>> classes:
>>> site: {}
>>> vnc:
>>> refresh: '~'
>>> servers: '~'
>>> service_ensure: '~'
>>> xstartup_template: '~'
>>> environment: production
>>> parameters:
>>> from_cobbler: 1
>>> refresh: true
>>> servers:
>>> - user: pete
>>> - args: -geometry 1920x1200 -depth 16
>>> service_ensure: true
>>> tree: http://@@http_server@@/cblr/links/centos-6.4-x86_64
>>> xstartup_template: vnc/xstartup.erb
>>>
>>> I didn't think that this would work the way I did it, but I was hoping
>>> the resultant breakage would give me a clue as to how to fix. No such
>>> luck. I am stumped.
>>>
>>> Can anyone tell me what I'm doing wrong? Mahalo in advance.
>>>
>>> --
>>> \*..+.-
>>> --Greg Chavez
>>> +//..;};
>>>
>>> _______________________________________________
>>> cobbler mailing list
>>> cobbler@lists.fedorahosted.org
>>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>>
>>>
>>
>> _______________________________________________
>> cobbler mailing list
>> cobbler@lists.fedorahosted.org
>> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>>
>>
>
>
> --
> \*..+.-
> --Greg Chavez
> +//..;};
>
> _______________________________________________
> cobbler mailing list
> cobbler@lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/cobbler
>
>
[Attachment #5 (text/html)]
<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, \
Jul 27, 2013 at 4:49 PM, Greg Chavez <span dir="ltr"><<a \
href="mailto:greg.chavez@gmail.com" \
target="_blank">greg.chavez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex"><div dir="ltr">Ah ha. So for the time being I have to create \
a separate management class object for every unique declaration of a parameterized \
class.<div>
<br></div><div>At a certain point, doesn't it just make sense to say \
"Cobbler supports puppet 100% and support for other tools vary" instead of \
"Cobbler supports configuration management 100%"? How many people use \
Cobbler with a config tool that is not Puppet?</div>
</div></blockquote><div><br></div><div>I do. I've used Cfengine, Chef, Puppet, \
and now days I use Ansible.</div><div><br></div><div>Please do not cater only to \
Puppet.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div><br></div><div>I only say this because I fear we're going in a direction \
with config management that is no longer intuitive. How can I \
help?<br><div><br></div><div><br></div></div></div><div class="HOEnZb"><div \
class="h5">
<div class="gmail_extra">
<br><br><div class="gmail_quote">On Sat, Jul 27, 2013 at 12:50 PM, James Cammarata \
<span dir="ltr"><<a href="mailto:jimi@sngx.net" \
target="_blank">jimi@sngx.net</a>></span> wrote:<br><blockquote \
class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc \
solid;padding-left:1ex">
The parameters go in the variables section of the mgmt class, not in ksmeta (I will \
do variable substitutions from ksmeta in the future, but for now it \
doesn't).<div><br></div><div><div class="gmail_quote"><div><div>
On Sat, Jul 27, 2013 at 11:42 AM, Greg Chavez <span dir="ltr"><<a \
href="mailto:greg.chavez@gmail.com" \
target="_blank">greg.chavez@gmail.com</a>></span> wrote:<br> \
</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px \
#ccc solid;padding-left:1ex"><div><div><div dir="ltr"><font face="courier new, \
monospace"><br>I suspect I am being obtuse here. I'm trying to use the \
arusso/vnc module from puppet forge which is declared like this:<br>
<br>class { 'vnc':<br> refresh => true,<br>
servers => [ 'user' => 'pete',<br> \
'args' => '-geometry 1920x1200 -depth 16' ],</font><div><font \
face="courier new, monospace"> service_ensure => true,<br>
xstartup_template => 'myclass/xstartup.erb',<br>}<br><br>Via the Web \
console, I did the following:</font></div><div><font face="courier new, \
monospace"><br></font></div><div><font face="courier new, \
monospace">--------------------</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier \
new, monospace">(1) Created management class "vnc":</font></div><div><font \
face="courier new, monospace">**** name: vnc</font></div>
<div><font face="courier new, monospace">**** class name: vnc</font></div><div><font \
face="courier new, monospace">**** parameters/variables: service_ensure \
xstartup_template refresh servers</font></div><div><font face="courier new, \
monospace"><br>
</font></div><div><font face="courier new, monospace">(2) In system object:<br>**** \
selected class "vnc"</font></div><div><font face="courier new, \
monospace">**** Added yaml to management parameters which was converted \
to:</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier \
new, monospace">{ service_ensure: True, xstartup_template: vnc/xstartup.erb, refresh: \
True, servers: [{'user': 'pete'}, {'args': '-geometry \
1920x1200 -depth 16'}] }<br>
<br></font><span style="font-family:'courier \
new',monospace">--------------------</span></div><div><font face="courier new, \
monospace"><br></font></div><div><font face="courier new, monospace">However, this is \
what cobbler-ext-node returns for the system:</font></div>
<div><font face="courier new, monospace"><br></font></div><div><font face="courier \
new, monospace"><div>~> cobbler-ext-nodes \
pete.local</div><div><div>classes:</div><div> site: {}</div><div> vnc:</div><div> \
refresh: '~'</div>
<div> servers: '~'</div><div> service_ensure: '~'</div><div> \
xstartup_template: '~'</div><div>environment: \
production</div><div>parameters:</div><div> from_cobbler: 1</div><div> refresh: \
true</div>
<div> servers:<br></div><div> - user: pete</div><div> - args: -geometry 1920x1200 \
-depth 16</div><div> service_ensure: true</div><div> tree: \
http://@@http_server@@/cblr/links/centos-6.4-x86_64</div><div> xstartup_template: \
vnc/xstartup.erb<br>
</div></div><div><br></div><div>I didn't think that this would work the way I did \
it, but I was hoping the resultant breakage would give me a clue as to how to fix. \
No such luck. I am stumped.</div><div><br></div></font><font face="courier new, \
monospace"><div>
Can anyone tell me what I'm doing wrong? Mahalo in \
advance.</div><div><br></div></font></div><div><font face="courier new, \
monospace">--<br>\*..+.-<br>--Greg Chavez<br>+//..;};</font></div></div> \
<br></div></div>_______________________________________________<br> cobbler mailing \
list<br> <a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a><br> <a \
href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a><br> \
<br></blockquote></div><br></div> \
<br>_______________________________________________<br> cobbler mailing list<br>
<a href="mailto:cobbler@lists.fedorahosted.org" \
target="_blank">cobbler@lists.fedorahosted.org</a><br> <a \
href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a><br> \
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>\*..+.-<br>--Greg \
Chavez<br>+//..;}; </div>
</div></div><br>_______________________________________________<br>
cobbler mailing list<br>
<a href="mailto:cobbler@lists.fedorahosted.org">cobbler@lists.fedorahosted.org</a><br>
<a href="https://lists.fedorahosted.org/mailman/listinfo/cobbler" \
target="_blank">https://lists.fedorahosted.org/mailman/listinfo/cobbler</a><br> \
<br></blockquote></div><br></div></div>
[Attachment #6 (text/plain)]
_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/cobbler
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic