summaryrefslogtreecommitdiffhomepage
path: root/scripts
AgeCommit message (Collapse)AuthorFilesLines
2024-02-13scripts/installer.sh: add tuxedoOS to the Ubuntu copiesNathan Woodburn1-1/+1
Signed-off-by: Nathan Woodburn <github@nathan.woodburn.au>
2023-12-14cmd/k8s-operator: operator can create subnetrouter (#9505)Irbe Krumina2-3/+20
* k8s-operator,cmd/k8s-operator,Makefile,scripts,.github/workflows: add Connector kube CRD. Connector CRD allows users to configure the Tailscale Kubernetes operator to deploy a subnet router to expose cluster CIDRs or other CIDRs available from within the cluster to their tailnet. Also adds various CRD related machinery to generate CRD YAML, deep copy implementations etc. Engineers will now have to run 'make kube-generate-all` after changing kube files to ensure that all generated files are up to date. * cmd/k8s-operator,k8s-operator: reconcile Connector resources Reconcile Connector resources, create/delete subnetrouter resources in response to changes to Connector(s). Connector reconciler will not be started unless ENABLE_CONNECTOR env var is set to true. This means that users who don't want to use the alpha Connector custom resource don't have to install the Connector CRD to their cluster. For users who do want to use it the flow is: - install the CRD - install the operator (via Helm chart or using static manifests). For Helm users set .values.enableConnector to true, for static manifest users, set ENABLE_CONNECTOR to true in the static manifest. Updates tailscale/tailscale#502 Signed-off-by: Irbe Krumina <irbe@tailscale.com>
2023-11-30util/winutil: add support for restarting Windows processes in specific sessionsAaron Klotz1-6/+12
This PR is all about adding functionality that will enable the installer's upgrade sequence to terminate processes belonging to the previous version, and then subsequently restart instances belonging to the new version within the session(s) corresponding to the processes that were killed. There are multiple parts to this: * We add support for the Restart Manager APIs, which allow us to query the OS for a list of processes locking specific files; * We add the RestartableProcess and RestartableProcesses types that query additional information about the running processes that will allow us to correctly restart them in the future. These types also provide the ability to terminate the processes. * We add the StartProcessInSession family of APIs that permit us to create new processes within specific sessions. This is needed in order to properly attach a new GUI process to the same RDP session and desktop that its previously-terminated counterpart would have been running in. * I tweaked the winutil token APIs again. * A lot of this stuff is pretty hard to test without a very elaborate harness, but I added a unit test for the most complicated part (though it requires LocalSystem to run). Updates https://github.com/tailscale/corp/issues/13998 Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2023-11-28scripts/check_license_headers: enforce license on ts/tsx filesSonia Appasamy1-1/+1
Enforcing inclusion of our OSS license at the top of .ts and .tsx files. Also updates any relevant files in the repo that were previously missing the license comment. An additional `@license` comment is added to client/web/src/index.tsx to preserve the license in generated Javascript. Updates #10261 Signed-off-by: Sonia Appasamy <sonia@tailscale.com>
2023-08-25scripts/installer: add Kaisen, Garuda, Fedora-Asahi.Denton Gentry1-3/+3
Fixes https://github.com/tailscale/tailscale/issues/8648 Fixes https://github.com/tailscale/tailscale/issues/8737 Fixes https://github.com/tailscale/tailscale/issues/9087 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-08-23scripts/installer.sh: add CloudLinux and Alibaba LinuxDenton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/9010 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-08-12scripts/installer.sh: set Deepin to a debian versionDenton Gentry1-0/+2
Deepin Linux 20.x reports its version as "apricot" Set it to bullseye, the Debian version it corresponds to. Also fix the installer CI: OpenSUSE Leap appears to have removed curl from the base image recently, we have to install it now. Fixes https://github.com/tailscale/tailscale/issues/8850 Updates https://github.com/tailscale/tailscale/issues/7862 Updates https://github.com/tailscale/corp/issues/8952 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-06-04scripts/installer.sh: add sle-micro-rancher.Denton Gentry1-0/+5
Fixes https://github.com/tailscale/tailscale/issues/5633 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-06-04scripts/installer.sh: add BlendOS support.Denton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/8100 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-05-04scripts/installer.sh: check connectivity with pkgs.tailscale.comAnton Tolchanov1-0/+11
Installer script relies on pkgs.tailscale.com being reachable, both for checking what Linux distros are supported, but also for actually downloading repo configuration files, gpg keys and packages themselves. This change adds a simple reachability check which will print an error message when pkgs.tailscale.com is not reachable. Fixes https://github.com/tailscale/corp/issues/8952 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-04-29.github: test installer script in CI in dockerAnton Tolchanov1-5/+9
Every time we change `installer.sh`, run it in a few docker containers based on different Linux distros, just as a simple test. Also includes a few changes to the installer script itself to make installation work in docker: - install dnf config-manager command before running it - run zypper in non-interactive mode - update pacman indexes before installing packages Updates https://github.com/tailscale/corp/issues/8952 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-04-20scripts/installer: add Deepin, RisiOS.Denton Gentry1-1/+10
Fixes https://github.com/tailscale/tailscale/issues/7862 Fixes https://github.com/tailscale/tailscale/issues/7899 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-25scripts/installer.sh: check Photon OS version with pkg server.Denton Gentry1-8/+1
Photon OS support crossed streams with using pkgserve to check for supported versions 6f9aed1656d0d9ff1a22ed6a022120c6a4f43688. Make Photon OS also rely on pkgserve. Updates https://github.com/tailscale/tailscale/issues/7651 Updates https://github.com/tailscale/corp/issues/8952 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-25scripts/installer: add VMWare PhotonOS.Denton Gentry1-0/+19
Fixes https://github.com/tailscale/tailscale/issues/7651 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-24scripts: use pkg server to determine supported deb/rpm distrosAnton Tolchanov1-86/+18
Fixes https://github.com/tailscale/corp/issues/8952 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-03-21scripts/installer.sh: Add Ubuntu Lunar Lobster 23.04.Denton Gentry1-1/+2
pkgs.tailscale.com added support in January, need to add it to the installer script. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-03-10scripts/installer: add PureOS and Amazon Linux NextDenton Gentry1-1/+9
Fixes https://github.com/tailscale/tailscale/issues/7410 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-02-18scripts/installer.sh: add GalliumOS and Sangoma LinuxDenton Gentry1-1/+7
Fixes https://github.com/tailscale/tailscale/issues/6541 Fixes https://github.com/tailscale/tailscale/issues/6555 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-02-18scripts/installer.sh: add postmarketos support.Denton Gentry1-0/+5
Fixes https://github.com/tailscale/tailscale/issues/7300 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-02-11scripts/installer.sh: add Mendel OS and OpenMandriva.Denton Gentry1-2/+2
Fixes https://github.com/tailscale/tailscale/issues/6926 Fixes https://github.com/tailscale/tailscale/issues/7076 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2023-01-27all: update tools that manage copyright headersWill Norris1-11/+8
Update all code generation tools, and those that check for license headers to use the new standard header. Also update copyright statement in LICENSE file. Fixes #6865 Signed-off-by: Will Norris <will@tailscale.com>
2023-01-27all: update copyright and license headersWill Norris2-6/+4
This updates all source files to use a new standard header for copyright and license declaration. Notably, copyright no longer includes a date, and we now use the standard SPDX-License-Identifier header. This commit was done almost entirely mechanically with perl, and then some minimal manual fixes. Updates #6865 Signed-off-by: Will Norris <will@tailscale.com>
2023-01-24scripts: explicitly install tailscale-archive-keyringAnton Tolchanov1-1/+1
This will ensure that the `tailscale-archive-keyring` Debian package gets installed by the installer script. Updates #3151 Signed-off-by: Anton Tolchanov <anton@tailscale.com>
2023-01-19cmd/tailscale/cli: make "update" work on WindowsBrad Fitzpatrick1-0/+3
Updates #6995 Co-authored-by: Aaron Klotz <aaron@tailscale.com> Change-Id: I16622f43156a70b6fbc8205239fd489d7378d57b Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2023-01-05scripts: permit 2023 in license headersBrad Fitzpatrick1-1/+1
Change-Id: Ia018cb8491871c8bf756c454d085780b75512962 Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
2022-12-24scripts/installer.sh: add SUSE Enterprise Server.Denton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/6840 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-11-10scripts/installer.sh: add Nobara Linux.Denton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/5763 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-31scripts/install.sh: add RHEL7.Denton Gentry1-2/+6
Fixes https://github.com/tailscale/tailscale/issues/5729 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-31scripts/installer.sh: add Debian Sid (rolling release)Denton Gentry1-1/+4
There is no VERSION_ID. root@sid:~# cat /etc/os-release PRETTY_NAME="Debian GNU/Linux bookworm/sid" NAME="Debian GNU/Linux" VERSION_CODENAME=bookworm ID=debian HOME_URL="https://www.debian.org/" SUPPORT_URL="https://www.debian.org/support" BUG_REPORT_URL="https://bugs.debian.org/" Fixes https://github.com/tailscale/tailscale/issues/5522 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-31scripts/install.sh: add openSUSE Leap 15.4Denton Gentry1-0/+1
Fixes https://github.com/tailscale/tailscale/issues/6095 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-24scripts/install.sh: add Ubuntu Kinetic KuduDenton Gentry1-1/+2
Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-10-11scripts/installer.sh: add OSMCDenton Gentry1-0/+7
Fixes https://github.com/tailscale/tailscale/issues/4960 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-08-15scripts/installer.sh: add `-y` for unattended installDenton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/5377 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-08-10installer.sh: add manjaro-arm & EndeavourOS.Denton Gentry1-4/+4
Fixes https://github.com/tailscale/tailscale/issues/5192 Fixes https://github.com/tailscale/tailscale/issues/5284 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-07-27scripts: update check_license_headers.sh to skip zsyscall_windows.goAaron Klotz1-0/+3
Signed-off-by: Aaron Klotz <aaron@tailscale.com>
2022-07-06install.sh: Add archarm and Raspbian StretchDenton Gentry1-2/+3
Fixes https://github.com/tailscale/tailscale/issues/4959 Fixes https://github.com/tailscale/tailscale/issues/4897 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-06-20Adding pkg for Freebsd installationSofiane Hamlaoui1-0/+7
Signed-off-by: Sofiane Hamlaoui <s0fianehaml40u1@gmail.com>
2022-06-20adding --noconfirm to pacman installationSofiane Hamlaoui1-1/+1
Signed-off-by: Sofiane Hamlaoui <s0fianehaml40u1@gmail.com>
2022-05-27scripts/installer: fix elementaryOSDenton Gentry1-2/+17
c2b907c965d18eeacff3d7796f486b45f7fb662b moved UBUNTU_VERSION out of the ubuntu case and into linuxmint, but linuxmint wasn't the only Ubuntu-based system which needed it. Restore UBUNTU_VERSION handling in the ubuntu case. Break elementaryOS out into its own handling so we can get the version number handling correct for keyring support. Tested on an elementaryOS 6.1 VM. Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-05-20install.sh: add RHEL9.Denton Gentry1-1/+2
Fixes https://github.com/tailscale/tailscale/issues/4718 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-05-16scripts/installer.sh: add Xen EnterpriseDenton Gentry1-0/+5
Tested on a VM running Xen Enterprise 8.2.1. https://xcp-ng.org/ Fixes https://github.com/tailscale/tailscale/issues/4655 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/install: add Alma Linux.Denton Gentry1-1/+1
Tested using an Alma Linux 8.5 VM. Updates https://github.com/tailscale/tailscale/issues/2915 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/installer: support LinuxMint Debian.Denton Gentry1-7/+20
The primary distribution for LinuxMint is based on Ubuntu, but there is an alternate Debian-based distribution called LMDE. Both variations identify themselves as "linuxmint" We added UBUNTU_VERSION to the Ubuntu handling for linuxmint, the only distribution so far found to do this. Instead, split linuxmint out into its own case and use either UBUNTU_VERSION or DEBIAN_VERSION, whichever is present. Tested on an LMDE 5 (elsie) VM. Updates https://github.com/tailscale/tailscale/issues/2915 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/installer: call emerge with --ask=nDenton Gentry1-1/+1
Fixes https://github.com/tailscale/tailscale/issues/4354 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-04-20scripts/installer: add ParrotOS supportDenton Gentry1-0/+11
Support ParrotSec https://parrotsec.org/ Tested using a Parrot 5.0 VM. Updates https://github.com/tailscale/tailscale/issues/2915 Signed-off-by: Denton Gentry <dgentry@tailscale.com>
2022-03-17scripts: install gnupg only when apt-key is neededSimon Deziel1-1/+1
apt-key depends on gnupg but apt-key itself if not used on modern systems (APT_KEY_TYPE=keyring). Signed-off-by: Simon Deziel <simon@sdeziel.info>
2022-02-17scripts/installer: add Ubuntu 22.04 LTS Jammy Jellyfish (#3955)Xe Iaso1-1/+2
Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-02-14scripts/installer: automagically run apt update (#3939)Xe Iaso1-1/+2
When running this script against a totally fresh out of the box Debian 11 image, sometimes it will fail to run because it doesn't have a package list cached. This patch adds an `apt-get update` to ensure that the local package cache is up to date. Signed-off-by: Xe Iaso <xe@tailscale.com>
2022-02-10add -y flag for xbps to allow installation on voidJay Stapleton1-1/+1
Signed-off-by: Jay Stapleton <jay@tailscale.com>
2022-02-10add -y flag for xbps to allow installation on voidJay Stapleton1-1/+1