machinery-tool 1.19.0 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.git_revision +1 -1
- data/NEWS +8 -0
- data/html/{upgrade.html.haml → exception.html.haml} +2 -6
- data/lib/html.rb +10 -6
- data/lib/renderer.rb +5 -0
- data/lib/server.rb +12 -2
- data/lib/system_description.rb +4 -2
- data/lib/version.rb +1 -1
- data/machinery-helper/version.go +1 -1
- data/man/generated/machinery.1.gz +0 -0
- data/manual/site/sitemap.xml +23 -23
- data/plugins/changed_config_files/schema/system-description-changed-config-files.schema-v9.json +160 -0
- data/plugins/changed_managed_files/schema/system-description-changed-managed-files.schema-v9.json +160 -0
- data/plugins/environment/schema/system-description-environment.schema-v9.json +17 -0
- data/plugins/groups/groups_renderer.rb +2 -0
- data/plugins/groups/schema/system-description-groups.schema-v9.json +49 -0
- data/plugins/os/schema/system-description-os.schema-v9.json +21 -0
- data/plugins/packages/packages_renderer.rb +2 -0
- data/plugins/packages/schema/system-description-packages.schema-v9.json +115 -0
- data/plugins/patterns/schema/system-description-patterns.schema-v9.json +58 -0
- data/plugins/repositories/repositories_renderer.rb +2 -0
- data/plugins/repositories/schema/system-description-repositories.schema-v9.json +165 -0
- data/plugins/services/schema/system-description-services.schema-v9.json +93 -0
- data/plugins/unmanaged_files/schema/system-description-unmanaged-files.schema-v9.json +124 -0
- data/plugins/users/schema/system-description-users.schema-v9.json +86 -0
- data/plugins/users/users_renderer.rb +4 -0
- data/schema/migrations/migrate7to8.rb +1 -1
- data/schema/migrations/migrate8to9.rb +35 -0
- data/schema/system-description-global.schema-v9.json +43 -0
- data/tools/go.rb +18 -6
- metadata +16 -3
@@ -19,6 +19,10 @@ class UsersRenderer < Renderer
|
|
19
19
|
def content(description)
|
20
20
|
return unless description.users
|
21
21
|
|
22
|
+
if description.users.any? { |a| a[:comment] == "" || a[:uid].nil? || a[:gid].nil? }
|
23
|
+
na_note("user info, user ID or group ID")
|
24
|
+
end
|
25
|
+
|
22
26
|
list do
|
23
27
|
description.users.each do |user|
|
24
28
|
info = user.comment.empty? ? "N/A" : user.comment
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# Copyright (c) 2013-2016 SUSE LLC
|
2
|
+
#
|
3
|
+
# This program is free software; you can redistribute it and/or
|
4
|
+
# modify it under the terms of version 3 of the GNU General Public License as
|
5
|
+
# published by the Free Software Foundation.
|
6
|
+
#
|
7
|
+
# This program is distributed in the hope that it will be useful,
|
8
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
9
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
10
|
+
# GNU General Public License for more details.
|
11
|
+
#
|
12
|
+
# You should have received a copy of the GNU General Public License
|
13
|
+
# along with this program; if not, contact SUSE LLC.
|
14
|
+
#
|
15
|
+
# To contact SUSE about this file by physical or electronic mail,
|
16
|
+
# you may find current contact information at www.suse.com
|
17
|
+
|
18
|
+
class Migrate8To9 < Migration
|
19
|
+
desc <<-EOT
|
20
|
+
Format version 9 fixes the filter paths for migrated descriptions.
|
21
|
+
EOT
|
22
|
+
|
23
|
+
def migrate
|
24
|
+
meta = @hash["meta"]
|
25
|
+
if meta.key?("filters") && meta["filters"].key?("inspect")
|
26
|
+
meta["filters"]["inspect"] = meta["filters"]["inspect"].map do |element|
|
27
|
+
element.gsub(/^(\/[a-z_]+\/)files\//, "\\1")
|
28
|
+
end
|
29
|
+
|
30
|
+
meta["filters"]["inspect"] = meta["filters"]["inspect"].map do |element|
|
31
|
+
element.gsub(/^\/services\/services\//, "/services/")
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,43 @@
|
|
1
|
+
{
|
2
|
+
"$schema": "http://json-schema.org/draft-04/schema#",
|
3
|
+
|
4
|
+
"type": "object",
|
5
|
+
"required": ["meta"],
|
6
|
+
"properties": {
|
7
|
+
"meta": {
|
8
|
+
"required": ["format_version"],
|
9
|
+
"properties": {
|
10
|
+
"format_version": {
|
11
|
+
"type": "integer",
|
12
|
+
"minimum": 1
|
13
|
+
},
|
14
|
+
"filters": {
|
15
|
+
"type": "object",
|
16
|
+
"required": ["inspect"],
|
17
|
+
"properties": {
|
18
|
+
"inspect": {
|
19
|
+
"type": "array",
|
20
|
+
"items": {
|
21
|
+
"type": "string"
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"additionalProperties": {
|
28
|
+
"type": "object",
|
29
|
+
"required": ["modified", "hostname"],
|
30
|
+
"properties": {
|
31
|
+
"modified": {
|
32
|
+
"type": "string",
|
33
|
+
"format": "date-time"
|
34
|
+
},
|
35
|
+
"hostname": {
|
36
|
+
"type": "string",
|
37
|
+
"format": "hostname"
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|
data/tools/go.rb
CHANGED
@@ -25,11 +25,11 @@ class Go
|
|
25
25
|
when version <= 1.4
|
26
26
|
["i686", "x86_64"].include?(local_arch) ? [local_arch] : []
|
27
27
|
when version == 1.6 && suse_package_includes_s390?
|
28
|
-
["i686", "x86_64", "ppc64le", "s390x"]
|
28
|
+
["i686", "x86_64", "ppc64le", "s390x", "armv6l", "armv7l", "aarch64"]
|
29
29
|
when version <= 1.6
|
30
|
-
["i686", "x86_64", "ppc64le"]
|
30
|
+
["i686", "x86_64", "ppc64le", "armv6l", "armv7l", "aarch64"]
|
31
31
|
when version >= 1.7
|
32
|
-
["i686", "x86_64", "ppc64le", "s390x"]
|
32
|
+
["i686", "x86_64", "ppc64le", "s390x", "armv6l", "armv7l", "aarch64"]
|
33
33
|
end
|
34
34
|
end
|
35
35
|
|
@@ -39,7 +39,7 @@ class Go
|
|
39
39
|
else
|
40
40
|
archs.each do |arch|
|
41
41
|
system(
|
42
|
-
"env GOOS=linux
|
42
|
+
"env GOOS=linux #{compile_options(arch)} go build -o machinery-helper-#{arch}"
|
43
43
|
)
|
44
44
|
end
|
45
45
|
end
|
@@ -67,15 +67,27 @@ class Go
|
|
67
67
|
File.exist?("/usr/share/go/src/cmd/asm/internal/arch/s390x.go")
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
71
|
-
|
70
|
+
def compile_options(arch)
|
71
|
+
# check https://golang.org/doc/install/source#environment
|
72
|
+
additional_options = ""
|
73
|
+
compile_arch = case arch
|
72
74
|
when "x86_64"
|
73
75
|
"amd64"
|
74
76
|
when "i686"
|
75
77
|
"386"
|
78
|
+
when "aarch64"
|
79
|
+
"arm64"
|
80
|
+
when "armv6l"
|
81
|
+
additional_options = " GOARM=6"
|
82
|
+
"arm"
|
83
|
+
when "armv7l"
|
84
|
+
additional_options = " GOARM=7"
|
85
|
+
"arm"
|
76
86
|
else
|
77
87
|
arch
|
78
88
|
end
|
89
|
+
|
90
|
+
"GOARCH=#{compile_arch}#{additional_options}"
|
79
91
|
end
|
80
92
|
|
81
93
|
def run_go_version
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: machinery-tool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.20.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- SUSE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cheetah
|
@@ -263,6 +263,7 @@ files:
|
|
263
263
|
- html/assets/transition.js
|
264
264
|
- html/assets/wheels_horizontal.png
|
265
265
|
- html/comparison.html.haml
|
266
|
+
- html/exception.html.haml
|
266
267
|
- html/index.html.haml
|
267
268
|
- html/landing_page.html.haml
|
268
269
|
- html/partials/changed_config_files.html.haml
|
@@ -305,7 +306,6 @@ files:
|
|
305
306
|
- html/partials/services.html.haml
|
306
307
|
- html/partials/unmanaged_files.html.haml
|
307
308
|
- html/partials/users.html.haml
|
308
|
-
- html/upgrade.html.haml
|
309
309
|
- inspect_helpers/changed_files.sh
|
310
310
|
- inspect_helpers/dpkg_unmanaged_files.sh
|
311
311
|
- inspect_helpers/yum_repositories.py
|
@@ -568,6 +568,7 @@ files:
|
|
568
568
|
- plugins/changed_config_files/schema/system-description-changed-config-files.schema-v6.json
|
569
569
|
- plugins/changed_config_files/schema/system-description-changed-config-files.schema-v7.json
|
570
570
|
- plugins/changed_config_files/schema/system-description-changed-config-files.schema-v8.json
|
571
|
+
- plugins/changed_config_files/schema/system-description-changed-config-files.schema-v9.json
|
571
572
|
- plugins/changed_managed_files/changed_managed_files.yml
|
572
573
|
- plugins/changed_managed_files/changed_managed_files_inspector.rb
|
573
574
|
- plugins/changed_managed_files/changed_managed_files_model.rb
|
@@ -580,6 +581,7 @@ files:
|
|
580
581
|
- plugins/changed_managed_files/schema/system-description-changed-managed-files.schema-v6.json
|
581
582
|
- plugins/changed_managed_files/schema/system-description-changed-managed-files.schema-v7.json
|
582
583
|
- plugins/changed_managed_files/schema/system-description-changed-managed-files.schema-v8.json
|
584
|
+
- plugins/changed_managed_files/schema/system-description-changed-managed-files.schema-v9.json
|
583
585
|
- plugins/environment/environment.md
|
584
586
|
- plugins/environment/environment_inspector.rb
|
585
587
|
- plugins/environment/environment_model.rb
|
@@ -587,6 +589,7 @@ files:
|
|
587
589
|
- plugins/environment/schema/system-description-environment.schema-v6.json
|
588
590
|
- plugins/environment/schema/system-description-environment.schema-v7.json
|
589
591
|
- plugins/environment/schema/system-description-environment.schema-v8.json
|
592
|
+
- plugins/environment/schema/system-description-environment.schema-v9.json
|
590
593
|
- plugins/groups/groups.yml
|
591
594
|
- plugins/groups/groups_inspector.rb
|
592
595
|
- plugins/groups/groups_model.rb
|
@@ -599,6 +602,7 @@ files:
|
|
599
602
|
- plugins/groups/schema/system-description-groups.schema-v6.json
|
600
603
|
- plugins/groups/schema/system-description-groups.schema-v7.json
|
601
604
|
- plugins/groups/schema/system-description-groups.schema-v8.json
|
605
|
+
- plugins/groups/schema/system-description-groups.schema-v9.json
|
602
606
|
- plugins/os/os.yml
|
603
607
|
- plugins/os/os_inspector.rb
|
604
608
|
- plugins/os/os_model.rb
|
@@ -611,6 +615,7 @@ files:
|
|
611
615
|
- plugins/os/schema/system-description-os.schema-v6.json
|
612
616
|
- plugins/os/schema/system-description-os.schema-v7.json
|
613
617
|
- plugins/os/schema/system-description-os.schema-v8.json
|
618
|
+
- plugins/os/schema/system-description-os.schema-v9.json
|
614
619
|
- plugins/packages/packages.yml
|
615
620
|
- plugins/packages/packages_inspector.rb
|
616
621
|
- plugins/packages/packages_model.rb
|
@@ -623,6 +628,7 @@ files:
|
|
623
628
|
- plugins/packages/schema/system-description-packages.schema-v6.json
|
624
629
|
- plugins/packages/schema/system-description-packages.schema-v7.json
|
625
630
|
- plugins/packages/schema/system-description-packages.schema-v8.json
|
631
|
+
- plugins/packages/schema/system-description-packages.schema-v9.json
|
626
632
|
- plugins/patterns/patterns.yml
|
627
633
|
- plugins/patterns/patterns_inspector.rb
|
628
634
|
- plugins/patterns/patterns_model.rb
|
@@ -635,6 +641,7 @@ files:
|
|
635
641
|
- plugins/patterns/schema/system-description-patterns.schema-v6.json
|
636
642
|
- plugins/patterns/schema/system-description-patterns.schema-v7.json
|
637
643
|
- plugins/patterns/schema/system-description-patterns.schema-v8.json
|
644
|
+
- plugins/patterns/schema/system-description-patterns.schema-v9.json
|
638
645
|
- plugins/repositories/repositories.yml
|
639
646
|
- plugins/repositories/repositories_inspector.rb
|
640
647
|
- plugins/repositories/repositories_model.rb
|
@@ -647,6 +654,7 @@ files:
|
|
647
654
|
- plugins/repositories/schema/system-description-repositories.schema-v6.json
|
648
655
|
- plugins/repositories/schema/system-description-repositories.schema-v7.json
|
649
656
|
- plugins/repositories/schema/system-description-repositories.schema-v8.json
|
657
|
+
- plugins/repositories/schema/system-description-repositories.schema-v9.json
|
650
658
|
- plugins/services/schema/system-description-services.schema-v1.json
|
651
659
|
- plugins/services/schema/system-description-services.schema-v2.json
|
652
660
|
- plugins/services/schema/system-description-services.schema-v3.json
|
@@ -655,6 +663,7 @@ files:
|
|
655
663
|
- plugins/services/schema/system-description-services.schema-v6.json
|
656
664
|
- plugins/services/schema/system-description-services.schema-v7.json
|
657
665
|
- plugins/services/schema/system-description-services.schema-v8.json
|
666
|
+
- plugins/services/schema/system-description-services.schema-v9.json
|
658
667
|
- plugins/services/services.yml
|
659
668
|
- plugins/services/services_inspector.rb
|
660
669
|
- plugins/services/services_model.rb
|
@@ -667,6 +676,7 @@ files:
|
|
667
676
|
- plugins/unmanaged_files/schema/system-description-unmanaged-files.schema-v6.json
|
668
677
|
- plugins/unmanaged_files/schema/system-description-unmanaged-files.schema-v7.json
|
669
678
|
- plugins/unmanaged_files/schema/system-description-unmanaged-files.schema-v8.json
|
679
|
+
- plugins/unmanaged_files/schema/system-description-unmanaged-files.schema-v9.json
|
670
680
|
- plugins/unmanaged_files/unmanaged_files.yml
|
671
681
|
- plugins/unmanaged_files/unmanaged_files_inspector.rb
|
672
682
|
- plugins/unmanaged_files/unmanaged_files_model.rb
|
@@ -679,6 +689,7 @@ files:
|
|
679
689
|
- plugins/users/schema/system-description-users.schema-v6.json
|
680
690
|
- plugins/users/schema/system-description-users.schema-v7.json
|
681
691
|
- plugins/users/schema/system-description-users.schema-v8.json
|
692
|
+
- plugins/users/schema/system-description-users.schema-v9.json
|
682
693
|
- plugins/users/users.yml
|
683
694
|
- plugins/users/users_inspector.rb
|
684
695
|
- plugins/users/users_model.rb
|
@@ -690,6 +701,7 @@ files:
|
|
690
701
|
- schema/migrations/migrate5to6.rb
|
691
702
|
- schema/migrations/migrate6to7.rb
|
692
703
|
- schema/migrations/migrate7to8.rb
|
704
|
+
- schema/migrations/migrate8to9.rb
|
693
705
|
- schema/system-description-global.schema-v1.json
|
694
706
|
- schema/system-description-global.schema-v2.json
|
695
707
|
- schema/system-description-global.schema-v3.json
|
@@ -698,6 +710,7 @@ files:
|
|
698
710
|
- schema/system-description-global.schema-v6.json
|
699
711
|
- schema/system-description-global.schema-v7.json
|
700
712
|
- schema/system-description-global.schema-v8.json
|
713
|
+
- schema/system-description-global.schema-v9.json
|
701
714
|
- tools/go.rb
|
702
715
|
- tools/helper_builder.rb
|
703
716
|
- workload_mapper/docker-registry/clue.rb
|