<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Feb 29, 2016 at 2:41 PM, Lalatendu Mohanty <span dir="ltr"><<a href="mailto:lmohanty@redhat.com" target="_blank">lmohanty@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF"><span class="">
    <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 href="mailto:bex@pobox.com" target="_blank"></a><a href="mailto:bex@pobox.com" target="_blank">bex@pobox.com</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 href="mailto:budhram.gurung01@gmail.com" target="_blank"></a><a href="mailto:budhram.gurung01@gmail.com" target="_blank">budhram.gurung01@gmail.com</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><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>2. Trigger the plugin if it has "VARIANT_ID" as "adb"  or  "cdk".</div><div><br></div><div>Please acknowledge.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"> </div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div text="#000000" bgcolor="#FFFFFF"> <br></div></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_______________________________________________<br>
Container-tools mailing list<br>
<a href="mailto:Container-tools@redhat.com">Container-tools@redhat.com</a><br>
<a 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><div><br></div>-- <br><div class="gmail_signature"><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>
</div></div>