Instalação Automática Servidor Bacula Enterprise com Manager (CentOS, Debian etc.)

Instalar e executar o bee_installation_manager

Linux

yum install -y wget
cd /root
wget https://www.baculasystems.com/ml/bee_installation_manager
chmod +x bee_installation_manager
./bee_installation_manager -t DIR -fw -da %customer_id% -s bweb
./bee_installation_manager -t SD -fw -s dedup single-item-restore
./bee_installation_manager -t FD -fw -s vsphere postgresql

Nota: python 2.7 ou superior é necessário para executar o script.

Windows

Inicie um PowerShell e digite:

wget https://www.baculasystems.com/ml/bee_installation_manager.exe -Outfile C:\bee_installation_manager.exe

Inicie bee_installation_manager.exe (serão solicitados privilégios elevados).

Nota: alguns softwares antivírus podem bloquear o download, verifique suas configurações de antivírus para evitar isso.

Exemplo de Execução de Sessão Interativa

Nota: o bee_installation_manager pode ser interrompido a qualquer momento com CTRL-C, facilitando a alteração das opções selecionadas antes da instalação, se necessário.

============================================================
Welcome to Bacula Enterprise Installation Manager 2021.12.14
============================================================
This script will assist you during Bacula Enterprise
plugins installation and client Registration.

CentOS Linux 8 detected [rhel8-64].

Press ENTER to start


===========================================================
Installation of File Daemon (Client) and associated plugins
===========================================================
Proceed with Installation of File Daemon (Client) and associated plugins? [Y/n]

Using Download Area Code [NorbertBizet-f0XdePvkmfcv3pxo]
Would you like to use this one again? [Y/n]

Available versions
-------------------
1 : 12.0.5 2 : 12.2.5 3 : 12.4.4 4 : 12.6.5 5 : 12.8.3
-------------------
Please, select the version of your Bacula Director ('12.8.3' by default) : 5
[====================] 100.0% vsphere (not installed)
The bacula-fd client will be installed or upgraded by default.


The following plugins are available for installation at version 12.8.3 :
--------------------------------------------------------------------------
1 : db2 2 : delta
3 : docker 4 : hdfs
5 : kubernetes 6 : ldap
7 : m365 8 : mysql
9 : ndmp 10 : netapp-hfc
11 : openshift 12 : oracle
13 : postgresql 14 : rhv
15 : sap-hana 16 : single-item-restore
17 : snapshot 18 : sybase
19 : vsphere
--------------------------------------------------------------------------
Select the number(s) of the plugins you want to install, separated by commas.
Leave empty and just press <Enter> to skip plugin selection : 13

====================================
Registration of File Daemon (Client)
====================================
Proceed with Registration of File Daemon (Client)? [Y/n] n
Registration of File Daemon (Client) skipped!

=======================
Managing Firewall rules
=======================
Proceed with Managing Firewall rules? [Y/n]

Available Firewalls
--------------------
1 : firewall-cmd 2 : nft 3 : iptables
--------------------
Please, make your selection(s) separated by ',' (commas) : 1,3
No Director address detected. Any incoming address will be accepted by default
Enter a new Director address or * to accept any incoming address [dir-addr|*] :
Any incoming address will be accepted

======================================
Managing service(s) after installation
======================================
Proceed with Managing service(s) after installation? [Y/n]

Restart the Bacula service(s) after installation? [Y/n]

Start the Bacula service(s) automatically at boot? [Y/n]

=========================================
Ready to process the following operations
=========================================
[X] Installation of : Bacula, postgresql
[X] Registration of File Daemon (Client)
[X] Managing Firewall rules
[X] Managing service(s) after installation

Continue or retry(r)? [Y/n/r]

Executing Installation of File Daemon (Client) and associated plugins ...
[=======-------------] 33.3% installing keys
Updating the following modules and dependencies : bin, postgresql ...
[====================] 100.0% updating postgresql
Installing the following modules and dependencies : gnupg, tar, bacula-enterprise-client, bacula-enterprise-postgresql-plugin ...
[====================] 100.0% yum install bacula-enterprise-postgresql-plugin done
Success.

Executing Managing Firewall rules ...
Success.

Executing Managing service(s) after installation ...
Success.




Installation of File Daemon (Client) Successfully completed
===========================================================
Bacula Enterprise Installation Manager. Done.
=============================================

Instalação Silenciosa bee_installation_manager

Use o URL de registro da Web gerado pelo assistente com o gerenciador de instalação do Bacula Enterprise como no exemplo abaixo para realizar uma implantação silenciosa:

./bee_installation_manager --director @@director-address@@ --download_area @@customer@@ --version @@bee-version@@ --link @@bweb-registration-url@@ --silent

As opções são detalhadas a seguir:

  • @@director-address@@ refere-se a um IP ou FQDN do Bacula Director no qual o cliente será registrado
  • @@customer@@ refere-se à sua string de área personalizada. Você pode encontrar essas informações no Pacote de Boas-vindas
  • @@bee-version@@ deve ser substituído pela versão do Bacula Enterprise Edition que você comprou (12.x.y, 10.x.y)
  • @@bweb-registration-url@@ refere-se ao URL obtido no QR Code/Assistente de Registro

Uso avançado com argumentos

Todas as opções selecionadas durante a sessão podem ser fornecidas alternadamente por meio de argumentos de linha de comando. Isso pode ser útil para implantação automatizada.

A opção bee_installation_manager -h fornece a descrição de todos os argumentos utilizáveis:

usage: bee_installation_manager [-h] [-c CONFIG] [-d DIRECTOR]
[-da DOWNLOAD_AREA] [-v VERSION] [-l LINK]
[-o LOG] [-s] [-t {FD,SD,DIR}]
[-r {release,beta,nightly}] [-p PLATFORM]
[-pkg {debian,rpm,windows}]
[-bp BWEB_PASSWORD]
[-fw [FIREWALL [FIREWALL ...]]]
[plugins [plugins ...]]

Bacula Enterprise Installation Manager

positional arguments:
plugins one or several plugin(s) to install

optional arguments:
-h, --help show this help message and exit
-c CONFIG, --config CONFIG
config file path (defaulted to /root/.bee_installation
_manager/bee_installation_manager.ini)
-d DIRECTOR, --director DIRECTOR
director address (for firewall). Can be deduced from
link.
-da DOWNLOAD_AREA, --download_area DOWNLOAD_AREA
Download Area code
-v VERSION, --version VERSION
force installation version
-l LINK, --link LINK Automatic configuration URL
-o LOG, --log LOG log to file (defaulted to /root/.bee_installation_mana
ger/bee_installation_manager.log)
-s, --silent avoid keyboard input
-t {FD,SD,DIR}, --type {FD,SD,DIR}
installation type (only one can be selected at a time,
FD by default)
-r {release,beta,nightly}, --repo {release,beta,nightly}
allow installation of release, beta or nightly
versions (release by default)
-p PLATFORM, --platform PLATFORM
overwrites automatically detected local platform
-pkg {debian,rpm,windows}, --package {debian,rpm,windows}
overwrites automatically detected package selection
-bp BWEB_PASSWORD, --bweb_password BWEB_PASSWORD
bweb admin user password
-fw [FIREWALL [FIREWALL ...]], --firewall [FIREWALL [FIREWALL ...]]
one or several firewall(s) to configure. None means
configure all detected firewalls

Use -t (type) para habilitar a instalação Director+BWeb ou Storage deamon.

Use -s para instalar sem interrupção do teclado de sessão (útil para instalação em lote), em conjunto com argumentos específicos ou, alternativamente, com um arquivo de configuração (argumento -c). Um arquivo de configuração deve ser um arquivo de texto simples e os argumentos devem ser fornecidos na seção [Parser]. Por exemplo, se o arquivo /tmp/bee_config.ini contiver:

[Parser]
download_area = MyName-0123456789abcd
director = 192.168.0.14
log = /var/log/bacula/bee_installation_manager.log

A execução de bee_installation_manager -s -c /tmp.bee_config.ini prosseguirá com a instalação do File Deamon e a configuração do firewall sem interrupção do teclado e produzirá um log em /var/log/bacula/bee_installation_manager.log.

 

Disponível em: pt-brPortuguêsenEnglish (Inglês)esEspañol (Espanhol)

Deixe uma resposta