<div dir="ltr"><br><br>Dne středa, 5. března 2014 17:46:03 UTC+1 Marek Hulán napsal(a):<blockquote class="gmail_quote" style="margin: 0;margin-left: 0.8ex;border-left: 1px #ccc solid;padding-left: 1ex;">On Wednesday 05 of March 2014 07:23:41 Jirka Tomášek wrote:
<br>> Dne úterý, 4. března 2014 16:10:06 UTC+1 Petr Chalupa napsal(a):
<br>> > Hello guys,
<br>> > 
<br>> > I would like to start discussion about how the integration of
<br>> > Orchestration and Wizard will look like.
<br>> > 
<br>> > The parts are:
<br>> > 1. Collecting the configuration of OS (OpenStack) infrastructure
<br>> > 2. Configuring Foreman's HostGroups and other stuff based on that
<br>> > configuration
<br>> > 3. Orchestrate the provisioning of the whole OS infrastructure in the
<br>> > right order using configured HostGroups and Dynflow.
<br>> > 
<br>> > I am thinking that 1. and 2. will be part of the Wizard and 3. will be
<br>> > the orchestration's job.
<br>> > 
<br>> > I am assuming that 2. is ±simple function using seed data and
<br>> > user-provided configuration that creates configured HostGroups. Meaning
<br>> > it does not need any of the workflow engine stuff that Dynflow provides.
<br>> > 
<br>> > If so then developing these in parallel and connecting them later should
<br>> > be quite easy. I and Martyn can simulate the OS infrastructure
<br>> > provisioning with blank hosts for now.
<br>> > 
<br>> > Petr
<br>> 
<br>> Hey,
<br>> 
<br>> Regarding the wizard, I have been looking around for rails solutions and
<br>> Wicked gem [1] seems like something we could use for steps 1 and 2.  As you
<br>> said, we basically need form with several steps that gets validated and
<br>> submitted.
<br>> 
<br>> I am not sure if Foreman already uses some kind of wizard which we might
<br>> use instead of Wicked. Please let me know if there is something like that.
<br>> 
<br>> [1]
<br>> <a href="http://railscasts.com/episodes/346-wizard-forms-with-wicked?view=asciicast" target="_blank" onmousedown="this.href='http://www.google.com/url?q\75http%3A%2F%2Frailscasts.com%2Fepisodes%2F346-wizard-forms-with-wicked%3Fview%3Dasciicast\46sa\75D\46sntz\0751\46usg\75AFQjCNECJyGKuXaPMcOgOq1s8P_lIXgIRA';return true;" onclick="this.href='http://www.google.com/url?q\75http%3A%2F%2Frailscasts.com%2Fepisodes%2F346-wizard-forms-with-wicked%3Fview%3Dasciicast\46sa\75D\46sntz\0751\46usg\75AFQjCNECJyGKuXaPMcOgOq1s8P_lIXgIRA';return true;">http://railscasts.com/<wbr>episodes/346-wizard-forms-<wbr>with-wicked?view=asciicast</a>
<br>> 
<br>> Jirka
<br>
<br>Foreman does not use any 3rd party wizard tool. You can see wizard when you 
<br>create new taxonomy (location or organization) or a good example could be 
<br>foreman_setup plugin [1]. So we use own helpers for that.
<br>
<br>Wicked gem seems handy and have no extra dependencies so it should be easy to 
<br>package. Code looks good, my only concern was hardcoded I18n for translations. 
<br>I'm not sure whether it's problem or not, will look at that tomorrow.
<br>
<br>[1]
<br><a href="https://github.com/theforeman/foreman_setup/blob/master/app/controllers/foreman_setup/provisioners_controller.rb" target="_blank" onmousedown="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ftheforeman%2Fforeman_setup%2Fblob%2Fmaster%2Fapp%2Fcontrollers%2Fforeman_setup%2Fprovisioners_controller.rb\46sa\75D\46sntz\0751\46usg\75AFQjCNFkyFi6TMEgITrjXz2V2x4WnMqzTQ';return true;" onclick="this.href='https://www.google.com/url?q\75https%3A%2F%2Fgithub.com%2Ftheforeman%2Fforeman_setup%2Fblob%2Fmaster%2Fapp%2Fcontrollers%2Fforeman_setup%2Fprovisioners_controller.rb\46sa\75D\46sntz\0751\46usg\75AFQjCNFkyFi6TMEgITrjXz2V2x4WnMqzTQ';return true;">https://github.com/theforeman/<wbr>foreman_setup/blob/master/app/<wbr>controllers/foreman_setup/<wbr>provisioners_controller.rb</a>
<br>
<br>-- 
<br>Marek
<br></blockquote><div><br></div><div>As it seems that the wizard is going to be just a large form without need of saving data during the process the process, we can try to split it into fieldsets(wizard steps) and hide/show the steps with jquery. I'd like to look into that tomorrow.</div><div><br></div><div>Jirka</div></div>