Class: Yast::ClusterClass

Inherits:
Module
  • Object
show all
Defined in:
../../src/modules/Cluster.rb

Instance Method Summary (collapse)

Instance Method Details

- (Boolean) Abort

Abort function

Returns:

  • (Boolean)

    return true if abort



107
108
109
110
# File '../../src/modules/Cluster.rb', line 107

def Abort
  return @AbortFunction.call == true if @AbortFunction != nil
  false
end

- (Hash) AutoPackages

Return packages needed to be installed and removed during Autoinstallation to insure module has all needed software installed.

Returns:

  • (Hash)

    with 2 lists.



730
731
732
# File '../../src/modules/Cluster.rb', line 730

def AutoPackages
  { "install" => ["csync2", "pacemaker"], "remove" => [] }
end

- (Hash) Export

Dump the cluster settings to a single map (For use by autoinstallation.) BNC#871970 , change to memberaddr. But seems still not functional

Returns:

  • (Hash)

    Dumped settings (later acceptable by Import ())



649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
# File '../../src/modules/Cluster.rb', line 649

def Export
  result = {}
  Ops.set(result, "secauth", @secauth)
  Ops.set(result, "transport", @transport)
  Ops.set(result, "bindnetaddr1", @bindnetaddr1)
  Ops.set(result, "memberaddr", @memberaddr)
  Ops.set(result, "mcastaddr1", @mcastaddr1)
  result["cluster_name"] = @cluster_name
  result["ip_version"] = @ip_version
  result["expected_votes"] = @expected_votes
  result["two_node"] = @two_node
  Ops.set(result, "mcastport1", @mcastport1)
  Ops.set(result, "enable2", @enable2)
  Ops.set(result, "bindnetaddr2", @bindnetaddr2)
  Ops.set(result, "mcastaddr2", @mcastaddr2)
  Ops.set(result, "mcastport2", @mcastport2)
  Ops.set(result, "autoid", true)
  Ops.set(result, "rrpmode", @rrpmode)
  Ops.set(result, "csync2_host", @csync2_host)
  Ops.set(result, "csync2_include", @csync2_include)
  if SCR.Read(path(".target.size"), "/etc/corosync/authkey") != -1
    out = Convert.to_map(
      SCR.Execute(
        path(".target.bash_output"),
        "uuencode -m /etc/corosync/authkey /dev/stdout"
      )
    )
    Ops.set(result, "corokey", Ops.get_string(out, "stdout", ""))
  end
  if SCR.Read(path(".target.size"), "/etc/csync2/key_hagroup") != -1
    out = Convert.to_map(
      SCR.Execute(
        path(".target.bash_output"),
        Ops.add(Ops.add("uuencode -m ", @csync2_key_file), " /dev/stdout ")
      )
    )
    Ops.set(result, "csync2key", Ops.get_string(out, "stdout", ""))
  end
  deep_copy(result)
end

- (Object) generateMemberString(memberaddr)

BNC#871970, generate string like “123.3.21.32;156.32.123.1:1”



253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
# File '../../src/modules/Cluster.rb', line 253

def generateMemberString(memberaddr)
  address_string = ""
  memberaddr.each do |i|
    address_string << i[:addr1]
    if i[:addr2]
      address_string << ";#{i[:addr2]}"
      address_string << "-#{i[:nodeid]}" if i [:nodeid]
    else 
      address_string << "-#{i[:nodeid]}" if i[:nodeid]
    end
    address_string << " "
  end

  return address_string
end

- (Boolean) Import(settings)

Get all cluster settings from the first parameter (For use by autoinstallation.) BNC#871970 , change to memberaddr. But seems still not functional

Parameters:

  • settings (Hash)

    The YCP structure to be imported.

Returns:

  • (Boolean)

    True on success



616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
# File '../../src/modules/Cluster.rb', line 616

def Import(settings)
  settings = deep_copy(settings)
  @secauth = Ops.get_boolean(settings, "secauth", false)
  @transport = Ops.get_string(settings, "transport", "udp")
  @bindnetaddr1 = Ops.get_string(settings, "bindnetaddr1", "")
  @memberaddr = Ops.get_list(settings, "memberaddr", [])
  @mcastaddr1 = Ops.get_string(settings, "mcastaddr1", "")
  @cluster_name  = settings["cluster_name"] || ""
  @ip_version  = settings["ip_version"] || "ipv4"
  @expected_votes = settings["expected_votes"] || ""
  @two_node = settings["two_node"] || ""
  @mcastport2 = Ops.get_string(settings, "mcastport1", "")
  @enable2 = Ops.get_boolean(settings, "enable2", false)
  @bindnetaddr2 = Ops.get_string(settings, "bindnetaddr2", "")
  @mcastaddr2 = Ops.get_string(settings, "mcastaddr2", "")
  @mcastport2 = Ops.get_string(settings, "mcastport2", "")
  @autoid = Ops.get_boolean(settings, "autoid", true)
  @rrpmode = Ops.get_string(settings, "rrpmode", "")
  @corokey = Ops.get_string(settings, "corokey", "")
  @csync2key = Ops.get_string(settings, "csync2key", "")

  @csync2_host = Ops.get_list(settings, "csync2_host", [])
  @csync2_include = Ops.get_list(settings, "csync2_include", [])

  @global_startopenais = true
  @global_startcsync2 = true
  true
end

- (Object) load_csync2_conf



347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
# File '../../src/modules/Cluster.rb', line 347

def load_csync2_conf
  @csync2_host = Convert.convert(
    SCR.Read(path(".csync2_ha.value.ha_group.host")),
    :from => "any",
    :to   => "list <string>"
  )
  @csync2_include = Convert.convert(
    SCR.Read(path(".csync2_ha.value.ha_group.include")),
    :from => "any",
    :to   => "list <string>"
  )

  @csync2_host = [] if @csync2_host == nil
  @csync2_include = [] if @csync2_include == nil
  Builtins.y2milestone("read csync2 conf: csync2_host = %1", @csync2_host)
  Builtins.y2milestone(
    "read csync2 conf: csync2_include = %1",
    @csync2_include
  )

  nil
end

- (Object) LoadClusterConfig



156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# File '../../src/modules/Cluster.rb', line 156

def LoadClusterConfig

  if Convert.to_string(SCR.Read(path(".openais.totem.secauth"))) == "on"
    @secauth = true
  else
    @secauth = false
  end

  @cluster_name = SCR.Read(path(".openais.totem.cluster_name"))

  @ip_version = SCR.Read(path(".openais.totem.ip_version"))

  @expected_votes = SCR.Read(path(".openais.quorum.expected_votes")).to_s

  @config_format = SCR.Read(path(".openais.totem.interface.member.memberaddr")).to_s

  @transport = SCR.Read(path(".openais.totem.transport"))
  @transport = "udp" if @transport == nil

  interfaces = SCR.Dir(path(".openais.totem.interface"))
  Builtins.foreach(interfaces) do |interface|
    if interface == "interface0"
      if @transport == "udpu"
        # BNC#871970, change member addresses to nodelist structure
        # memberaddr of udpu only read in interface0
        # address is like "123.3.21.32;156.32.123.1:1 123.3.21.54;156.32.123.4:2 
        # 123.3.21.44;156.32.123.9"
        address = SCR.Read(path(".openais.nodelist.node")).split(" ")
        address.each do |addr|
          p = addr.split("-")
          if p[1] != nil
            q = p[0].split(";")
            if q[1] != nil
              @memberaddr.push({:addr1=>q[0],:addr2=>q[1],:nodeid=>p[1]})
            else
              @memberaddr.push({:addr1=>q[0],:nodeid=>p[1]})
            end
          else
            q = p[0].split(";")
            if q[1] != nil
              @memberaddr.push({:addr1=>q[0],:addr2=>q[1]})
            else
              @memberaddr.push({:addr1=>q[0]})
            end
          end
        end  # end address.each 

      else
        @mcastaddr1 = Convert.to_string(
          SCR.Read(path(".openais.totem.interface.interface0.mcastaddr"))
        )
      end
      @bindnetaddr1 = Convert.to_string(
        SCR.Read(path(".openais.totem.interface.interface0.bindnetaddr"))
      )
      @mcastport1 = Convert.to_string(
        SCR.Read(path(".openais.totem.interface.interface0.mcastport"))
      )
    end
    if interface == "interface1"
      # member address only get in interface0
      if @transport == "udp"
        @mcastaddr2 = Convert.to_string(
          SCR.Read(path(".openais.totem.interface.interface1.mcastaddr"))
        )
      end
      @bindnetaddr2 = Convert.to_string(
        SCR.Read(path(".openais.totem.interface.interface1.bindnetaddr"))
      )
      @mcastport2 = Convert.to_string(
        SCR.Read(path(".openais.totem.interface.interface1.mcastport"))
      )

      @enable2 = true
    end
  end

  ai = Convert.to_string(SCR.Read(path(".openais.totem.autoid")))

  if ai == "yes"
    @autoid = true
  else
    @autoid = false
  end

  @rrpmode = Convert.to_string(SCR.Read(path(".openais.totem.rrpmode")))
  if @enable2 == false
    @rrpmode = "none"
  else
    @rrpmode = "passive" if @rrpmode != "passive" && @rrpmode != "active"
  end

  nil
end

- (Object) main



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
# File '../../src/modules/Cluster.rb', line 36

def main
  textdomain "cluster"

  Yast.import "Progress"
  Yast.import "Report"
  Yast.import "Summary"
  Yast.import "Message"
  Yast.import "PackageSystem"
  Yast.import "SuSEFirewall"
  Yast.import "SuSEFirewallServices"


  @csync2_key_file = "/etc/csync2/key_hagroup"

  # Data was modified?
  @modified = false


  @proposal_valid = false

  @firstrun = false

  # Write only, used during autoinstallation.
  # Don't run services and SuSEconfig, it's all done at one place.
  @write_only = false

  # Abort function
  # return boolean return true if abort
  @AbortFunction = fun_ref(method(:Modified), "boolean ()")


  # Settings: Define all variables needed for configuration of cluster
  @secauth = false
  @cluster_name = ""
  @ip_version = ""
  @expected_votes = ""
  @two_node = "0"
  @config_format = ""

  @bindnetaddr1 = ""
  @mcastaddr1 = ""
  @mcastport1 = ""
  @enable2 = false
  @bindnetaddr2 = ""
  @mcastaddr2 = ""
  @mcastport2 = ""

  @autoid = true
  @rrpmode = ""

  @corokey = ""
  @csync2key = ""
  @global_startopenais = false
  @global_startcsync2 = false

  @transport = ""

  # example:
  # [{:addr1=>"10.16.35.101",:addr2=>"192.168.0.1", :nodeid=>"1"}, 
  # {:addr1=>"10.16.35.102",:addr2=>"192.168.0.2", :nodeid=>"2"},
  # {:addr1=>"10.16.35.103",:addr2=>"192.168.0.3" },
  # {:addr1=>"10.16.35.104",:nodeid=>"4" },
  # {:addr1=>"10.16.35.105",:nodeid=>"5" }]
  @memberaddr = []

  @csync2_host = []
  @csync2_include = []
end

- (Object) Modified

Data was modified?

Returns:

  • true if modified



114
115
116
117
# File '../../src/modules/Cluster.rb', line 114

def Modified
  Builtins.y2debug("modified=%1", @modified)
  @modified
end

- (Object) Overview

Create an overview table with all configured cards

Returns:

  • table items



722
723
724
# File '../../src/modules/Cluster.rb', line 722

def Overview
  []
end

- (Object) ProposalValid



126
127
128
# File '../../src/modules/Cluster.rb', line 126

def ProposalValid
  @proposal_valid
end

- (Object) Read

Read all cluster settings

Returns:

  • true on success



392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
# File '../../src/modules/Cluster.rb', line 392

def Read
  # Cluster read dialog caption
  caption = _("Initializing cluster Configuration")

  # TODO FIXME Set the right number of stages
  steps = 4

  sl = 500
  Builtins.sleep(sl)

  # TODO FIXME Names of real stages
  # We do not set help text here, because it was set outside
  Progress.New(
    caption,
    " ",
    steps,
    [
      # Progress stage 1/3
      _("Read the database"),
      # Progress stage 2/3
      _("Read the previous settings"),
      # Progress stage 3/3
      _("Read SuSEFirewall Settings")
    ],
    [
      # Progress step 1/3
      _("Reading the database..."),
      # Progress step 2/3
      _("Reading the previous settings..."),
      # Progress step 3/3
      _("Reading SuSEFirewall settings..."),
      # Progress finished
      _("Finished")
    ],
    ""
  )

  ret = false
  required_pack_list = [
    "pacemaker",
    "csync2",
    "conntrack-tools",
    "hawk2",
    "crmsh"
  ]
  ret = PackageSystem.CheckAndInstallPackagesInteractive(required_pack_list)
  if ret == false
    Report.Error(_("Cannot install required package"))
    return false
  end
  # read database
  return false if Abort()
  SCR.Dir(path(".openais"))
  ret = false
  ret = LoadClusterConfig()
  if ret == false
    Report.Error(_("Cannot load existing configuration"))
    return false
  end
  if Ops.less_or_equal(
      SCR.Read(path(".target.size"), "/etc/corosync/corosync.conf"),
      1
    )
    @firstrun = true
  end
  Progress.NextStage
  # Error message
  Report.Error(_("Cannot read database1.")) if false
  Builtins.sleep(sl)

  load_csync2_conf
  # read another database
  return false if Abort()
  Progress.NextStep
  # Error message
  Report.Error(_("Cannot read database2.")) if false
  Builtins.sleep(sl)

  # read current settings
  return false if Abort()
  Progress.NextStage
  # Error message
  Report.Error(Message.CannotReadCurrentSettings) if false
  Builtins.sleep(sl)

  # detect devices
  SuSEFirewall.Read

  return false if Abort()
  Progress.NextStage
  # Error message
  Report.Warning(_("Cannot detect devices.")) if false
  Builtins.sleep(sl)

  return false if Abort()
  # Progress finished
  Progress.NextStage
  Builtins.sleep(sl)

  return false if Abort()
  Progress.Finish
  @modified = false
  true
end

- (Object) save_csync2_conf



370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
# File '../../src/modules/Cluster.rb', line 370

def save_csync2_conf
  Builtins.y2milestone("write csync2 conf: csync2_host = %1", @csync2_host)
  Builtins.y2milestone(
    "write csync2 conf: csync2_include = %1",
    @csync2_include
  )

  SCR.Write(path(".csync2_ha.value.ha_group.host"), @csync2_host)
  SCR.Write(path(".csync2_ha.value.ha_group.include"), @csync2_include)
  SCR.Write(path(".csync2_ha.value.ha_group.key"), [@csync2_key_file])

  SCR.Write(path(".sysconfig.pacemaker.LRMD_MAX_CHILDREN"), 4)
  SCR.Write(
    path(".sysconfig.openais.COROSYNC_DEFAULT_CONFIG_IFACE"),
    "openaisserviceenableexperimental:corosync_parser"
  )

  nil
end

- (Object) SaveClusterConfig



269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
# File '../../src/modules/Cluster.rb', line 269

def SaveClusterConfig

  if @secauth == true
    SCR.Write(path(".openais.totem.secauth"), "on")
  else
    SCR.Write(path(".openais.totem.secauth"), "off")
  end

  SCR.Write(path(".openais.totem.transport"), @transport)
  SCR.Write(path(".openais.totem.cluster_name"), @cluster_name)
  SCR.Write(path(".openais.totem.ip_version"), @ip_version)
  SCR.Write(path(".openais.quorum.expected_votes"), @expected_votes)
  
  # BNC#871970, only write member address when interface0  
  if @transport == "udpu"

    SCR.Write(
      path(".openais.nodelist.node"),
      generateMemberString(@memberaddr)
    )
    SCR.Write(path(".openais.totem.interface.interface0.mcastaddr"), "")
  else
    SCR.Write(
      path(".openais.totem.interface.interface0.mcastaddr"),
      @mcastaddr1
    )
    SCR.Write(path(".openais.nodelist.node"), "")
  end

  # BNC#883235. Enable "two_node" when using two node cluster
  if (@expected_votes == "2") or (@transport == "udpu" && @memberaddr.size == 2)
    # Set "1" to enable two_node mode when two nodes, otherwise is "0".
    @two_node = "1"
  end
  SCR.Write(path(".openais.quorum.two_node"), @two_node)

  SCR.Write(
    path(".openais.totem.interface.interface0.bindnetaddr"),
    @bindnetaddr1
  )
  SCR.Write(
    path(".openais.totem.interface.interface0.mcastport"),
    @mcastport1
  )

  if @enable2 == false
    SCR.Write(path(".openais.totem.interface.interface1"), "")
  else
    if @transport == "udpu"
      SCR.Write(path(".openais.totem.interface.interface1.mcastaddr"), "")
    else
      SCR.Write(
        path(".openais.totem.interface.interface1.mcastaddr"),
        @mcastaddr2
      )
    end
    SCR.Write(
      path(".openais.totem.interface.interface1.bindnetaddr"),
      @bindnetaddr2
    )
    SCR.Write(
      path(".openais.totem.interface.interface1.mcastport"),
      @mcastport2
    )
  end

  #FIXME TODO
  if @autoid == true
    SCR.Write(path(".openais.totem.autoid"), "yes")
  else
    SCR.Write(path(".openais.totem.autoid"), "no")
  end
  SCR.Write(path(".openais.totem.rrpmode"), @rrpmode)
  SCR.Write(path(".openais"), "")

  nil
end

- (Object) SetAbortFunction(function)



149
150
151
152
153
154
# File '../../src/modules/Cluster.rb', line 149

def SetAbortFunction(function)
  function = deep_copy(function)
  @AbortFunction = deep_copy(function)

  nil
end

- (Object) SetModified(value)

Mark as modified, for Autoyast.



120
121
122
123
124
# File '../../src/modules/Cluster.rb', line 120

def SetModified(value)
  @modified = true

  nil
end

- (Object) SetProposalValid(value)



130
131
132
133
134
# File '../../src/modules/Cluster.rb', line 130

def SetProposalValid(value)
  @proposal_valid = value

  nil
end

- (Object) SetWriteOnly(value)

Set write_only flag (for autoinstalation).



142
143
144
145
146
# File '../../src/modules/Cluster.rb', line 142

def SetWriteOnly(value)
  @write_only = value

  nil
end

- (Object) Summary

Create a textual summary and a list of unconfigured cards

Returns:

  • summary of the current configuration



692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# File '../../src/modules/Cluster.rb', line 692

def Summary
  # Configuration summary text for autoyast
  configured = ""
  if @bindnetaddr1 != ""
    configured = "Corosync is configured<br/>\n"
    configured = Ops.add(
      Ops.add(
        Ops.add(configured, "Ring 1 is configued to use "),
        @bindnetaddr1
      ),
      "<br/>\n"
    )
  end
  if @bindnetaddr2 != ""
    configured = Ops.add(
      Ops.add(
        Ops.add(configured, "Ring 2 is configured to use "),
        @bindnetaddr2
      ),
      "<br/>\n"
    )
  end

  configured = "Change the configuration of HAE here..." if configured == ""

  [configured, []]
end

- (Object) Write

Write all cluster settings

Returns:

  • true on success



499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
# File '../../src/modules/Cluster.rb', line 499

def Write
  # Cluster read dialog caption
  caption = _("Saving cluster Configuration")

  # TODO FIXME And set the right number of stages
  steps = 2

  sl = 500

  # TODO FIXME Names of real stages
  # We do not set help text here, because it was set outside
  Progress.New(
    caption,
    " ",
    steps,
    [
      # Progress stage 1/2
      _("Write the settings"),
      # Progress stage 2/2
      _("Save changes to SuSEFirewall")
    ],
    [
      # Progress step 1/2
      _("Writing the settings..."),
      # Progress step 2/2
      _("Saving changes to SuSEFirewall..."),
      # Progress finished
      _("Finished")
    ],
    ""
  )

  # write settings
  SaveClusterConfig()
  return false if Abort()
  Progress.NextStage
  # Error message
  Report.Error(_("Cannot write settings.")) if false
  Builtins.sleep(sl)

  # Work with SuSEFirewall
  udp_ports = []
  udp_ports = Builtins.add(udp_ports, @mcastport1) if @mcastport1 != ""
  if @enable2 && @mcastport2 != ""
    udp_ports = Builtins.add(udp_ports, @mcastport2)
  end

  temp_tcp_ports = ["21064", "7630"]
  tcp_ports = SuSEFirewallServices.GetNeededTCPPorts("service:cluster")
  tcp_ports = Convert.convert(
    Builtins.union(tcp_ports, temp_tcp_ports),
    :from => "list",
    :to   => "list <string>"
  )

  SuSEFirewallServices.SetNeededPortsAndProtocols(
    "service:cluster",
    { "tcp_ports" => tcp_ports, "udp_ports" => udp_ports }
  )

  save_csync2_conf

  # run SuSEconfig
  SuSEFirewall.Write
  return false if Abort()
  Progress.NextStage
  # Error message
  Report.Error(Message.SuSEConfigFailed) if false
  Builtins.sleep(sl)

  SuSEFirewall.ActivateConfiguration
  return false if Abort()
  # Progress finished
  Progress.NextStage
  Builtins.sleep(sl)

  if @corokey != ""
    out = Convert.to_map(
      SCR.Execute(
        path(".target.bash_output"),
        Ops.add(
          Ops.add("echo '", @corokey),
          "' | uudecode -o /etc/corosync/authkey"
        )
      )
    )
  end
  if @csync2key != ""
    out = Convert.to_map(
      SCR.Execute(
        path(".target.bash_output"),
        Ops.add(
          Ops.add(Ops.add("echo '", @csync2key), "' | uudecode -o "),
          @csync2_key_file
        )
      )
    )
  end
  # is that necessary? since enable pacemaker will trigger corosync/csync2?
  # FIXME if not necessary
  if @global_startopenais == true
    SCR.Execute(path(".target.bash_output"), "systemctl enable corosync.service")
  end
  if @global_startcsync2 == true
    SCR.Execute(path(".target.bash_output"), "systemctl enable csync2")
  end

  return false if Abort()
  Progress.Finish
  true
end

- (Object) WriteOnly

Returns true if module is marked as “write only” (don't start services etc…)

Returns:

  • true if module is marked as “write only” (don't start services etc…)



137
138
139
# File '../../src/modules/Cluster.rb', line 137

def WriteOnly
  @write_only
end