foreman_acd 0.4.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +84 -84
- data/app/controllers/foreman_acd/ansible_playbooks_controller.rb +103 -11
- data/app/controllers/foreman_acd/api/v2/ansible_playbooks_controller.rb +21 -3
- data/app/controllers/foreman_acd/api/v2/app_definitions_controller.rb +1 -0
- data/app/controllers/foreman_acd/api/v2/app_instances_controller.rb +9 -1
- data/app/controllers/foreman_acd/app_definitions_controller.rb +117 -15
- data/app/controllers/foreman_acd/app_instances_controller.rb +104 -30
- data/app/controllers/foreman_acd/concerns/ansible_playbook_parameters.rb +1 -1
- data/app/controllers/foreman_acd/concerns/app_definition_parameters.rb +1 -1
- data/app/controllers/foreman_acd/concerns/app_instance_mixins.rb +36 -0
- data/app/controllers/foreman_acd/concerns/app_instance_parameters.rb +1 -1
- data/app/controllers/foreman_acd/remote_execution_controller.rb +36 -23
- data/app/controllers/ui_acd_controller.rb +46 -0
- data/app/lib/actions/foreman_acd/deploy_all_hosts.rb +47 -0
- data/app/lib/actions/foreman_acd/run_configurator.rb +45 -0
- data/app/models/concerns/foreman_acd/host_managed_extensions.rb +39 -0
- data/app/models/foreman_acd/acd_provider.rb +36 -0
- data/app/models/foreman_acd/ansible_playbook.rb +32 -14
- data/app/models/foreman_acd/app_definition.rb +24 -1
- data/app/models/foreman_acd/app_instance.rb +85 -5
- data/app/models/foreman_acd/foreman_host.rb +31 -0
- data/app/models/foreman_acd/taxonomy_extensions.rb +17 -0
- data/app/services/foreman_acd/acd_proxy_proxy_selector.rb +17 -0
- data/app/services/foreman_acd/app_configurator.rb +64 -36
- data/app/services/foreman_acd/app_deployer.rb +83 -48
- data/app/services/foreman_acd/inventory_creator.rb +36 -25
- data/app/views/foreman_acd/ansible_playbooks/_form.html.erb +50 -7
- data/app/views/foreman_acd/ansible_playbooks/edit.html.erb +9 -1
- data/app/views/foreman_acd/ansible_playbooks/index.html.erb +3 -3
- data/app/views/foreman_acd/api/v2/ansible_playbooks/base.json.rabl +2 -0
- data/app/views/foreman_acd/api/v2/ansible_playbooks/index.json.rabl +2 -0
- data/app/views/foreman_acd/api/v2/ansible_playbooks/show.json.rabl +6 -0
- data/app/views/foreman_acd/api/v2/app_definitions/base.json.rabl +2 -0
- data/app/views/foreman_acd/api/v2/app_definitions/index.json.rabl +2 -0
- data/app/views/foreman_acd/api/v2/app_definitions/show.json.rabl +6 -0
- data/app/views/foreman_acd/api/v2/app_instances/base.json.rabl +3 -1
- data/app/views/foreman_acd/api/v2/app_instances/index.json.rabl +2 -0
- data/app/views/foreman_acd/api/v2/app_instances/show.json.rabl +2 -0
- data/app/views/foreman_acd/app_definitions/_form.html.erb +9 -1
- data/app/views/foreman_acd/app_definitions/edit.html.erb +10 -5
- data/app/views/foreman_acd/app_definitions/import.html.erb +20 -1
- data/app/views/foreman_acd/app_definitions/index.html.erb +5 -8
- data/app/views/foreman_acd/app_instances/_form.html.erb +4 -4
- data/app/views/foreman_acd/app_instances/edit.html.erb +10 -0
- data/app/views/foreman_acd/app_instances/index.html.erb +93 -14
- data/app/views/foreman_acd/app_instances/report.html.erb +12 -4
- data/app/views/templates/job/run_acd_ansible_playbook.erb +28 -15
- data/app/views/ui_acd/app_definition.json.rabl +1 -1
- data/app/views/ui_acd/host_report.json.rabl +4 -0
- data/app/views/ui_acd/report_data.json.rabl +10 -0
- data/app/views/ui_acd/validate_hostname.json.rabl +6 -0
- data/config/routes.rb +12 -3
- data/db/migrate/20200917120220_add_ansible_playbook_id.rb +1 -1
- data/db/migrate/20201016002819_add_ansible_vars_all_to_app_definitions.rb +3 -0
- data/db/migrate/20201016104338_add_ansible_vars_all_to_app_instances.rb +3 -0
- data/db/migrate/20210112111548_add_organization_to_app_instance.rb +22 -0
- data/db/migrate/20210112113853_add_location_to_app_instance.rb +8 -0
- data/db/migrate/20210202141658_create_foreman_hosts.rb +24 -0
- data/db/migrate/20210204111306_remove_hosts_from_app_instances.rb +8 -0
- data/db/migrate/20210209091014_rename_acd_tables.rb +16 -0
- data/db/migrate/20210216083522_add_last_progress_report.rb +8 -0
- data/db/migrate/20210216091529_add_last_deploy_task.rb +8 -0
- data/db/migrate/20210316151145_add_git_commit_to_ansible_playbooks.rb +8 -0
- data/db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb +8 -0
- data/db/migrate/20210818125913_add_is_existing_host_to_foreman_host.rb +8 -0
- data/db/migrate/20210902110645_add_initial_configure_task.rb +8 -0
- data/db/seeds.d/62_acd_proxy_feature.rb +4 -0
- data/db/seeds.d/75-job_templates.rb +6 -1
- data/lib/foreman_acd/engine.rb +40 -3
- data/lib/foreman_acd/plugin.rb +60 -45
- data/lib/foreman_acd/version.rb +1 -1
- data/lib/foreman_acd.rb +30 -0
- data/lib/tasks/foreman_acd_tasks.rake +0 -12
- data/locale/en/foreman_acd.edit.po +326 -0
- data/locale/en/foreman_acd.po +232 -2
- data/{app/controllers/foreman_acd/api/v2/app_playbooks_controller.rb → locale/en/foreman_acd.po.time_stamp} +0 -0
- data/locale/foreman_acd.pot +343 -8
- data/package.json +8 -8
- data/test/controllers/ansible_playbooks_controller_test.rb +27 -0
- data/test/controllers/app_instances_controller_test.rb +8 -3
- data/test/controllers/ui_acd_controller_test.rb +22 -6
- data/test/factories/foreman_acd_factories.rb +18 -4
- data/test/models/acd_provider_test.rb +37 -0
- data/test/models/ansible_playbook_test.rb +11 -0
- data/test/models/app_definition_test.rb +1 -1
- data/test/models/app_instance_test.rb +2 -0
- data/test/models/concerns/host_extensions_test.rb +26 -0
- data/test/models/foreman_host_test.rb +12 -0
- data/webpack/__mocks__/foremanReact/API.js +2 -0
- data/webpack/__mocks__/foremanReact/common/I18n.js +3 -0
- data/webpack/__mocks__/foremanReact/common/helpers.js +2 -0
- data/webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalActions.js +2 -0
- data/webpack/__mocks__/foremanReact/components/ForemanModal.js +7 -0
- data/webpack/__mocks__/foremanReact/components/common/forms/CommonForm.js +2 -0
- data/webpack/__mocks__/foremanReact/components/common/forms/TextInput.js +2 -0
- data/webpack/__mocks__/foremanReact/components/hosts/powerStatus.js +1 -0
- data/webpack/__snapshots__/helper.test.js.snap +14 -0
- data/webpack/components/ApplicationDefinition/ApplicationDefinition.js +55 -21
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js +14 -0
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionConstants.js +2 -0
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js +48 -1
- data/webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js +4 -0
- data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionConfData_1.fixtures.js +288 -0
- data/webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js +79 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js +26 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js +119 -0
- data/webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js +41 -0
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinition.test.js.snap +225 -0
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap +3033 -0
- data/webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap +299 -0
- data/webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js +2 -1
- data/webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js +41 -0
- data/webpack/components/ApplicationDefinition/components/__tests__/__snapshots__/AnsiblePlaybookSelector.test.js.snap +121 -0
- data/webpack/components/ApplicationDefinition/index.js +8 -0
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.js +214 -0
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.scss +1 -0
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportActions.js +161 -0
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js +6 -0
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js +79 -0
- data/webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js +8 -0
- data/webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportConfData_1.fixtures.js +129 -0
- data/webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js +29 -0
- data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js +20 -0
- data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js +43 -0
- data/webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportSelectors.test.js +29 -0
- data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImport.test.js.snap +62 -0
- data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportReducer.test.js.snap +362 -0
- data/webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportSelectors.test.js.snap +130 -0
- data/webpack/components/ApplicationDefinitionImport/index.js +32 -0
- data/webpack/components/ApplicationInstance/ApplicationInstance.js +153 -45
- data/webpack/components/ApplicationInstance/ApplicationInstanceActions.js +120 -6
- data/webpack/components/ApplicationInstance/ApplicationInstanceConstants.js +5 -0
- data/webpack/components/ApplicationInstance/ApplicationInstanceHelper.js +15 -0
- data/webpack/components/ApplicationInstance/ApplicationInstanceReducer.js +77 -22
- data/webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js +4 -0
- data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceConfData_1.fixtures.js +263 -0
- data/webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js +80 -0
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js +24 -0
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js +131 -0
- data/webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js +44 -0
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap +299 -0
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceReducer.test.js.snap +2990 -0
- data/webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap +276 -0
- data/webpack/components/ApplicationInstance/components/AppDefinitionSelector.js +1 -0
- data/webpack/components/ApplicationInstance/components/Service.js +1 -1
- data/webpack/components/ApplicationInstance/components/ServiceCounter.js +1 -1
- data/webpack/components/ApplicationInstance/helper.js +0 -0
- data/webpack/components/ApplicationInstance/index.js +8 -0
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.js +128 -60
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.scss +17 -0
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportActions.js +40 -50
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js +5 -4
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js +19 -14
- data/webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js +4 -1
- data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportData_1.fixtures.js +349 -0
- data/webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js +20 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js +47 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js +41 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js +26 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReport.test.js.snap +7 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap +718 -0
- data/webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap +347 -0
- data/webpack/components/ApplicationInstanceReport/components/ReportViewer.js +1 -1
- data/webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js +24 -0
- data/webpack/components/ApplicationInstanceReport/components/__tests__/__snapshots__/ReportViewer.test.js.snap +24 -0
- data/webpack/components/ApplicationInstanceReport/index.js +8 -3
- data/webpack/components/ExistingHostSelection/ExistingHostSelection.js +104 -0
- data/webpack/components/ExistingHostSelection/ExistingHostSelection.scss +15 -0
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionActions.js +71 -0
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionConstants.js +4 -0
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionHelper.js +0 -0
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js +90 -0
- data/webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js +8 -0
- data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData_1.fixtures.js +191 -0
- data/webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js +203 -0
- data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js +19 -0
- data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionReducer.test.js +59 -0
- data/webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionSelectors.test.js +36 -0
- data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelection.test.js.snap +35 -0
- data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionReducer.test.js.snap +614 -0
- data/webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionSelectors.test.js.snap +27 -0
- data/webpack/components/ExistingHostSelection/components/ServiceSelector.js +48 -0
- data/webpack/components/ExistingHostSelection/components/__tests__/ServiceSelector.test.js +35 -0
- data/webpack/components/ExistingHostSelection/components/__tests__/__snapshots__/ServiceSelector.test.js.snap +77 -0
- data/webpack/components/ExistingHostSelection/index.js +26 -0
- data/webpack/components/ParameterSelection/ParameterSelection.js +138 -15
- data/webpack/components/ParameterSelection/ParameterSelection.scss +7 -0
- data/webpack/components/ParameterSelection/ParameterSelectionActions.js +52 -9
- data/webpack/components/ParameterSelection/ParameterSelectionConstants.js +3 -0
- data/webpack/components/ParameterSelection/ParameterSelectionReducer.js +62 -25
- data/webpack/components/ParameterSelection/ParameterSelectionSelectors.js +1 -0
- data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionData_1.fixtures.js +116 -84
- data/webpack/components/ParameterSelection/__fixtures__/parameterSelectionReducer.fixtures.js +10 -4
- data/webpack/components/ParameterSelection/__tests__/ParameterSelection.test.js +36 -46
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionReducer.test.js +33 -25
- data/webpack/components/ParameterSelection/__tests__/ParameterSelectionSelectors.test.js +6 -6
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelection.test.js.snap +84 -112
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap +1488 -872
- data/webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap +117 -79
- data/webpack/components/ParameterSelection/index.js +2 -1
- data/webpack/components/SyncGitRepo/SyncGitRepo.js +202 -0
- data/webpack/components/SyncGitRepo/SyncGitRepo.scss +1 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoActions.js +123 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoConstants.js +8 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoReducer.js +80 -0
- data/webpack/components/SyncGitRepo/SyncGitRepoSelectors.js +6 -0
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js +7 -0
- data/webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js +44 -0
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js +27 -0
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoReducer.test.js +95 -0
- data/webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js +32 -0
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap +31 -0
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoReducer.test.js.snap +137 -0
- data/webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap +13 -0
- data/webpack/components/SyncGitRepo/components/FormTextInput.js +42 -0
- data/webpack/components/SyncGitRepo/components/ScmTypeSelector.js +47 -0
- data/webpack/components/SyncGitRepo/index.js +28 -0
- data/webpack/components/common/DeleteTableEntry.js +18 -4
- data/webpack/components/common/EditTableEntry.js +50 -0
- data/webpack/components/common/ExtTextInput.js +43 -0
- data/webpack/components/common/LockTableEntry.js +60 -0
- data/webpack/components/common/__tests__/EditTableEntry.test.js +53 -0
- data/webpack/components/common/__tests__/LockTableEntry.test.js +35 -0
- data/webpack/components/common/__tests__/__snapshots__/DeleteTableEntry.test.js.snap +40 -2
- data/webpack/components/common/__tests__/__snapshots__/EditTableEntry.test.js.snap +81 -0
- data/webpack/components/common/__tests__/__snapshots__/LockTableEntry.test.js.snap +60 -0
- data/webpack/helper.js +20 -1
- data/webpack/helper.test.js +37 -0
- data/webpack/index.js +7 -0
- data/webpack/js-yaml.js +3874 -0
- data/webpack/reducer.js +16 -1
- metadata +182 -11
- data/app/views/foreman_acd/app_instances/deploy.html.erb +0 -19
- data/webpack/components/common/EasyHeaderFormatter.js +0 -18
- data/webpack/components/common/__tests__/__snapshots__/AddParameter.test.js.snap +0 -35
- data/webpack/components/common/__tests__/__snapshots__/DeleteParameter.test.js.snap +0 -41
data/webpack/reducer.js
CHANGED
@@ -2,8 +2,11 @@ import { combineReducers } from 'redux';
|
|
2
2
|
|
3
3
|
import parameterSelectionParameters from './components/ParameterSelection/ParameterSelectionReducer';
|
4
4
|
import applicationDefinitionConf from './components/ApplicationDefinition/ApplicationDefinitionReducer';
|
5
|
+
import applicationDefinitionImportConf from './components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer';
|
5
6
|
import applicationInstanceConf from './components/ApplicationInstance/ApplicationInstanceReducer';
|
6
7
|
import applicationInstanceReport from './components/ApplicationInstanceReport/ApplicationInstanceReportReducer';
|
8
|
+
import existingHostSelectionConf from './components/ExistingHostSelection/ExistingHostSelectionReducer';
|
9
|
+
import syncGitRepoConf from './components/SyncGitRepo/SyncGitRepoReducer';
|
7
10
|
|
8
11
|
import {
|
9
12
|
APPLICATION_DEFINITION_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE,
|
@@ -13,6 +16,7 @@ import {
|
|
13
16
|
import {
|
14
17
|
APPLICATION_INSTANCE_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE,
|
15
18
|
APPLICATION_INSTANCE_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE,
|
19
|
+
APPLICATION_INSTANCE_ADD_EXISTING_HOSTS_MODAL_CLOSE,
|
16
20
|
} from './components/ApplicationInstance/ApplicationInstanceConstants';
|
17
21
|
|
18
22
|
const rootReducer = (state = {}, action) => {
|
@@ -27,6 +31,7 @@ const rootReducer = (state = {}, action) => {
|
|
27
31
|
action.payload.parameterSelection = param_state.parameters;
|
28
32
|
}
|
29
33
|
const app_def_state = applicationDefinitionConf(state.applicationDefinitionConf, action);
|
34
|
+
const app_def_import_state = applicationDefinitionImportConf(state.applicationDefinitionImportConf, action);
|
30
35
|
|
31
36
|
if (action.type == APPLICATION_INSTANCE_FOREMAN_PARAMETER_SELECTION_MODAL_CLOSE) {
|
32
37
|
action.payload.parameterSelection = param_state.parameters;
|
@@ -34,13 +39,23 @@ const rootReducer = (state = {}, action) => {
|
|
34
39
|
if (action.type == APPLICATION_INSTANCE_ANSIBLE_PARAMETER_SELECTION_MODAL_CLOSE) {
|
35
40
|
action.payload.parameterSelection = param_state.parameters;
|
36
41
|
}
|
42
|
+
|
43
|
+
const ex_host_state = existingHostSelectionConf(state.existingHostSelectionConf, action);
|
44
|
+
if (action.type == APPLICATION_INSTANCE_ADD_EXISTING_HOSTS_MODAL_CLOSE) {
|
45
|
+
action.payload.selectedHosts = ex_host_state.selectedHosts;
|
46
|
+
}
|
47
|
+
|
37
48
|
const app_ins_state = applicationInstanceConf(state.applicationInstanceConf, action);
|
49
|
+
const sync_git_repo_state = syncGitRepoConf(state.syncGitRepoConf, action);
|
38
50
|
|
39
51
|
return {
|
40
52
|
applicationDefinitionConf: app_def_state,
|
53
|
+
applicationDefinitionImportConf: app_def_import_state,
|
41
54
|
applicationInstanceConf: app_ins_state,
|
42
|
-
parameterSelectionParameters: param_state,
|
43
55
|
applicationInstanceReport: app_ins_report_state,
|
56
|
+
existingHostSelectionConf: ex_host_state,
|
57
|
+
parameterSelectionParameters: param_state,
|
58
|
+
syncGitRepoConf: sync_git_repo_state,
|
44
59
|
};
|
45
60
|
};
|
46
61
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: foreman_acd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ATIX AG
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,14 +16,28 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.89.0
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.89.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-rails
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.8.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.8.1
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: foreman_remote_execution
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,34 @@ dependencies:
|
|
38
52
|
- - ">="
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 3.3.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: foreman-tasks
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.10'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.10'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: git
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
41
83
|
description: Foreman plugin to provide application centric deployment and self service
|
42
84
|
portal
|
43
85
|
email:
|
@@ -54,19 +96,26 @@ files:
|
|
54
96
|
- app/controllers/foreman_acd/api/v2/ansible_playbooks_controller.rb
|
55
97
|
- app/controllers/foreman_acd/api/v2/app_definitions_controller.rb
|
56
98
|
- app/controllers/foreman_acd/api/v2/app_instances_controller.rb
|
57
|
-
- app/controllers/foreman_acd/api/v2/app_playbooks_controller.rb
|
58
99
|
- app/controllers/foreman_acd/api/v2/base_controller.rb
|
59
100
|
- app/controllers/foreman_acd/app_definitions_controller.rb
|
60
101
|
- app/controllers/foreman_acd/app_instances_controller.rb
|
61
102
|
- app/controllers/foreman_acd/application_controller.rb
|
62
103
|
- app/controllers/foreman_acd/concerns/ansible_playbook_parameters.rb
|
63
104
|
- app/controllers/foreman_acd/concerns/app_definition_parameters.rb
|
105
|
+
- app/controllers/foreman_acd/concerns/app_instance_mixins.rb
|
64
106
|
- app/controllers/foreman_acd/concerns/app_instance_parameters.rb
|
65
107
|
- app/controllers/foreman_acd/remote_execution_controller.rb
|
66
108
|
- app/controllers/ui_acd_controller.rb
|
109
|
+
- app/lib/actions/foreman_acd/deploy_all_hosts.rb
|
110
|
+
- app/lib/actions/foreman_acd/run_configurator.rb
|
111
|
+
- app/models/concerns/foreman_acd/host_managed_extensions.rb
|
112
|
+
- app/models/foreman_acd/acd_provider.rb
|
67
113
|
- app/models/foreman_acd/ansible_playbook.rb
|
68
114
|
- app/models/foreman_acd/app_definition.rb
|
69
115
|
- app/models/foreman_acd/app_instance.rb
|
116
|
+
- app/models/foreman_acd/foreman_host.rb
|
117
|
+
- app/models/foreman_acd/taxonomy_extensions.rb
|
118
|
+
- app/services/foreman_acd/acd_proxy_proxy_selector.rb
|
70
119
|
- app/services/foreman_acd/app_configurator.rb
|
71
120
|
- app/services/foreman_acd/app_deployer.rb
|
72
121
|
- app/services/foreman_acd/inventory_creator.rb
|
@@ -89,7 +138,6 @@ files:
|
|
89
138
|
- app/views/foreman_acd/app_definitions/index.html.erb
|
90
139
|
- app/views/foreman_acd/app_definitions/new.html.erb
|
91
140
|
- app/views/foreman_acd/app_instances/_form.html.erb
|
92
|
-
- app/views/foreman_acd/app_instances/deploy.html.erb
|
93
141
|
- app/views/foreman_acd/app_instances/edit.html.erb
|
94
142
|
- app/views/foreman_acd/app_instances/index.html.erb
|
95
143
|
- app/views/foreman_acd/app_instances/new.html.erb
|
@@ -102,8 +150,11 @@ files:
|
|
102
150
|
- app/views/ui_acd/domain.json.rabl
|
103
151
|
- app/views/ui_acd/environment.json.rabl
|
104
152
|
- app/views/ui_acd/foreman_data.json.rabl
|
153
|
+
- app/views/ui_acd/host_report.json.rabl
|
105
154
|
- app/views/ui_acd/lifecycle_environment.json.rabl
|
106
155
|
- app/views/ui_acd/ptable.json.rabl
|
156
|
+
- app/views/ui_acd/report_data.json.rabl
|
157
|
+
- app/views/ui_acd/validate_hostname.json.rabl
|
107
158
|
- config/routes.rb
|
108
159
|
- db/migrate/20190610202252_create_app_definitions.rb
|
109
160
|
- db/migrate/20190625140305_create_app_instances.rb
|
@@ -111,6 +162,18 @@ files:
|
|
111
162
|
- db/migrate/20200917120220_add_ansible_playbook_id.rb
|
112
163
|
- db/migrate/20201016002819_add_ansible_vars_all_to_app_definitions.rb
|
113
164
|
- db/migrate/20201016104338_add_ansible_vars_all_to_app_instances.rb
|
165
|
+
- db/migrate/20210112111548_add_organization_to_app_instance.rb
|
166
|
+
- db/migrate/20210112113853_add_location_to_app_instance.rb
|
167
|
+
- db/migrate/20210202141658_create_foreman_hosts.rb
|
168
|
+
- db/migrate/20210204111306_remove_hosts_from_app_instances.rb
|
169
|
+
- db/migrate/20210209091014_rename_acd_tables.rb
|
170
|
+
- db/migrate/20210216083522_add_last_progress_report.rb
|
171
|
+
- db/migrate/20210216091529_add_last_deploy_task.rb
|
172
|
+
- db/migrate/20210316151145_add_git_commit_to_ansible_playbooks.rb
|
173
|
+
- db/migrate/20210503122809_add_git_url_to_ansible_playbooks.rb
|
174
|
+
- db/migrate/20210818125913_add_is_existing_host_to_foreman_host.rb
|
175
|
+
- db/migrate/20210902110645_add_initial_configure_task.rb
|
176
|
+
- db/seeds.d/62_acd_proxy_feature.rb
|
114
177
|
- db/seeds.d/75-job_templates.rb
|
115
178
|
- lib/foreman_acd.rb
|
116
179
|
- lib/foreman_acd/engine.rb
|
@@ -118,18 +181,34 @@ files:
|
|
118
181
|
- lib/foreman_acd/version.rb
|
119
182
|
- lib/tasks/foreman_acd_tasks.rake
|
120
183
|
- locale/Makefile
|
184
|
+
- locale/en/foreman_acd.edit.po
|
121
185
|
- locale/en/foreman_acd.po
|
186
|
+
- locale/en/foreman_acd.po.time_stamp
|
122
187
|
- locale/foreman_acd.pot
|
123
188
|
- locale/gemspec.rb
|
124
189
|
- package.json
|
190
|
+
- test/controllers/ansible_playbooks_controller_test.rb
|
125
191
|
- test/controllers/app_definitions_controller_test.rb
|
126
192
|
- test/controllers/app_instances_controller_test.rb
|
127
193
|
- test/controllers/ui_acd_controller_test.rb
|
128
194
|
- test/factories/foreman_acd_factories.rb
|
195
|
+
- test/models/acd_provider_test.rb
|
196
|
+
- test/models/ansible_playbook_test.rb
|
129
197
|
- test/models/app_definition_test.rb
|
130
198
|
- test/models/app_instance_test.rb
|
199
|
+
- test/models/concerns/host_extensions_test.rb
|
200
|
+
- test/models/foreman_host_test.rb
|
131
201
|
- test/test_plugin_helper.rb
|
202
|
+
- webpack/__mocks__/foremanReact/API.js
|
203
|
+
- webpack/__mocks__/foremanReact/common/I18n.js
|
204
|
+
- webpack/__mocks__/foremanReact/common/helpers.js
|
205
|
+
- webpack/__mocks__/foremanReact/components/ForemanModal.js
|
206
|
+
- webpack/__mocks__/foremanReact/components/ForemanModal/ForemanModalActions.js
|
207
|
+
- webpack/__mocks__/foremanReact/components/common/forms/CommonForm.js
|
132
208
|
- webpack/__mocks__/foremanReact/components/common/forms/Select.js
|
209
|
+
- webpack/__mocks__/foremanReact/components/common/forms/TextInput.js
|
210
|
+
- webpack/__mocks__/foremanReact/components/hosts/powerStatus.js
|
211
|
+
- webpack/__snapshots__/helper.test.js.snap
|
133
212
|
- webpack/components/ApplicationDefinition/ApplicationDefinition.js
|
134
213
|
- webpack/components/ApplicationDefinition/ApplicationDefinition.scss
|
135
214
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionActions.js
|
@@ -137,17 +216,52 @@ files:
|
|
137
216
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionHelper.js
|
138
217
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionReducer.js
|
139
218
|
- webpack/components/ApplicationDefinition/ApplicationDefinitionSelectors.js
|
219
|
+
- webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionConfData_1.fixtures.js
|
220
|
+
- webpack/components/ApplicationDefinition/__fixtures__/applicationDefinitionReducer.fixtures.js
|
221
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinition.test.js
|
222
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionReducer.test.js
|
223
|
+
- webpack/components/ApplicationDefinition/__tests__/ApplicationDefinitionSelectors.test.js
|
224
|
+
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinition.test.js.snap
|
225
|
+
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionReducer.test.js.snap
|
226
|
+
- webpack/components/ApplicationDefinition/__tests__/__snapshots__/ApplicationDefinitionSelectors.test.js.snap
|
140
227
|
- webpack/components/ApplicationDefinition/components/AnsiblePlaybookSelector.js
|
228
|
+
- webpack/components/ApplicationDefinition/components/__tests__/AnsiblePlaybookSelector.test.js
|
229
|
+
- webpack/components/ApplicationDefinition/components/__tests__/__snapshots__/AnsiblePlaybookSelector.test.js.snap
|
141
230
|
- webpack/components/ApplicationDefinition/index.js
|
231
|
+
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.js
|
232
|
+
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImport.scss
|
233
|
+
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportActions.js
|
234
|
+
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportConstants.js
|
235
|
+
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportReducer.js
|
236
|
+
- webpack/components/ApplicationDefinitionImport/ApplicationDefinitionImportSelectors.js
|
237
|
+
- webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportConfData_1.fixtures.js
|
238
|
+
- webpack/components/ApplicationDefinitionImport/__fixtures__/applicationDefinitionImportReducer.fixtures.js
|
239
|
+
- webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImport.test.js
|
240
|
+
- webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportReducer.test.js
|
241
|
+
- webpack/components/ApplicationDefinitionImport/__tests__/ApplicationDefinitionImportSelectors.test.js
|
242
|
+
- webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImport.test.js.snap
|
243
|
+
- webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportReducer.test.js.snap
|
244
|
+
- webpack/components/ApplicationDefinitionImport/__tests__/__snapshots__/ApplicationDefinitionImportSelectors.test.js.snap
|
245
|
+
- webpack/components/ApplicationDefinitionImport/index.js
|
142
246
|
- webpack/components/ApplicationInstance/ApplicationInstance.js
|
143
247
|
- webpack/components/ApplicationInstance/ApplicationInstance.scss
|
144
248
|
- webpack/components/ApplicationInstance/ApplicationInstanceActions.js
|
145
249
|
- webpack/components/ApplicationInstance/ApplicationInstanceConstants.js
|
250
|
+
- webpack/components/ApplicationInstance/ApplicationInstanceHelper.js
|
146
251
|
- webpack/components/ApplicationInstance/ApplicationInstanceReducer.js
|
147
252
|
- webpack/components/ApplicationInstance/ApplicationInstanceSelectors.js
|
253
|
+
- webpack/components/ApplicationInstance/__fixtures__/applicationInstanceConfData_1.fixtures.js
|
254
|
+
- webpack/components/ApplicationInstance/__fixtures__/applicationInstanceReducer.fixtures.js
|
255
|
+
- webpack/components/ApplicationInstance/__tests__/ApplicationInstance.test.js
|
256
|
+
- webpack/components/ApplicationInstance/__tests__/ApplicationInstanceReducer.test.js
|
257
|
+
- webpack/components/ApplicationInstance/__tests__/ApplicationInstanceSelectors.test.js
|
258
|
+
- webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstance.test.js.snap
|
259
|
+
- webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceReducer.test.js.snap
|
260
|
+
- webpack/components/ApplicationInstance/__tests__/__snapshots__/ApplicationInstanceSelectors.test.js.snap
|
148
261
|
- webpack/components/ApplicationInstance/components/AppDefinitionSelector.js
|
149
262
|
- webpack/components/ApplicationInstance/components/Service.js
|
150
263
|
- webpack/components/ApplicationInstance/components/ServiceCounter.js
|
264
|
+
- webpack/components/ApplicationInstance/helper.js
|
151
265
|
- webpack/components/ApplicationInstance/index.js
|
152
266
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.js
|
153
267
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReport.scss
|
@@ -155,8 +269,37 @@ files:
|
|
155
269
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportConstants.js
|
156
270
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportReducer.js
|
157
271
|
- webpack/components/ApplicationInstanceReport/ApplicationInstanceReportSelectors.js
|
272
|
+
- webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportData_1.fixtures.js
|
273
|
+
- webpack/components/ApplicationInstanceReport/__fixtures__/applicationInstanceReportReducer.fixtures.js
|
274
|
+
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReport.test.js
|
275
|
+
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportReducer.test.js
|
276
|
+
- webpack/components/ApplicationInstanceReport/__tests__/ApplicationInstanceReportSelectors.test.js
|
277
|
+
- webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReport.test.js.snap
|
278
|
+
- webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportReducer.test.js.snap
|
279
|
+
- webpack/components/ApplicationInstanceReport/__tests__/__snapshots__/ApplicationInstanceReportSelectors.test.js.snap
|
158
280
|
- webpack/components/ApplicationInstanceReport/components/ReportViewer.js
|
281
|
+
- webpack/components/ApplicationInstanceReport/components/__tests__/ReportViewer.test.js
|
282
|
+
- webpack/components/ApplicationInstanceReport/components/__tests__/__snapshots__/ReportViewer.test.js.snap
|
159
283
|
- webpack/components/ApplicationInstanceReport/index.js
|
284
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelection.js
|
285
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelection.scss
|
286
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelectionActions.js
|
287
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelectionConstants.js
|
288
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelectionHelper.js
|
289
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelectionReducer.js
|
290
|
+
- webpack/components/ExistingHostSelection/ExistingHostSelectionSelectors.js
|
291
|
+
- webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionConfData_1.fixtures.js
|
292
|
+
- webpack/components/ExistingHostSelection/__fixtures__/existingHostSelectionReducer.fixtures.js
|
293
|
+
- webpack/components/ExistingHostSelection/__tests__/ExistingHostSelection.test.js
|
294
|
+
- webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionReducer.test.js
|
295
|
+
- webpack/components/ExistingHostSelection/__tests__/ExistingHostSelectionSelectors.test.js
|
296
|
+
- webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelection.test.js.snap
|
297
|
+
- webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionReducer.test.js.snap
|
298
|
+
- webpack/components/ExistingHostSelection/__tests__/__snapshots__/ExistingHostSelectionSelectors.test.js.snap
|
299
|
+
- webpack/components/ExistingHostSelection/components/ServiceSelector.js
|
300
|
+
- webpack/components/ExistingHostSelection/components/__tests__/ServiceSelector.test.js
|
301
|
+
- webpack/components/ExistingHostSelection/components/__tests__/__snapshots__/ServiceSelector.test.js.snap
|
302
|
+
- webpack/components/ExistingHostSelection/index.js
|
160
303
|
- webpack/components/ParameterSelection/ParameterSelection.js
|
161
304
|
- webpack/components/ParameterSelection/ParameterSelection.scss
|
162
305
|
- webpack/components/ParameterSelection/ParameterSelectionActions.js
|
@@ -174,23 +317,46 @@ files:
|
|
174
317
|
- webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionReducer.test.js.snap
|
175
318
|
- webpack/components/ParameterSelection/__tests__/__snapshots__/ParameterSelectionSelectors.test.js.snap
|
176
319
|
- webpack/components/ParameterSelection/index.js
|
320
|
+
- webpack/components/SyncGitRepo/SyncGitRepo.js
|
321
|
+
- webpack/components/SyncGitRepo/SyncGitRepo.scss
|
322
|
+
- webpack/components/SyncGitRepo/SyncGitRepoActions.js
|
323
|
+
- webpack/components/SyncGitRepo/SyncGitRepoConstants.js
|
324
|
+
- webpack/components/SyncGitRepo/SyncGitRepoReducer.js
|
325
|
+
- webpack/components/SyncGitRepo/SyncGitRepoSelectors.js
|
326
|
+
- webpack/components/SyncGitRepo/__fixtures__/syncGitRepoConfData_1.fixtures.js
|
327
|
+
- webpack/components/SyncGitRepo/__fixtures__/syncGitRepoReducer.fixtures.js
|
328
|
+
- webpack/components/SyncGitRepo/__tests__/SyncGitRepo.test.js
|
329
|
+
- webpack/components/SyncGitRepo/__tests__/SyncGitRepoReducer.test.js
|
330
|
+
- webpack/components/SyncGitRepo/__tests__/SyncGitRepoSelectors.test.js
|
331
|
+
- webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepo.test.js.snap
|
332
|
+
- webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoReducer.test.js.snap
|
333
|
+
- webpack/components/SyncGitRepo/__tests__/__snapshots__/SyncGitRepoSelectors.test.js.snap
|
334
|
+
- webpack/components/SyncGitRepo/components/FormTextInput.js
|
335
|
+
- webpack/components/SyncGitRepo/components/ScmTypeSelector.js
|
336
|
+
- webpack/components/SyncGitRepo/index.js
|
177
337
|
- webpack/components/common/AddTableEntry.js
|
178
338
|
- webpack/components/common/DeleteTableEntry.js
|
179
|
-
- webpack/components/common/
|
339
|
+
- webpack/components/common/EditTableEntry.js
|
180
340
|
- webpack/components/common/ExtSelect.js
|
341
|
+
- webpack/components/common/ExtTextInput.js
|
342
|
+
- webpack/components/common/LockTableEntry.js
|
181
343
|
- webpack/components/common/RailsData.js
|
182
344
|
- webpack/components/common/__tests__/AddTableEntry.test.js
|
183
345
|
- webpack/components/common/__tests__/DeleteTableEntry.test.js
|
346
|
+
- webpack/components/common/__tests__/EditTableEntry.test.js
|
184
347
|
- webpack/components/common/__tests__/ExtSelect.test.js
|
348
|
+
- webpack/components/common/__tests__/LockTableEntry.test.js
|
185
349
|
- webpack/components/common/__tests__/RailsData.test.js
|
186
|
-
- webpack/components/common/__tests__/__snapshots__/AddParameter.test.js.snap
|
187
350
|
- webpack/components/common/__tests__/__snapshots__/AddTableEntry.test.js.snap
|
188
|
-
- webpack/components/common/__tests__/__snapshots__/DeleteParameter.test.js.snap
|
189
351
|
- webpack/components/common/__tests__/__snapshots__/DeleteTableEntry.test.js.snap
|
352
|
+
- webpack/components/common/__tests__/__snapshots__/EditTableEntry.test.js.snap
|
190
353
|
- webpack/components/common/__tests__/__snapshots__/ExtSelect.test.js.snap
|
354
|
+
- webpack/components/common/__tests__/__snapshots__/LockTableEntry.test.js.snap
|
191
355
|
- webpack/components/common/__tests__/__snapshots__/RailsData.test.js.snap
|
192
356
|
- webpack/helper.js
|
357
|
+
- webpack/helper.test.js
|
193
358
|
- webpack/index.js
|
359
|
+
- webpack/js-yaml.js
|
194
360
|
- webpack/reducer.js
|
195
361
|
- webpack/test_setup.js
|
196
362
|
homepage: https://www.orcharhino.com
|
@@ -203,9 +369,9 @@ require_paths:
|
|
203
369
|
- lib
|
204
370
|
required_ruby_version: !ruby/object:Gem::Requirement
|
205
371
|
requirements:
|
206
|
-
- - "
|
372
|
+
- - "~>"
|
207
373
|
- !ruby/object:Gem::Version
|
208
|
-
version: '
|
374
|
+
version: '2.5'
|
209
375
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
376
|
requirements:
|
211
377
|
- - ">="
|
@@ -221,8 +387,13 @@ summary: Foreman plugin to provide application centric deployment and self servi
|
|
221
387
|
test_files:
|
222
388
|
- test/factories/foreman_acd_factories.rb
|
223
389
|
- test/test_plugin_helper.rb
|
390
|
+
- test/models/ansible_playbook_test.rb
|
224
391
|
- test/models/app_instance_test.rb
|
392
|
+
- test/models/concerns/host_extensions_test.rb
|
225
393
|
- test/models/app_definition_test.rb
|
394
|
+
- test/models/acd_provider_test.rb
|
395
|
+
- test/models/foreman_host_test.rb
|
226
396
|
- test/controllers/ui_acd_controller_test.rb
|
227
397
|
- test/controllers/app_definitions_controller_test.rb
|
228
398
|
- test/controllers/app_instances_controller_test.rb
|
399
|
+
- test/controllers/ansible_playbooks_controller_test.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
<% title _("Deploy Application Instance #{@app_instance}") %>
|
2
|
-
|
3
|
-
<% content_for(:javascripts) do %>
|
4
|
-
<%= webpacked_plugins_js_for :foreman_acd %>
|
5
|
-
<% end %>
|
6
|
-
<% content_for(:stylesheets) do %>
|
7
|
-
<%= webpacked_plugins_css_for :foreman_acd %>
|
8
|
-
<% end %>
|
9
|
-
|
10
|
-
<%
|
11
|
-
json = {
|
12
|
-
"mode": 'liveReport',
|
13
|
-
"hosts": @deploy_hosts
|
14
|
-
}
|
15
|
-
%>
|
16
|
-
|
17
|
-
<div id='deploy'></div>
|
18
|
-
<%= mount_react_component('ApplicationInstanceReport', "#deploy", json.to_json) %>
|
19
|
-
</div
|
@@ -1,18 +0,0 @@
|
|
1
|
-
import React from 'react';
|
2
|
-
import PropTypes from 'prop-types';
|
3
|
-
import {
|
4
|
-
Table,
|
5
|
-
} from 'patternfly-react';
|
6
|
-
|
7
|
-
const EasyHeaderFormatter = (value, { column }) => (
|
8
|
-
<Table.Heading aria-label={column.header.label} {...column.header.props}>
|
9
|
-
{value}
|
10
|
-
</Table.Heading>
|
11
|
-
);
|
12
|
-
|
13
|
-
EasyHeaderFormatter.propTypes = {
|
14
|
-
value: PropTypes.string.isRequired,
|
15
|
-
column: PropTypes.object.isRequired,
|
16
|
-
};
|
17
|
-
|
18
|
-
export default EasyHeaderFormatter;
|
@@ -1,35 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`AddParameter should render add parameter 1`] = `
|
4
|
-
<Button
|
5
|
-
active={false}
|
6
|
-
block={false}
|
7
|
-
bsClass="btn"
|
8
|
-
bsStyle="default"
|
9
|
-
disabled={false}
|
10
|
-
onClick={[Function]}
|
11
|
-
>
|
12
|
-
<Icon
|
13
|
-
name="plus"
|
14
|
-
type="fa"
|
15
|
-
/>
|
16
|
-
</Button>
|
17
|
-
`;
|
18
|
-
|
19
|
-
exports[`AddParameter should render disabled button 1`] = `
|
20
|
-
<Button
|
21
|
-
active={false}
|
22
|
-
block={false}
|
23
|
-
bsClass="btn"
|
24
|
-
bsStyle="default"
|
25
|
-
disabled={true}
|
26
|
-
onClick={[Function]}
|
27
|
-
>
|
28
|
-
<Icon
|
29
|
-
name="plus"
|
30
|
-
type="fa"
|
31
|
-
/>
|
32
|
-
</Button>
|
33
|
-
`;
|
34
|
-
|
35
|
-
exports[`AddParameter should render hidden button 1`] = `""`;
|
@@ -1,41 +0,0 @@
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
2
|
-
|
3
|
-
exports[`DeleteParameter should render delete parameter 1`] = `
|
4
|
-
<span>
|
5
|
-
|
6
|
-
<Button
|
7
|
-
active={false}
|
8
|
-
block={false}
|
9
|
-
bsClass="btn"
|
10
|
-
bsStyle="default"
|
11
|
-
disabled={false}
|
12
|
-
onClick={[Function]}
|
13
|
-
>
|
14
|
-
<Icon
|
15
|
-
name="delete"
|
16
|
-
type="pf"
|
17
|
-
/>
|
18
|
-
</Button>
|
19
|
-
</span>
|
20
|
-
`;
|
21
|
-
|
22
|
-
exports[`DeleteParameter should render disabled button 1`] = `
|
23
|
-
<span>
|
24
|
-
|
25
|
-
<Button
|
26
|
-
active={false}
|
27
|
-
block={false}
|
28
|
-
bsClass="btn"
|
29
|
-
bsStyle="default"
|
30
|
-
disabled={true}
|
31
|
-
onClick={[Function]}
|
32
|
-
>
|
33
|
-
<Icon
|
34
|
-
name="delete"
|
35
|
-
type="pf"
|
36
|
-
/>
|
37
|
-
</Button>
|
38
|
-
</span>
|
39
|
-
`;
|
40
|
-
|
41
|
-
exports[`DeleteParameter should render hidden button 1`] = `""`;
|