Skip to content

Commit c6cd1b4

Browse files
xorelrsmontero
authored andcommitted
M #-: Fix SUSE repo config: add gpgkey and use $basearch variable (#598)
(cherry picked from commit 2da6804)
1 parent 75150b0 commit c6cd1b4

File tree

2 files changed

+49
-11
lines changed

2 files changed

+49
-11
lines changed

content/software/installation_process/manual_installation/opennebula_repository_configuration_ce.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,6 @@ apt-get update
106106

107107
### SUSE
108108

109-
During `zypper refresh` you will be prompted to accept the OpenNebula repository signing key. Verify the fingerprint matches `0B2D 385C 7C93 04B1 1A03 67B9 05A0 5927 906D C27C` before accepting.
110-
111109
#### SUSE Linux Enterprise Server 15 SP7
112110

113111
Execute the following commands as user `root`:
@@ -119,7 +117,18 @@ SUSEConnect -p PackageHub/15.7/$arch
119117
SUSEConnect -p sle-module-public-cloud/15.7/$arch
120118
SUSEConnect -p sle-module-desktop-applications/15.7/$arch
121119

122-
zypper ar -f https://downloads.opennebula.io/repo/{{< release >}}/SLES/15/$arch opennebula
120+
rpm --import https://downloads.opennebula.io/repo/repo2.key
121+
122+
cat << "EOT" > /etc/zypp/repos.d/opennebula.repo
123+
[opennebula]
124+
name=OpenNebula Community Edition
125+
enabled=1
126+
autorefresh=1
127+
baseurl=https://downloads.opennebula.io/repo/{{< release >}}/SLES/15/$basearch
128+
gpgkey=https://downloads.opennebula.io/repo/repo2.key
129+
gpgcheck=1
130+
repo_gpgcheck=1
131+
EOT
123132

124133
zypper refresh
125134
```
@@ -129,9 +138,19 @@ zypper refresh
129138
openSUSE Leap 16.0 requires the OpenNebula repository and the openSUSE Science repository for SciPy. Execute the following as user `root`:
130139

131140
```shell
132-
arch=$(uname -m)
141+
rpm --import https://downloads.opennebula.io/repo/repo2.key
142+
143+
cat << "EOT" > /etc/zypp/repos.d/opennebula.repo
144+
[opennebula]
145+
name=OpenNebula Community Edition
146+
enabled=1
147+
autorefresh=1
148+
baseurl=https://downloads.opennebula.io/repo/{{< release >}}/openSUSE/16/$basearch
149+
gpgkey=https://downloads.opennebula.io/repo/repo2.key
150+
gpgcheck=1
151+
repo_gpgcheck=1
152+
EOT
133153

134-
zypper ar -f https://downloads.opennebula.io/repo/{{< release >}}/openSUSE/16/$arch opennebula
135154
zypper ar -f https://download.opensuse.org/repositories/science/openSUSE_Leap_16.0/ science
136155
zypper refresh
137156
```

content/software/installation_process/manual_installation/opennebula_repository_configuration_ee.md

Lines changed: 25 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ apt-get update
141141

142142
### SUSE
143143

144-
During `zypper refresh` you will be prompted to accept the OpenNebula repository signing key. Verify the fingerprint matches `0B2D 385C 7C93 04B1 1A03 67B9 05A0 5927 906D C27C` before accepting.
145-
146144
#### SUSE Linux Enterprise Server 15 SP7
147145

148146
Execute the following as user `root`:
@@ -154,14 +152,25 @@ SUSEConnect -p PackageHub/15.7/$arch
154152
SUSEConnect -p sle-module-desktop-applications/15.7/$arch
155153
SUSEConnect -p sle-module-public-cloud/15.7/$arch
156154

155+
rpm --import https://downloads.opennebula.io/repo/repo2.key
156+
157157
mkdir -p /etc/zypp/credentials.d
158158
cat << "EOT" > /etc/zypp/credentials.d/opennebula.conf
159159
username=<user>
160160
password=<password>
161161
EOT
162162
chmod 600 /etc/zypp/credentials.d/opennebula.conf
163163

164-
zypper ar -f 'https://enterprise.opennebula.io/repo/{{< release >}}/SLES/15/'"$arch"'?credentials=opennebula.conf' opennebula
164+
cat << "EOT" > /etc/zypp/repos.d/opennebula.repo
165+
[opennebula]
166+
name=OpenNebula Enterprise Edition
167+
enabled=1
168+
autorefresh=1
169+
baseurl=https://enterprise.opennebula.io/repo/{{< release >}}/SLES/15/$basearch?credentials=opennebula.conf
170+
gpgkey=https://downloads.opennebula.io/repo/repo2.key
171+
gpgcheck=1
172+
repo_gpgcheck=1
173+
EOT
165174

166175
zypper refresh
167176
```
@@ -170,8 +179,8 @@ zypper refresh
170179

171180
openSUSE Leap 16.0 requires the OpenNebula repository and the openSUSE Science repository for SciPy. Execute the following as user `root`:
172181

173-
```default
174-
arch=$(uname -m)
182+
```shell
183+
rpm --import https://downloads.opennebula.io/repo/repo2.key
175184

176185
mkdir -p /etc/zypp/credentials.d
177186
cat << "EOT" > /etc/zypp/credentials.d/opennebula.conf
@@ -180,7 +189,17 @@ password=<password>
180189
EOT
181190
chmod 600 /etc/zypp/credentials.d/opennebula.conf
182191

183-
zypper ar -f 'https://enterprise.opennebula.io/repo/{{< release >}}/openSUSE/16/'"$arch"'?credentials=opennebula.conf' opennebula
192+
cat << "EOT" > /etc/zypp/repos.d/opennebula.repo
193+
[opennebula]
194+
name=OpenNebula Enterprise Edition
195+
enabled=1
196+
autorefresh=1
197+
baseurl=https://enterprise.opennebula.io/repo/{{< release >}}/openSUSE/16/$basearch?credentials=opennebula.conf
198+
gpgkey=https://downloads.opennebula.io/repo/repo2.key
199+
gpgcheck=1
200+
repo_gpgcheck=1
201+
EOT
202+
184203
zypper ar -f https://download.opensuse.org/repositories/science/openSUSE_Leap_16.0/ science
185204
zypper refresh
186205
```

0 commit comments

Comments
 (0)