from ceph_deploy.util import pkg_managers, templates
from ceph_deploy.lib import remoto
from ceph_deploy.hosts.util import install_yum_priorities
+from ceph_deploy.util.paths import gpg
def rpm_dist(distro):
[
'rpm',
'--import',
- "https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/{key}.asc".format(key=key)
+ gpg.url(key)
]
)
release=release.split(".", 1)[0],
machine=machine,
version=version),
- "https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/{key}.asc".format(key=key),
+ gpg.url(key),
adjust_repos=True,
extra_installs=False
)
from ceph_deploy.lib import remoto
from ceph_deploy.util import pkg_managers
+from ceph_deploy.util.paths import gpg
def install(distro, version_kind, version, adjust_repos, **kw):
'wget',
'-O',
'{key}.asc'.format(key=key),
- 'https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/{key}.asc'.format(key=key),
+ gpg.url(key),
],
stop_on_nonzero=False,
)
from ceph_deploy.lib import remoto
from ceph_deploy.hosts.centos.install import repo_install, mirror_install # noqa
from ceph_deploy.hosts.util import install_yum_priorities
+from ceph_deploy.util.paths import gpg
def install(distro, version_kind, version, adjust_repos, **kw):
[
'rpm',
'--import',
- "https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/{key}.asc".format(key=key)
+ gpg.url(key)
]
)
release=release.split(".", 1)[0],
machine=machine,
version=version),
- "https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/{key}.asc".format(key=key),
+ gpg.url(key),
adjust_repos=True,
extra_installs=False
)
from ceph_deploy.cliutil import priority
from ceph_deploy.lib import remoto
from ceph_deploy.util.constants import default_components
+from ceph_deploy.util.paths import gpg
LOG = logging.getLogger(__name__)
# custom repo arguments
repo_url = os.environ.get('CEPH_DEPLOY_REPO_URL') or args.repo_url
gpg_url = os.environ.get('CEPH_DEPLOY_GPG_URL') or args.gpg_url
- gpg_fallback = 'https://git.ceph.com/?p=ceph.git;a=blob_plain;f=keys/release.asc'
+ gpg_fallback = gpg.url('release')
if gpg_url is None and repo_url:
LOG.warning('--gpg-url was not used, will fallback')