Public | Automated Build

Last pushed: a year ago
Short Description
rundeck for sonda
Full Description

Sonda - Rundeck POC

Cómo correr este contenedor??

1.- Crear una base de datos

Podemos correr un contenedor MYSQL y exponer un volumen para que sea guardado en el HOST "/var/mysql_volume"

docker run --name mysql -v /var/mysql_volume:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=Sonda.2016 -p 3306:3306 -d mysql:5.6

Tendremos que entrar al contenedor

docker exec -it mysql bash

Y crear una nueva base de datos para rundeck

mysql -u root -p
create database rundeck;
grant ALL on rundeck.* to 'rundeck'@192.168.99.100 identified by 'Sonda.2016';

2.- Levantar la máquina rundeck

docker run -d --restart=always -p 4440:4440 --name rundeck -e SERVER_URL=http://192.168.99.100:4440 -e DATABASE_URL=192.168.99.100:3306 -e IP_ADDRESS=192.168.99.100 -e RUNDECK_PASSWORD=Sonda.2016 -e RUNDECK_STORAGE_PROVIDER=db -e RUNDECK_PROJECT_STORAGE_TYPE=db -e NO_LOCAL_MYSQL=true -t cabrerabywaters/sonda-rundeck:latest

2.1- Iniciar el servicio de Logstash en la máquina

/opt/logstash/bin/logstash -f /root/rundeck-logstash.conf &

3.- Levantar la máquina ELK

docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -p 5000:5000 -it --name elk sebp/elk

Si necesitamos detener Rundeck podemos hacerlo por medio del comando

/etc/init.d/rundeckd stop

Fuentes de Informacion

WinRm config

http://technico.qnownow.com/the-winrm-client-cannot-process-the-request-unencrypted-traffic-is-currently-disabled/
http://stevenmurawski.com/powershell/2015/06/need-to-test-if-winrm-is-listening/

Adding Remote windows node to Rundeck

http://www.techpaste.com/2015/08/rundeck-windows-nodes-configuration/
http://www.diegoluisi.eti.br/2015/06/linux/rundeck-how-to-add-windows-node/

Admin Guide for rundeck:

http://rundeck.org/docs/administration/index.html

This repository contains the source for the Rundeck docker image.

Environment variables

SERVER_URL - Full URL in the form http://MY.HOSTNAME.COM:4440, http//123.456.789.012:4440, etc

RDECK_JVM - Additional parameters sent to the rundeck JVM (ex: -Dserver.web.context=/rundeck)

DATABASE_URL - For use with (container) external database

RUNDECK_PASSWORD - MySQL 'rundeck' user password

RUNDECK_STORAGE_PROVIDER - Options file (default) or db.  See: http://rundeck.org/docs/plugins-user-guide/configuring.html#storage-plugins

RUNDECK_PROJECT_STORAGE_TYPE - Options file (default) or db.  See: http://rundeck.org/docs/administration/setting-up-an-rdb-datasource.html

DEBIAN_SYS_MAINT_PASSWORD

NO_LOCAL_MYSQL - false (default).  Set to true if using an external MySQL container or instance.  Make sure to set DATABASE_URL and RUNDECK_PASSWORD (used for JDBC connection to MySQL).  Further details for setting up MYSQL: http://rundeck.org/docs/administration/setting-up-an-rdb-datasource.html

Volumes

/etc/rundeck
/var/rundeck
/var/lib/rundeck - Not recommended to use as a volume as it contains webapp.  For SSH key you can use the this volume: /var/lib/rundeck/.ssh
/var/lib/mysql
/var/log/rundeck
/opt/rundeck-plugins - For adding external plugins
Docker Pull Command
Owner
cabrerabywaters
Source Repository