<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 02/29/2016 03:16 PM, Navid Shaikh
wrote:<br>
</div>
<blockquote
cite="mid:CAP_6Frb64AP1yxgNc3um1Kpx13PPQJFp94HO=OSZVsQaRNpqew@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Feb 29, 2016 at 2:45 PM, Budh
Ram <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:budhram.gurung01@gmail.com" target="_blank">budhram.gurung01@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote"><span class="">On Mon, Feb
29, 2016 at 2:41 PM, Lalatendu Mohanty <span
dir="ltr"><<a moz-do-not-send="true"
href="mailto:lmohanty@redhat.com"
target="_blank">lmohanty@redhat.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"><span>
<div>On 02/29/2016 02:34 PM, Budh Ram wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">On Mon, Feb
29, 2016 at 2:09 PM, Brian (bex)
Exelbierd <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:bex@pobox.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:bex@pobox.com">bex@pobox.com</a></a>></span>
wrote:<br>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span>On
Feb 26, 2016, at 6:15 PM, Budh
Ram <<a
moz-do-not-send="true"
href="mailto:budhram.gurung01@gmail.com"
target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:budhram.gurung01@gmail.com">budhram.gurung01@gmail.com</a></a>>
wrote:<br>
><br>
> Hi All,<br>
><br>
> We would like to get input
on different ways of enabling
"vagrant service-manager" plugin
[1].<br>
><br>
> We could come up with
following possible ways:<br>
><br>
> 1. Enable for all Vagrant
boxes regardless.<br>
<br>
</span>I think this is too
invasive.<br>
</blockquote>
<div> </div>
<div>I believe this one is default
behavior of every vagrant plugin.
If one don't want feature, then it
should not be installed.</div>
<div> </div>
<blockquote class="gmail_quote"
style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span><br>
> 2. Set "enabled" flag
"true" in Vagrantfile unless we
specify any service(s).<br>
><br>
>
config.servicemanager.enabled =
true<br>
><br>
> or<br>
><br>
>
config.servicemanager.services =
'openshift'<br>
<br>
</span>This would work. I believe
that
"config.service-manager.services =
'docker'" should also be accepted,
even though it is a noop as
pointed out below.<br>
<span><br>
> 3. Detect when to enable
based on a set of
names(particulary box name like
'projectatomic/adb')<br>
<br>
</span>I like box detection. I do
not like detecting it via name.
Could we scan for /etc/release
information? How heavy would this
be on unrelated boxes, especially
non-Linux ones?<br>
</blockquote>
<div><br>
</div>
<div>Yes we can scan
"/etc/os-release" and get the
"VARIANT_ID" as "adb" or "cdk" and
detact against the box mentioned
in Vagrantfile. One concern is
that the box name in Vagrantfile
is combination of "projectatomic"
and "adb"/"cdk". So, we can
extract out "adb" / "cdk" and
compare it. I hope this approach
is fine. </div>
<div> </div>
</div>
</div>
</div>
</blockquote>
<br>
</span> We should just use /etc/os-release to
detect the ADB/CDK box. Vagrant-registration
also only detects RHEL and prompts for user
name and password AFAIR.</div>
</blockquote>
<div><br>
</div>
</span>
<div>Ok. That's great. I think I got the answer.
Here is what I think to trigger the pluggin:</div>
<div>1. Scan "/etc/os-release" file. </div>
</div>
</div>
</div>
</blockquote>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div>2. Trigger the plugin if it has "VARIANT_ID" as
"adb" or "cdk".</div>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Finding out the box and triggering if applicable is the
way to go. +1</div>
<div><br>
</div>
<div>IMO, we should include "Guests" type of plugin feature
[1] to figure out underlying box.</div>
<div><br>
</div>
<div>[1] <a moz-do-not-send="true"
href="https://www.vagrantup.com/docs/plugins/guests.html">https://www.vagrantup.com/docs/plugins/guests.html</a></div>
</div>
</div>
</div>
</blockquote>
<br>
Agree . Vagrant-registration uses the same framework.<br>
<br>
<blockquote
cite="mid:CAP_6Frb64AP1yxgNc3um1Kpx13PPQJFp94HO=OSZVsQaRNpqew@mail.gmail.com"
type="cite">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div> </div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div dir="ltr">
<div class="gmail_extra">
<div class="gmail_quote">
<div><br>
</div>
<div>Please acknowledge.</div>
<div> </div>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> </div>
</blockquote>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div text="#000000" bgcolor="#FFFFFF"> <br>
</div>
</blockquote>
<blockquote class="gmail_quote" style="margin:0px
0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><span
class="">
<div text="#000000" bgcolor="#FFFFFF"> The name
in Vagrantfile can be changed by the user
easily, so it is not a reliable thing.<br>
<br>
-Lala<br>
<br>
</div>
<br>
</span><span class="">_______________________________________________<br>
Container-tools mailing list<br>
<a moz-do-not-send="true"
href="mailto:Container-tools@redhat.com"
target="_blank">Container-tools@redhat.com</a><br>
<a moz-do-not-send="true"
href="https://www.redhat.com/mailman/listinfo/container-tools"
rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/container-tools</a><br>
<br>
</span></blockquote>
</div>
<span class="">
<div><br>
</div>
-- <br>
<div>
<div dir="ltr">
<div style="font-family:arial;font-size:small">Cheers!!!</div>
<div style="font-family:arial;font-size:small">Budh
Ram Gurung</div>
</div>
</div>
</span></div>
</div>
<br>
_______________________________________________<br>
Container-tools mailing list<br>
<a moz-do-not-send="true"
href="mailto:Container-tools@redhat.com">Container-tools@redhat.com</a><br>
<a moz-do-not-send="true"
href="https://www.redhat.com/mailman/listinfo/container-tools"
rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/container-tools</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</blockquote>
<br>
</body>
</html>