Skip to content

Commit

Permalink
Merge pull request #510 from yast/casp_services
Browse files Browse the repository at this point in the history
Casp services
  • Loading branch information
jreidinger committed Feb 1, 2017
2 parents 7c7d6a2 + 1b22b2e commit 4cca1ad
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
7 changes: 7 additions & 0 deletions package/yast2-installation.changes
@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Wed Feb 1 14:20:43 UTC 2017 - jreidinger@suse.com

- Enable CaaSP specific services on the installed system
(FATE#321738)
- 3.1.217.18

-------------------------------------------------------------------
Tue Jan 31 16:06:40 UTC 2017 - jreidinger@suse.com

Expand Down
2 changes: 1 addition & 1 deletion package/yast2-installation.spec
Expand Up @@ -17,7 +17,7 @@


Name: yast2-installation
Version: 3.1.217.17
Version: 3.1.217.18
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand Down
13 changes: 13 additions & 0 deletions src/lib/installation/clients/inst_casp_overview.rb
Expand Up @@ -27,6 +27,7 @@

require "installation/widgets/overview"
require "installation/widgets/system_role"
require "installation/services"

module Installation
# This library provides a simple dialog for setting
Expand Down Expand Up @@ -92,13 +93,25 @@ def run
end
end

add_casp_services

Yast::Wizard.CloseDialog if separate_wizard_needed?

ret
end

private

# Specific services that needs to be enabled on CAaSP see (FATE#321738)
# It is additional services to the ones defined for role.
# It is caasp only services and for generic approach systemd-presets should be used.
# In this case it is not used, due to some problems with cloud services.
CASP_SERVICES = ["sshd", "cloud-init-local", "cloud-init", "cloud-config",
"cloud-final", "issue-generator", "issue-add-ssh-keys"].freeze
def add_casp_services
::Installation::Services.enabled.concat(CASP_SERVICES)
end

def quadrant_layout(upper_left:, lower_left:, upper_right:, lower_right:)
HBox(
HWeight(
Expand Down
6 changes: 6 additions & 0 deletions test/inst_casp_overview_test.rb
Expand Up @@ -108,5 +108,11 @@ def label

subject.run
end

it "adds caasp specific services to be enabled" do
subject.run

expect(::Installation::Services.enabled).to include("cloud-init")
end
end
end

0 comments on commit 4cca1ad

Please sign in to comment.