-
Notifications
You must be signed in to change notification settings - Fork 16
Generate TLS certs during provisioning #21
Comments
From @bexelbie on November 22, 2015 21:12 @LalatenduMohanty how does the prompting for registration for the RHEL CDK work? could we adapt that? |
From @strzibny on November 23, 2015 10:27 @bexelbie What would be the use case? You want automatic way of exposing the env variables or? Something I suggested here projectatomic/vagrant-adbinfo#13 but as part of vagrant up process or? Of course technically speaking I can help. |
From @LalatenduMohanty on November 23, 2015 10:37 @bexelbie RHEL CDK expect the user to install the plugin. I does not happen automatically. I think we need to sync with the team which is working on a installer for CDK. |
From @bexelbie on November 23, 2015 11:20 @strzibny @strizbny I'd like to see vagrant adbinfo run automatically after vagrant up. It seems that vagrant register is called automatically as part of vagrant up, somehow. Re #13 can you provide some advice in the best way to export those variables automatically from Python? My foo there is not as strong as it should be or I need more coffee and sleep. |
From @bexelbie on November 23, 2015 11:20 @LalatenduMohanty @LalatenduMohanty I meant auto-run after vagrant up, not auto-install. |
From @LalatenduMohanty on November 23, 2015 11:27 @bexelbie ah, I missed that. Yes, if you have vagrant-registration installed and it is a RHEL guest , its asks for username and password for registration every time you do a "vagrant up" . I think its good idea to put auto detection (guest capability) code in the plugin. |
From @bexelbie on November 23, 2015 12:15 @LalatenduMohanty yes, I think having something we can use to detect an ADB would be a huge help. Can you walk me through the methodology? |
@strzibny : There are two actions which are performed on the execution of plugin
We wanted to 1 to happen when the box is up (provisioning step), while the printing of docker daemon information can happen while user execute the plugin. |
We are now re-generating the certs as part of the vagrant up. Closing the issue. |
Can you clarify this? On each 'vagrant up' or just on the first (aka during provisioning). Also you are saying that you are generating the certs on 'vagrant up', do you also copy them to the host at this stage? Basically 'vagrant service-manager env docker' is in this case just dumping some known "settings". Nothing gets generated or copied at this stage, right? |
@hferentschik during vagrant up, after the nics are configured, the docker certs are regenerated with the proper IP addresses. Nothing is copied to the host at that time. The copy occurs during the first |
@bexelbie Thanks for the info. As I mentioned on another issue, the user experience is already much better now when calling Here are some more thoughts around this. ATM the following variables are set |
Created this issue as a follow up - #121 |
See also #120 |
See issue #122 |
From @bexelbie on November 22, 2015 12:37
Plugin should run automatically when the ADB is started like https://github.com/projectatomic/adb-vagrant-registration/tree/master/lib/vagrant-registration
@strzibny can you provide any guidance?
Copied from original issue: projectatomic/vagrant-adbinfo#34
The text was updated successfully, but these errors were encountered: