From 81b6abade168700661b2a522451a7e867737d032 Mon Sep 17 00:00:00 2001 From: Gerard Fulton Date: Mon, 16 Mar 2020 21:11:58 +0000 Subject: [PATCH 1/3] convert json to yaml --- download.json | 50 -------------------------------------------------- download.yaml | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+), 50 deletions(-) delete mode 100644 download.json create mode 100644 download.yaml diff --git a/download.json b/download.json deleted file mode 100644 index 3462942..0000000 --- a/download.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "resources": [ - { - "url": "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-4.2.3-1.el8.x86_64.rpm", - "filename": "mongodb-org-4.2.3-1.el8.x86_64.rpm", - "sha256": "2f90ec4e04502f58102bf398c1fc15ea9a77746140d40ffd8bb5f085ed5cf9ef" - }, - { - "url": "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-mongos-4.2.3-1.el8.x86_64.rpm", - "filename": "mongodb-org-mongos-4.2.3-1.el8.x86_64.rpm", - "sha256": "4910022a1a7ea43950fb6f8931b4a801df94e96eccffcb6cb4e0201c486336fe" - }, - { - "url": "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-server-4.2.3-1.el8.x86_64.rpm", - "filename": "mongodb-org-server-4.2.3-1.el8.x86_64.rpm", - "sha256": "a75db5561380b7f9295a906651ea5ee1e1fd47942214c87f3a78990034627827" - }, - { - "url": "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-shell-4.2.3-1.el8.x86_64.rpm", - "filename": "mongodb-org-shell-4.2.3-1.el8.x86_64.rpm", - "sha256": "d1e219cc4a483a6692908865a209b1fc29d929752cfeaf4229429555970cff29" - }, - { - "url": "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-tools-4.2.3-1.el8.x86_64.rpm", - "filename": "mongodb-org-tools-4.2.3-1.el8.x86_64.rpm", - "sha256": "4e7b7909a6365af0cc4d1db5a8954007654982dd36c442cbe832e8c634685085" - }, - { - "url": "https://raw.githubusercontent.com/nodeca/js-yaml/3.13.0/dist/js-yaml.js", - "filename": "js-yaml.js", - "sha256": "490a40d65dabe72b9c34567fa9ce5da53c577a3c761b568ceba994751e6e74b9" - }, - { - "url": "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64", - "filename": "jq-linux64", - "sha256": "af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44" - }, - { - "url": "ftp://ftp.pbone.net/mirror/ftp.redhat.com/pub/redhat/rhel/rhel-8-beta/baseos/x86_64/Packages/numactl-libs-2.0.11-8.el8.x86_64.rpm", - "filename": "numactl-libs-2.0.11-8.el8.x86_64.rpm", - "sha256": "55936946b7a519b26e36d73b38900004e7399df718ede3a63f363c343849149f" - }, - { - "url": "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64", - "filename": "gosu-amd64", - "sha256": "0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7" - } - ] - } - \ No newline at end of file diff --git a/download.yaml b/download.yaml new file mode 100644 index 0000000..687296e --- /dev/null +++ b/download.yaml @@ -0,0 +1,47 @@ +resources: + - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-4.2.3-1.el8.x86_64.rpm" + filename: "mongodb-org-4.2.3-1.el8.x86_64.rpm" + validation: + type: "sha256" + value: "2f90ec4e04502f58102bf398c1fc15ea9a77746140d40ffd8bb5f085ed5cf9ef" + - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-mongos-4.2.3-1.el8.x86_64.rpm" + filename: "mongodb-org-mongos-4.2.3-1.el8.x86_64.rpm" + validation: + type: "sha256" + value: "4910022a1a7ea43950fb6f8931b4a801df94e96eccffcb6cb4e0201c486336fe" + - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-server-4.2.3-1.el8.x86_64.rpm" + filename: "mongodb-org-server-4.2.3-1.el8.x86_64.rpm" + validation: + type: "sha256" + value: "a75db5561380b7f9295a906651ea5ee1e1fd47942214c87f3a78990034627827" + - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-shell-4.2.3-1.el8.x86_64.rpm" + filename: "mongodb-org-shell-4.2.3-1.el8.x86_64.rpm" + validation: + type: "sha256" + value: "d1e219cc4a483a6692908865a209b1fc29d929752cfeaf4229429555970cff29" + - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-tools-4.2.3-1.el8.x86_64.rpm" + filename: "mongodb-org-tools-4.2.3-1.el8.x86_64.rpm" + validation: + type: "sha256" + value: "4e7b7909a6365af0cc4d1db5a8954007654982dd36c442cbe832e8c634685085" + - url: "ftp://ftp.pbone.net/mirror/ftp.redhat.com/pub/redhat/rhel/rhel-8-beta/baseos/x86_64/Packages/numactl-libs-2.0.11-8.el8.x86_64.rpm" + filename: "numactl-libs-2.0.11-8.el8.x86_64.rpm" + validation: + type: "sha256" + value: "55936946b7a519b26e36d73b38900004e7399df718ede3a63f363c343849149f" + - url: "https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64" + filename: "jq-linux64" + validation: + type: "sha256" + value: "af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44" + - url: "https://raw.githubusercontent.com/nodeca/js-yaml/3.13.0/dist/js-yaml.js" + filename: "js-yaml.js" + validation: + type: "sha256" + value: "490a40d65dabe72b9c34567fa9ce5da53c577a3c761b568ceba994751e6e74b9" + - url: "https://github.com/tianon/gosu/releases/download/1.11/gosu-amd64" + filename: "gosu-amd64" + validation: + type: "sha256" + value: "0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7" + -- GitLab From a9d7e29b500deff742aae0e9dc71f9738151dac1 Mon Sep 17 00:00:00 2001 From: Gerard Fulton Date: Mon, 16 Mar 2020 22:08:21 +0000 Subject: [PATCH 2/3] validated yaml --- download.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/download.yaml b/download.yaml index 687296e..af42337 100644 --- a/download.yaml +++ b/download.yaml @@ -1,4 +1,4 @@ -resources: +rresources: - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-4.2.3-1.el8.x86_64.rpm" filename: "mongodb-org-4.2.3-1.el8.x86_64.rpm" validation: @@ -14,7 +14,7 @@ resources: validation: type: "sha256" value: "a75db5561380b7f9295a906651ea5ee1e1fd47942214c87f3a78990034627827" - - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-shell-4.2.3-1.el8.x86_64.rpm" + - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-shell-4.2.3-1.el8.x86_64.rpm" filename: "mongodb-org-shell-4.2.3-1.el8.x86_64.rpm" validation: type: "sha256" @@ -34,7 +34,7 @@ resources: validation: type: "sha256" value: "af986793a515d500ab2d35f8d2aecd656e764504b789b66d7e1a0b727a124c44" - - url: "https://raw.githubusercontent.com/nodeca/js-yaml/3.13.0/dist/js-yaml.js" + - url: "https://raw.githubusercontent.com/nodeca/js-yaml/3.13.0/dist/js-yaml.js" filename: "js-yaml.js" validation: type: "sha256" @@ -44,4 +44,3 @@ resources: validation: type: "sha256" value: "0b843df6d86e270c5b0f5cbd3c326a04e18f4b7f9b8457fa497b0454c4b138d7" - -- GitLab From 97fe5787c120f002985a8a49d684a807dafbe4d3 Mon Sep 17 00:00:00 2001 From: Gerard Fulton Date: Mon, 16 Mar 2020 22:12:21 +0000 Subject: [PATCH 3/3] resources mispelled --- download.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/download.yaml b/download.yaml index af42337..338aa54 100644 --- a/download.yaml +++ b/download.yaml @@ -1,4 +1,4 @@ -rresources: +resources: - url: "https://repo.mongodb.org/yum/redhat/8/mongodb-org/4.2/x86_64/RPMS/mongodb-org-4.2.3-1.el8.x86_64.rpm" filename: "mongodb-org-4.2.3-1.el8.x86_64.rpm" validation: -- GitLab