Compare commits

..

2 Commits

Author SHA1 Message Date
carlosv
d14423aac4 Corrige sustitución de variable de entorno 2022-12-08 23:00:53 +00:00
carlosv
428a8ee698 Instala zabbix-api y desactiva telemetría de code-server 2022-12-08 22:54:49 +00:00

9
install_ansible_rundeck.sh Normal file → Executable file
View File

@ -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/g /etc/rundeck/framework.properties
sed -i s/localhost/$SERVERURL/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