Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 52 additions & 0 deletions bbot/core/helpers/depsinstaller/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,20 @@ class DepsInstaller:
"bash": "bash",
"which": "which",
"tar": "tar",
"xz": [
{
"name": "Install xz-utils (Debian)",
"package": {"name": ["xz-utils"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'Debian'",
},
{
"name": "Install xz (Non-Debian)",
"package": {"name": ["xz"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] != 'Debian'",
},
],
# debian why are you like this
"7z": [
{
Expand All @@ -53,6 +67,44 @@ class DepsInstaller:
"when": "ansible_facts['distribution'] == 'Fedora'",
},
],
# to compile just about any tool, we need the openssl dev headers
"openssl": [
{
"name": "Install OpenSSL library and development headers (Debian/Ubuntu)",
"package": {"name": ["libssl-dev", "openssl"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'Debian'",
"ignore_errors": True,
},
{
"name": "Install OpenSSL library and development headers (RedHat/CentOS/Fedora)",
"package": {"name": ["openssl", "openssl-devel"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'RedHat' or ansible_facts['os_family'] == 'Suse' ",
"ignore_errors": True,
},
{
"name": "Install OpenSSL library and development headers (Arch)",
"package": {"name": ["openssl"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'Archlinux'",
"ignore_errors": True,
},
{
"name": "Install OpenSSL library and development headers (Alpine)",
"package": {"name": ["openssl", "openssl-dev"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'Alpine'",
"ignore_errors": True,
},
{
"name": "Install OpenSSL library and development headers (FreeBSD)",
"package": {"name": ["openssl"], "state": "present"},
"become": True,
"when": "ansible_facts['os_family'] == 'FreeBSD'",
"ignore_errors": True,
},
],
}

def __init__(self, parent_helper):
Expand Down