<%# GOV.UK Mini Environment Admin Copyright © 2018 Christopher Baines This file is part of the GOV.UK Mini Environment Admin. The GOV.UK Mini Environment Admin is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The GOV.UK Mini Environment Admin is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with the GOV.UK Mini Environment Admin. If not, see . %> Back to list

Create a new mini environment

Step 1 of 3
Choose name
Select services
Launch
<%= form_with(model: @mini_environment, url: { action: "create" }, html: { class: 'form-horizontal' }) do |f| %>
<%= f.label :name, class: 'col-sm-2 control-label' %>
<%= f.text_field :name, class: 'form-control' %> Choose a name for your mini environment. This will form part of the URL used to access it.
<%= f.submit "Next: Select services", class: 'btn btn-lg btn-success' %>

Signon users

This user will be created automatically. To allow the creation of additional users, pick the Admin or Superadmin roles.

The password will be provided when the mini environment is created.

    <% @mini_environment.signon_user_openstructs.each do |signon_user| %>
  • <%= f.fields_for :signon_users, signon_user do |signon_users_form| %>
    <%= signon_users_form.label :name, class: 'col-sm-3 control-label' %>
    <%= signon_users_form.text_field :name, class: 'form-control' %>
    <%= signon_users_form.label :email, 'Email address', class: 'col-sm-3 control-label' %>
    <%= signon_users_form.text_field :email, class: 'form-control' %>
    <%= signon_users_form.label :role, class: 'col-sm-3 control-label' %>
    <%= signon_users_form.select( :role, [ 'Normal', 'Organisation Admin', 'Super Organisation Admin', 'Admin', 'Superadmin' ].map { |role| [role, role.parameterize(separator: '_')] }, { selected: 'admin' }, { class: 'form-control'} ) %>
    <% end %>
  • <% end %>

Advanced options

<%= f.label :govuk_guix_revision_id, 'Revision', class: 'col-sm-2 control-label' %>
<%= f.collection_select( :govuk_guix_revision_id, GovukGuix::Revision.where(archived: false), :commit_hash, :commit_hash, {}, { class: 'form-control' }, ) %> By default the latest set of software is used. If you want to use specific versions of services, select a different revision here.
<%= f.label :backend, class: 'col-sm-2 control-label' %>
<%= f.grouped_collection_select( :backend, Backends.classes_with_backends, :all, :label, :type_and_id, :label, {}, { class: 'form-control' }, ) %> Choose the backend to use. This controls the resources used to run the mini environment.
<% end %>