Rundeck add Node Linux

A Node is a resource that is either a physical or virtual instance of a network accessible host. Nodes have a few basic attributes but a Node’s attributes can be extended to include arbitrary named key/value pairs. Attributes typically describe the properties of a node or reflect the state of the node. One of a Node’s built in attributes is called “tags” which is a list of classifications or categories about that Node.

Captura de Tela 2015-06-11 às 14.14.49
1. Create a ssh key and copy to your node

ssh-keygen -t rsa
ssh root@192.168.10.X mkdir -p .ssh
cat .ssh/id_rsa.pub | ssh root@192.168.10.X 'cat >> .ssh/authorized_keys

2. Edit the resources.xml to add new nodes.
vim /opt/rundeck/projects/Project01/etc/resources.xml

3. Add this line:

Captura de Tela 2015-06-11 às 15.04.10

4. Run a command:
Captura de Tela 2015-06-11 às 15.06.19

Success!

Hospedando múltiplos sites no Apache

Ola, neste tutorial irei demonstrar como hospedar vários domínios em um único servidor web Apache

Nesse exemplo vamos hospedar 2 sites
http://www.diegoluisi.com.br
http://www.secureti.com.br

Primeiramente vamos editar o arquivo hosts
vi /etc/hosts
127.0.0.1 diegoluisi http://www.diegoluisi.com.br
127.0.0.1 secureti http://www.secureti.com.br

Salve e saia.

Agora vamos criar as pastas base dos sites.

mkdir -p /var/www/html/diegoluisi
mkdir -p /var/www/html/secureti

Salve o conteúdo dos sites dentro das pastas acima.

Agora vamos editar o arquivo de configurações do apache.
vi /etc/httpd/conf/httpd.conf

NameVirtualHost *

ServerName localhost
DocumentRoot /var/www/html

ServerName http://www.diegoluisi.com.br
DocumentRoot /var/www/html/diegoluisi

ServerName http://www.secureti.com.br
DocumentRoot /var/www/html/secureti

Salve e saia.

Pronto, agora temos um servidor web apache, hospedando múltiplos domínios.