diff --git a/dashboard/windc/templates/windc/_dc_help.html b/dashboard/windc/templates/windc/_dc_help.html new file mode 100644 index 0000000..1cb4efc --- /dev/null +++ b/dashboard/windc/templates/windc/_dc_help.html @@ -0,0 +1,2 @@ +{% load i18n %} +

{% blocktrans %}You can deploy few domain controllers with one name.{% endblocktrans %}

\ No newline at end of file diff --git a/dashboard/windc/templates/windc/_iis_help.html b/dashboard/windc/templates/windc/_iis_help.html new file mode 100644 index 0000000..e8004c8 --- /dev/null +++ b/dashboard/windc/templates/windc/_iis_help.html @@ -0,0 +1,2 @@ +{% load i18n %} +

{% blocktrans %}You can deploy few Internet Information Services in one domain.{% endblocktrans %}

\ No newline at end of file diff --git a/dashboard/windc/workflows.py b/dashboard/windc/workflows.py index 292a643..385da51 100644 --- a/dashboard/windc/workflows.py +++ b/dashboard/windc/workflows.py @@ -61,7 +61,6 @@ class SelectProjectUserAction(workflows.Action): class SelectProjectUser(workflows.Step): action_class = SelectProjectUserAction - contributes = ("project_id", "user_id") class ConfigureWinDCAction(workflows.Action): @@ -69,6 +68,10 @@ class ConfigureWinDCAction(workflows.Action): required=False, help_text=_("A name of new domain.")) + dc_net_name = forms.CharField(label=_("Domain NetBIOS Name"), + required=False, + help_text=_("A NetBIOS name of new domain.")) + dc_count = forms.IntegerField(label=_("Domain Controllers Count"), required=True, min_value=1, @@ -76,6 +79,19 @@ class ConfigureWinDCAction(workflows.Action): initial=1, help_text=_("Domain Controllers count.")) + adm_password = forms.CharField(widget=forms.PasswordInput, + label=_("Administrator password"), + required=False, + help_text=_("Password for " + "administrator account.")) + + recovery_password = forms.CharField(widget=forms.PasswordInput, + label=_("Recovery password"), + required=False, + help_text=_("Password for " + "Active Directory " + "Recovery Mode.")) + class Meta: name = _("Domain Controllers") help_text_template = ("project/windc/_dc_help.html") @@ -83,7 +99,6 @@ class ConfigureWinDCAction(workflows.Action): class ConfigureWinDC(workflows.Step): action_class = ConfigureWinDCAction - #contributes = ("windows_domain_controller",) class ConfigureWinIISAction(workflows.Action): @@ -110,7 +125,7 @@ class ConfigureWinIISAction(workflows.Action): class ConfigureWinIIS(workflows.Step): action_class = ConfigureWinIISAction - #contributes = ("windows_iis",) + class CreateWinService(workflows.Workflow): slug = "create"