Instala zabbix-api y desactiva telemetría de code-server
This commit is contained in:
parent
0b3dca86f6
commit
428a8ee698
9
install_ansible_rundeck.sh
Normal file → Executable file
9
install_ansible_rundeck.sh
Normal file → Executable file
@ -8,7 +8,7 @@
|
|||||||
# sets all passwords of users and the vscode server to "onemarcfifty"
|
# sets all passwords of users and the vscode server to "onemarcfifty"
|
||||||
|
|
||||||
USERPASSWORD=onemarcfifty
|
USERPASSWORD=onemarcfifty
|
||||||
|
SERVERURL=rundeck2.lan
|
||||||
|
|
||||||
# first we install some software
|
# first we install some software
|
||||||
|
|
||||||
@ -29,6 +29,7 @@ echo "rundeck ALL=(ALL) NOPASSWD: ALL" >/etc/sudoers.d/rundeck
|
|||||||
# install ansible through pip
|
# install ansible through pip
|
||||||
|
|
||||||
pip install ansible
|
pip install ansible
|
||||||
|
pip install zabbix-api
|
||||||
|
|
||||||
# download the rundeck installation script and run it directly
|
# download the rundeck installation script and run it directly
|
||||||
# then install rundeck
|
# then install rundeck
|
||||||
@ -39,8 +40,8 @@ apt -y install rundeck
|
|||||||
|
|
||||||
# replace the localhost entries in the config files with the hostname
|
# 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/$SERVERURL=rundeck2.lan/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/rundeck-config.properties
|
||||||
|
|
||||||
# install mariadb
|
# install mariadb
|
||||||
apt install -y mariadb-server
|
apt install -y mariadb-server
|
||||||
@ -91,7 +92,7 @@ Type=simple
|
|||||||
User=rundeck
|
User=rundeck
|
||||||
Environment=PASSWORD=$USERPASSWORD
|
Environment=PASSWORD=$USERPASSWORD
|
||||||
WorkingDirectory=/var/lib/rundeck
|
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]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user