Skip to content

Instantly share code, notes, and snippets.

services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
# LOG_LEVEL: debug
volumes:
version: '3'
services:
agent:
image: portainer/agent
environment:
# REQUIRED: Should be equal to the service name prefixed by "tasks." when
# deployed inside an overlay network
AGENT_CLUSTER_ADDR: tasks.agent
# AGENT_PORT: 9001
set-executionpolicy RemoteSigned -Force -EA 'SilentlyContinue';iex ((new-object net.webclient).DownloadString('http://192.168.1.37/resources/ agent/AgentInstallWindows.ps1'))
yum -y install epel-release
yum -y install salt-minion
sed -i "/#master:/c\master: 188.166.38.241" /etc/salt/minion
systemctl enable salt-minion
systemctl start salt-minion