Signed-off-by: Alfredo Deza <alfredo.deza@inktank.com>
import mon
-from install import install
+from install import install, firewall_install
from uninstall import uninstall
# Allow to set some information about this distro
+from ceph_deploy.util import pkg_managers, templates
from ceph_deploy.lib.remoto import process
'ceph',
],
)
+
+
+def firewall_install(distro, repo_url, gpg_url, adjust_repos):
+ repo_url = repo_url.strip('/') # Remove trailing slashes
+
+ if adjust_repos:
+ process.run(
+ distro.conn,
+ [
+ 'rpm',
+ '--import',
+ gpg_url,
+ ]
+ )
+
+ ceph_repo_content = templates.ceph_repo.format(
+ repo_url=repo_url,
+ gpg_url=gpg_url
+ )
+
+ distro.conn.remote_module.write_yum_repo(ceph_repo_content)
+
+ pkg_managers.yum(distro.conn, 'ceph')