Edge Delta on macOS
Step 1: Create a Configuration and Download the Agent
Select the macOS template option in the following steps:
- In the Edge Delta App, click Data Pipeline, and then click Agent Configs.
- Click Create Configuration.
- Select the appropriate template.
- Specify a tag to identify the agent and environment.
- Click Create Configuration.
- A new default agent is created. Review the agent configuration in Visual Pipelines.
When you return to the Agent Configs page, the agent table is updated with a new agent configuration with the agent tag you specified.
Next, you copy the agent API key:
- Locate the new configuration in the table, click the corresponding vertical green ellipses, and then click Deploy Instructions.
- Click macOS.
- In the window that appears, copy the command. This window also displays your API key. Copy this key for a later step.
Step 2: Install the Agent
There are 2 ways to install the agent:
- Option 1: Standard Installation: With this option, you will install the agent via cURL in a bash script. This installation is the standard and recommended way to install the agent.
- Option 2: Offline Installation: With this option, you will not use cURL in a bash script on your production environment. You can use this installation method if you have security concerns.
Option 1: Standard Installation
Open a terminal, and paste the commands you copied from Step 1. If you are not running as root, then you may be asked to enter the sudo password.
The installation process will deploy Edge Delta into the
/opt/edgedelta/agent/ path. Additionally, the
edgedelta system service will start automatically with default configurations.
ED_ENV_VARS special variable is used in the installation command to pass one or more persistent environment variables to the agent, which will run as the system service:
sudo ED_API_KEY=<your api key> \ ED_ENV_VARS="MY_VAR1=MY_VALUE_1,MY_VAR2=MY_VALUE_2" \ bash -c "$(curl -L https://release.edgedelta.com/release/install.sh)"
To view a full list of variables that the agent supports, see Environment Variables.
The https://release.edgedelta.com/release/install.sh release package detects your architecture and operating system, and then chooses and downloads the latest version of the agent self-extracting script, which includes the content to be extracted at the end of the script.
The script’s content and extractable scripts are available for inspection at https://release.edgedelta.com/release/install.sh.
To check the package’s integrity, the script header will extract commands and content checksum.
The script will fail if the content has been tempered with.
For example, the v0.1.19/edgedelta-linux-amd64.shheader includes:
If the package has not been tempered with, then the script will extract the agent into a temporary directory, set the apikey file with the given ED_API_KEY environment variable, and run
unix_install.sh. This command will copy the content to
/opt/edgedelta/agent/ and run the following commands to install edgedelta as a system service and start the service:
/edgedelta -s install
./edgedelta -s start
Option 2: Offline Installation
- Follow the steps outlined in Option 1 in a non-production machine with the same architecture and OS as the target production machine.
- Use the following command to compress the agent folder:
sudo tar -czvf agent_archive.tgz /opt/edgedelta
agent_archive.tgzto the target machine via SSH or other means.
- Use the following command to extract the archive under
sudo tar -xzvf agent_archive.tgz -C /
- Use the following command to install and start the service:
sudo cd /opt/edgedelta/agent/sudo ./edgedelta -s installsudo ./edgedelta -s start
|To check the status of the agent, run the following command:||sudo su|
|launchctl list edgedelta|
|To check the agent’s log file for any errors that may indicate an issue with the agent, configuration, or deployment settings, run the following command on the Edge Delta service log file path:||cat /var/log/edgedelta/edgedelta.log|
|To check the agent’s configuration file to ensure the configuration does not contain any issue, run the following command on the configuration file path:||cat /opt/edgedelta/agent/config.yml|
To upgrade the agent, you run the installation command that you previously used to deploy the agent.
The following script uninstalls the agent as the root user:
#!/bin/bash set -uex BITS=$(getconf LONG_BIT) if [ "$BITS" == "32" ]; then echo "This script does not support 32 bit OS. Contact email@example.com" fi echo "Removing agent service" sudo /opt/edgedelta/agent/edgedelta -s uninstall echo "Removing agent folder" sudo rm -rf /opt/edgedelta/agent/ echo "Done"