mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 13:45:04 +02:00
parent
33f64c28ab
commit
cca79a3849
@ -14,6 +14,17 @@ if [ -n "$1" ]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
while true; do
|
||||||
|
echo -n "Upstream Icinga instance name: "
|
||||||
|
if ! read UPSTREAM; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ -n "$UPSTREAM" ]; then
|
||||||
|
break
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
echo "Installing the certificate bundle..."
|
echo "Installing the certificate bundle..."
|
||||||
tar -C $ICINGA2CONFIG/pki/agent/ -xf "$1"
|
tar -C $ICINGA2CONFIG/pki/agent/ -xf "$1"
|
||||||
|
|
||||||
@ -30,6 +41,8 @@ object AgentListener "agent" {
|
|||||||
key_path = SysconfDir + "/icinga2/pki/agent/agent.key"
|
key_path = SysconfDir + "/icinga2/pki/agent/agent.key"
|
||||||
ca_path = SysconfDir + "/icinga2/pki/agent/ca.crt"
|
ca_path = SysconfDir + "/icinga2/pki/agent/ca.crt"
|
||||||
|
|
||||||
|
upstream_name = "$UPSTREAM"
|
||||||
|
|
||||||
bind_port = 7000
|
bind_port = 7000
|
||||||
}
|
}
|
||||||
AGENT
|
AGENT
|
||||||
|
Loading…
x
Reference in New Issue
Block a user