|
11 | 11 |
|
12 | 12 | control 'tag:install_dcv_connect_script_installed' do |
13 | 13 | title 'Check pcluster dcv connect script is installed' |
14 | | - only_if { !os_properties.redhat_on_docker? } |
| 14 | + only_if { instance.dcv_install_enabled? && !os_properties.redhat_on_docker? } |
15 | 15 |
|
16 | 16 | describe file("#{node['cluster']['scripts_dir']}/pcluster_dcv_connect.sh") do |
17 | 17 | it { should be_file } |
|
23 | 23 |
|
24 | 24 | control 'tag:install_dcv_authenticator_user_and_group_set_up' do |
25 | 25 | title 'Check that dcv authenticator user and group have been set up' |
26 | | - only_if { !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
| 26 | + only_if { instance.dcv_install_enabled? && !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
27 | 27 |
|
28 | 28 | describe group(node['cluster']['dcv']['authenticator']['group']) do |
29 | 29 | it { should exist } |
|
39 | 39 |
|
40 | 40 | control 'tag:install_dcv_disabled_lock_screen' do |
41 | 41 | title 'Check that the lock screen has been disabled' |
42 | | - only_if { !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
| 42 | + only_if { instance.dcv_install_enabled? && !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
43 | 43 |
|
44 | 44 | describe bash('gsettings get org.gnome.desktop.lockdown disable-lock-screen') do |
45 | 45 | its('exit_status') { should eq 0 } |
|
54 | 54 |
|
55 | 55 | control 'tag:install_dcv_installed' do |
56 | 56 | title 'Check dcv is installed' |
57 | | - only_if { !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
| 57 | + only_if { instance.dcv_install_enabled? && !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
58 | 58 |
|
59 | 59 | pkgs = %W(nice-dcv-server nice-xdcv nice-dcv-web-viewer) |
60 | 60 | pkgs.each do |pkg| |
|
66 | 66 |
|
67 | 67 | control 'tag:install_dcv_external_authenticator_virtualenv_created' do |
68 | 68 | title 'Check dcv external authenticator virtual environment is created' |
69 | | - only_if { !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
| 69 | + only_if { instance.dcv_install_enabled? && !os_properties.redhat_on_docker? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
70 | 70 |
|
71 | 71 | describe file("#{node['cluster']['dcv']['authenticator']['virtualenv_path']}/bin/activate") do |
72 | 72 | it { should be_file } |
|
76 | 76 |
|
77 | 77 | control 'tag:install_dcv_debian_specific_setup' do |
78 | 78 | title 'Check debian specific setup' |
79 | | - only_if { os_properties.debian_family? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
| 79 | + only_if { instance.dcv_install_enabled? && os_properties.debian_family? && !(os_properties.ubuntu? && os_properties.arm?) && !os_properties.alinux2023? } |
80 | 80 |
|
81 | 81 | pkgs = %W(whoopsie ubuntu-desktop mesa-utils) |
82 | 82 | pkgs.each do |pkg| |
|
97 | 97 |
|
98 | 98 | control 'tag:install_dcv_rhel_and_centos_specific_setup' do |
99 | 99 | title 'Check rhel and centos specific setup' |
100 | | - only_if { !os_properties.on_docker? } |
| 100 | + only_if { instance.dcv_install_enabled? && !os_properties.on_docker? } |
101 | 101 | only_if { !os_properties.alinux2023? } |
102 | 102 | only_if { os_properties.centos? || os_properties.redhat? } |
103 | 103 |
|
|
136 | 136 | control 'tag:install_dcv_alinux2_specific_setup' do |
137 | 137 | title 'Check alinux2 specific setup' |
138 | 138 |
|
139 | | - only_if { os_properties.alinux2? } |
| 139 | + only_if { instance.dcv_install_enabled? && os_properties.alinux2? } |
140 | 140 |
|
141 | 141 | prereq_packages = %w(gdm gnome-session gnome-classic-session gnome-session-xsession |
142 | 142 | xorg-x11-server-Xorg xorg-x11-fonts-Type1 xorg-x11-drivers |
|
160 | 160 |
|
161 | 161 | control 'tag:install_dcv_switch_runlevel_to_multiuser_target' do |
162 | 162 | title 'Check that runlevel is switched to multi-user.target' |
163 | | - only_if { !os_properties.on_docker? } |
| 163 | + only_if { instance.dcv_install_enabled? && !os_properties.on_docker? } |
164 | 164 | only_if { !os_properties.alinux2023? } |
165 | 165 |
|
166 | 166 | describe bash('systemctl get-default') do |
|
0 commit comments