NON_SPLIT_PACKAGES,
kw.pop('components', [])
)
+
+ gpgcheck = kw.pop('gpgcheck', 1)
logger = distro.conn.logger
release = distro.release
machine = distro.machine_type
version=version),
gpg.url(key),
adjust_repos=True,
- extra_installs=False
+ extra_installs=False,
+ gpgcheck=gpgcheck,
)
else:
kw.pop('components', [])
)
repo_url = repo_url.strip('/') # Remove trailing slashes
+ gpgcheck = kw.pop('gpgcheck', 1)
distro.packager.clean()
ceph_repo_content = templates.ceph_repo.format(
repo_url=repo_url,
- gpg_url=gpg_url
+ gpg_url=gpg_url,
+ gpgcheck=gpgcheck,
)
distro.conn.remote_module.write_yum_repo(ceph_repo_content)
NON_SPLIT_PACKAGES,
kw.pop('components', [])
)
+ gpgcheck = kw.pop('gpgcheck', 1)
+
logger = distro.conn.logger
release = distro.release
machine = distro.machine_type
version=version),
gpg.url(key),
adjust_repos=True,
- extra_installs=False
+ extra_installs=False,
+ gpgcheck=gpgcheck,
)
else:
gpg_url, adjust_repos, extra_installs=True, **kw):
packages = kw.get('components', [])
repo_url = repo_url.strip('/') # Remove trailing slashes
+ gpgcheck = kw.pop('gpgcheck', 1)
distro.packager.clean()
ceph_repo_content = templates.ceph_repo.format(
repo_url=repo_url,
- gpg_url=gpg_url
+ gpg_url=gpg_url,
+ gpgcheck=gpgcheck,
)
distro.conn.remote_module.write_yum_repo(ceph_repo_content)
)
repo_url = repo_url.strip('/') # Remove trailing slashes
gpg_url_path = gpg_url.split('file://')[-1] # Remove file if present
+ gpgcheck = kw.pop('gpgcheck', 1)
if adjust_repos:
remoto.process.run(
ceph_repo_content = templates.zypper_repo.format(
repo_url=repo_url,
- gpg_url=gpg_url
+ gpg_url=gpg_url,
+ gpgcheck=gpgcheck,
)
distro.conn.remote_module.write_file(
'/etc/zypp/repos.d/ceph.repo',
if args.repo:
return install_repo(args)
+ if args.nogpgcheck:
+ gpgcheck = 0
+
if args.version_kind == 'stable':
version = args.release
else:
gpg_url,
args.adjust_repos,
components=components,
+ gpgcheck=gpgcheck,
)
# Detect and install custom repos here if needed
version,
args.adjust_repos,
components=components,
+ gpgcheck = gpgcheck,
)
# Check the ceph version we just installed
(defaults to ceph.com)'
)
+ parser.add_argument(
+ '--nogpgcheck',
+ action='store_true',
+ help='install packages without gpgcheck',
+ )
+
parser.set_defaults(
func=install,
)
name=Ceph packages for $basearch
baseurl={repo_url}/$basearch
enabled=1
-gpgcheck=1
+gpgcheck={gpgcheck}
priority=1
type=rpm-md
gpgkey={gpg_url}
name=Ceph noarch packages
baseurl={repo_url}/noarch
enabled=1
-gpgcheck=1
+gpgcheck={gpgcheck}
priority=1
type=rpm-md
gpgkey={gpg_url}
name=Ceph source packages
baseurl={repo_url}/SRPMS
enabled=0
-gpgcheck=1
+gpgcheck={gpgcheck}
type=rpm-md
gpgkey={gpg_url}
"""
name=Ceph packages
type=rpm-md
baseurl={repo_url}
-gpgcheck=1
+gpgcheck={gpgcheck}
gpgkey={gpg_url}
enabled=1
"""