From 428a8ee69861883df5bb8fa6e2e729fbf45b064f Mon Sep 17 00:00:00 2001 From: carlosv Date: Thu, 8 Dec 2022 22:54:49 +0000 Subject: [PATCH] =?UTF-8?q?Instala=20zabbix-api=20y=20desactiva=20telemetr?= =?UTF-8?q?=C3=ADa=20de=20code-server?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install_ansible_rundeck.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) mode change 100644 => 100755 install_ansible_rundeck.sh diff --git a/install_ansible_rundeck.sh b/install_ansible_rundeck.sh old mode 100644 new mode 100755 index 7e79735..f17ee5c --- a/install_ansible_rundeck.sh +++ b/install_ansible_rundeck.sh @@ -8,7 +8,7 @@ # sets all passwords of users and the vscode server to "onemarcfifty" USERPASSWORD=onemarcfifty - +SERVERURL=rundeck2.lan # first we install some software @@ -29,6 +29,7 @@ echo "rundeck ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/rundeck # install ansible through pip pip install ansible +pip install zabbix-api # download the rundeck installation script and run it directly # then install rundeck @@ -39,8 +40,8 @@ apt -y install rundeck # replace the localhost entries in the config files with the hostname -sed -i s/localhost/`hostname`/g /etc/rundeck/framework.properties -sed -i s/localhost/`hostname`/g /etc/rundeck/rundeck-config.properties +sed -i s/localhost/$SERVERURL=rundeck2.lan/g /etc/rundeck/framework.properties +sed -i s/localhost/$SERVERURL=rundeck2.lan/g /etc/rundeck/rundeck-config.properties # install mariadb apt install -y mariadb-server @@ -91,7 +92,7 @@ Type=simple User=rundeck Environment=PASSWORD=$USERPASSWORD WorkingDirectory=/var/lib/rundeck -ExecStart=/usr/bin/code-server --host 0.0.0.0 +ExecStart=/usr/bin/code-server --host 0.0.0.0 --disable-telemetry [Install] WantedBy=multi-user.target