Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

only download ziti CLI because it has everything now #10

Open
qrkourier opened this issue Jun 14, 2023 · 1 comment
Open

only download ziti CLI because it has everything now #10

qrkourier opened this issue Jun 14, 2023 · 1 comment
Labels
good first issue Good for newcomers

Comments

@qrkourier
Copy link
Member

The downloader/installer role was written back when ziti-controller was a separate binary, but now ziti controller is built in to the main ziti CLI.

Change the role to only download/install the ziti CLI.

@qrkourier qrkourier added the good first issue Good for newcomers label Jun 14, 2023
@qrkourier
Copy link
Member Author

Now the ziti CLI is available as an rpm, deb package for Linux, so the role should use that.


Release repo for RedHat family distros

(set -euo pipefail;

sudo tee -a /etc/yum.repos.d/openziti.repo >/dev/null <<\EOF ;
[OpenZiti]
name=OpenZiti
baseurl=https://packages.openziti.org/zitipax-openziti-rpm-stable/release/$basearch
enabled=1
gpgcheck=0
gpgkey=https://packages.openziti.org/zitipax-openziti-rpm-stable/release/$basearch/repodata/repomd.xml.key
repo_gpgcheck=1
EOF

sudo dnf update;

sudo dnf install ziti-cli;
)

Release repo for Debian family distros

(set -euo pipefail;

[[ -s /usr/share/keyrings/openziti.gpg ]] || {
    curl -sSLf https://get.openziti.io/tun/package-repos.gpg \
    | sudo gpg --dearmor --output /usr/share/keyrings/openziti.gpg
}
sudo chmod +r /usr/share/keyrings/openziti.gpg
sudo tee -a /etc/apt/sources.list.d/openziti.list >/dev/null <<EOF ;
deb [signed-by=/usr/share/keyrings/openziti.gpg] https://packages.openziti.org/zitipax-openziti-deb-stable release main
EOF

sudo apt update;

sudo apt install ziti-cli;
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant