<div style="font-family:Calibri, Arial, Helvetica, sans-serif; font-size:12.0pt; color:#1F497D"><div><br></div>
<div><br></div>
<div id="signature-x" style="-webkit-user-select:none; font-family:Calibri, Arial, Helvetica, sans-serif; font-size:12.0pt; color:#1F497D"><div><style id='edit-style'>DD, OL, UL {  padding-left: 2em }
li { padding: 0.1em }
body {   background-color: white;
   line-height: 1.2;
}
blockquote.airwise {
   border-left-color: rgba(0, 0, 0, 0.8);
   border-left-style: solid;
   border-left-width: 0.2em;
   font-family: Times New Roman, Times, Serif;
   margin: 0.5em 1.2em;
   padding-left: 1em;
   padding-top: 0.2em;
   padding-bottom: 0.2em;
}</style>Langdon<br>Platform Architect</div></div></div><div id="quoted_header" style="clear:both;"><br/><div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm"><span style="font-size:11.0pt;font-family:Calibri, Arial, Helvetica, sans-serif"><b>From:</b> Pete Muir<br><b>Sent:</b> Nov 4, 2015 6:21 AM<br><b>To:</b> Rob Stryker<br><b>Cc:</b> developer-tooling@redhat.com; container-tools<br><b>Subject:</b> Re: CDK Server Adapter - First Demo<br></span></div></div><br type='attribution'><div id="quoted_body"><p dir="ltr">The update to the vagrant-registration plugin changed the <br>
configuration parameter names: Try <br>
<br>
<br>
config.registration.username = "#{ENV['SUB_USERNAME']}" <br>
config.registration.password = "#{ENV['SUB_PASSWORD']}" <br>
<br>
<br>
<br>
On 4 November 2015 at 01:32, Rob Stryker <rstryker@redhat.com> wrote: <br>
> Hey all: <br>
> <br>
> Not sure where else to ask this.  I've been trying to get the SUB_USERNAME <br>
> and SUB_PASSWORD stuff to work, but it doesn't seem to ;) <br>
> <br>
> I've modified my {cdk}/components/rhel/rhel-standalone/Vagrantfile  to <br>
> include the lines from the README.md, specifically: <br>
> <br>
> <br>
> Vagrant.configure('2') do |config| <br>
>   # Accepting environment variables <br>
>     config.registration.subscriber_username = ENV['SUB_USERNAME'] <br>
>     config.registration.subscriber_password = ENV['SUB_PASSWORD'] <br>
> <br>
> When I run vagrant commands, even using CLI (outside eclipse) and pass in my <br>
> credentials, I still get prompted to register the machine, and it prompts <br>
> for username/password despite them being passed in via environment <br>
> variables. <br>
> <br>
> I've also double-checked that the process is actually receiving the vars, by <br>
> running  "strings -a  /proc/22883/environ"  and inspecting the environment. <br>
> My credentials are properly passed in, and they are correct.  But the <br>
> vagrant process still prompts me. <br>
> <br>
> If I don't pass the credentials in via environment, I get an error seemingly <br>
> caused by ruby trying to resolve the vars and getting no result... so I know <br>
> vagrant should be seeing these variables.... but it's still prompting me for <br>
> credentials. <br>
> <br>
> This problem is replicatable even when I change the Vagrantfile to hard-code <br>
> the credentials rather than referring to SUB_USERNAME / SUB_PASSWORD <br>
> environment variables. <br>
> <br>
> Not only did I try modifying <br>
> {cdk}/components/rhel/rhel-standalone/Vagrantfile,   I also tried to modify <br>
> ~/.vagrant.d/Vagrantfile <br>
> <br>
> Checking my vagrant-registration plugin, I see <br>
> vagrant-registration-0.0.8.gem in my {cdk}/plugins folder, and an attempt to <br>
> re-install the plugin returns "Installed the plugin 'vagrant-registration <br>
> (0.0.19)'!" but the {cdk}/plugins folder still has the 0.0.8.gem version. <br>
> </p><p dir="ltr">The plugins installed to vagrant end up in a different folder after install. The cdk-1 zip file shipped w/ .8 cdk-2 will (likely) ship with .19</p><p dir="ltr"><br>
> [rob@rawbdor cdk]$ uname -a <br>
> Linux rawbdor 4.1.8-100.fc21.x86_64 #1 SMP Tue Sep 22 12:13:06 UTC 2015 <br>
> x86_64 x86_64 x86_64 GNU/Linux <br>
> <br>
> <br>
> Anyone know who I'd ping for more info? <br>
> <br>
> - Rob Stryker <br>
> <br>
> <br>
> <br>
> <br>
> <br>
> On 10/28/2015 01:07 PM, Rob Stryker wrote: <br>
>> <br>
>> Hey guys: <br>
>> <br>
>> I was asked to make a quick-and-dirty demo of what I've got for a CDK <br>
>> server adapter.   So linking to it here.  It demos creation / start / stop <br>
>> of one server. A server represents a vagrant file. If the vagrant file <br>
>> contains multiple vm's, it'll wait for all of them to start. <br>
>> <br>
>> It basically functions as a vagrantfile server adapter, and doesn't check <br>
>> for anything like a .cdk file/folder, since the cdk installation itself <br>
>> doesn't have such marker files.   I think further discussion will be needed <br>
>> for how openshift / docker tools should interact with this. <br>
>> <br>
>> https://www.dropbox.com/s/hk7ymzf55ttwdmd/cdk_server_adapter.ogv?dl=0 <br>
>> <br>
>> - Rob Stryker <br>
>> <br>
> <br>
<br>
</p>
</div>