-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create script to install The Combine on a standalone system (#2976)
* Set Kubernetes version in ansible configs * Add service to write wired ethernet addess to external device * Remove backend init container * Check for login credentials when a non-released version is requested * Install on localhost * Remove microk8s, fix lookup on user/group on localhost * create playbook for desktop installation * Comment out docker installation * Set link_kubeconfig to true for localhost * Fix regex for IP address * Add local.thecombine.app to list of certificates for offline use (#2825) * Add role to install helm * Add initial helm repo setup * Setup makeself to build installation self-extractor * Add combinectl command to installation * Add desktop install target * Rename "docker_install" role to "container_engine" * Separate hostname from DNS name for The Combine for local install * Skip test of WiFi access point on desktop * Move install of base helm charts to installation script * Make Kubeconfig file only readable to owner * Update repo for installing kubectl * Add input arguments; resume from last install step * Build combinectl from template * Create readme for installation process * Specify network management tool * Add KUBECONFIG to user profile * Migrate from netplan to network-manager * Fix pattern for WiFi interfaces * Assert that there is only one WiFi interface present * Add state to wait for combine cluster to come up * Update setting of ~/.kube/config to support local & remote access * Set k8s_user to current for ansible install; remove debugging output * Remove unhelpful messages from output when performing a standard installation * Add script for uninstall * Remove template for sudoer file - no longer used * Add ability to print or customize the WiFi passphrase * Add ability to print/set WiFi Password * Convert README.md to README.pdf * Add Desktop configuration for The Combine charts
- Loading branch information
Showing
51 changed files
with
1,287 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
################################################# | ||
# Host specific configuration items for localhost | ||
################################################ | ||
|
||
################################################ | ||
# Configure Kubernetes cluster | ||
################################################ | ||
|
||
# Specify which Kubernetes engine to install - | ||
# one of k3s or none. | ||
k8s_engine: k3s | ||
|
||
image_pull_secret: aws-login-credentials | ||
|
||
# k8s namespaces | ||
app_namespace: thecombine | ||
|
||
k8s_user: "{{ ansible_user_id }}" | ||
|
||
################################################ | ||
# Helm Installation | ||
################################################ | ||
install_helm: yes | ||
|
||
################################################ | ||
# Support Tool Settings | ||
################################################ | ||
install_ip_viewer: no | ||
install_combinectl: yes | ||
|
||
####################################### | ||
# Ingress configuration | ||
ingress_namespace: ingress-nginx | ||
|
||
# For the NUCs we want to use the ansible host name | ||
# since that is how we can connect on the local network | ||
# The server name will direct traffic to the production | ||
# server since it is used to get the certificates for the | ||
# NUC. | ||
k8s_dns_name: "local" | ||
|
||
################################################ | ||
# Ethernet settings | ||
################################################ | ||
eth_optional: yes | ||
|
||
################################################ | ||
# WiFi access point settings | ||
################################################ | ||
has_wifi: yes | ||
ap_domain: thecombine.app | ||
ap_ssid: "thecombine_ap" | ||
ap_passphrase: "Combine2020" | ||
ap_gateway: "10.10.10.1" | ||
ap_hostname: "local" | ||
test_wifi: false | ||
################################################ | ||
# hardware monitoring settings | ||
################################################ | ||
include_hw_monitoring: no | ||
history_days: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
--- | ||
############################################################## | ||
# Playbook: playbook_desktop_setup.yml | ||
# | ||
# playbook_desktop_setup.yml installs the packages and | ||
# configuration files that are required to run TheCombine | ||
# as containers managed by a Kubernetes cluster on localhost. | ||
# | ||
############################################################## | ||
|
||
- name: Configure hardware for The Combine | ||
hosts: localhost | ||
gather_facts: yes | ||
become: yes | ||
|
||
vars_files: | ||
- "vars/config_common.yml" | ||
|
||
tasks: | ||
- name: Update packages | ||
apt: | ||
update_cache: yes | ||
upgrade: "yes" | ||
|
||
- name: Setup WiFi Access Point | ||
import_role: | ||
name: wifi_ap | ||
when: has_wifi | ||
|
||
- name: Enable hardware monitoring | ||
import_role: | ||
name: monitor_hardware | ||
when: include_hw_monitoring | ||
|
||
- name: Configure Network Interfaces | ||
import_role: | ||
name: network_config | ||
|
||
- name: Install Container Engine | ||
import_role: | ||
name: container_engine | ||
|
||
- name: Install Kubernetes | ||
import_role: | ||
name: k8s_install | ||
|
||
- name: Install Helm | ||
import_role: | ||
name: helm_install | ||
when: install_helm | ||
|
||
- name: Setup Support Tool | ||
import_role: | ||
name: support_tools |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
--- | ||
container_packages: | ||
- containerd.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
helm_version: v3.13.2 | ||
helm_arch: linux-amd64 | ||
|
||
helm_download_dir: /opt/helm-{{ helm_version }}-{{ helm_arch }} |
Oops, something went wrong.