Smart proxy dynflow-core

Материал из ALT Linux Wiki
(перенаправлено с «Smart-proxy-dynflow-core»)
Stub.png
Данная страница находится в разработке.
Эта страница ещё не закончена. Информация, представленная здесь, может оказаться неполной или неверной.

Smart-proxy-dynflow-core

Внимание! Модуль smart-proxy-dynflow-core работает в связке с foreman версии 1,x только. Для версии форемана от версии 2 и выше smart-proxy-dynflow-core не используется.


Установка

Необходимо установить один из следующих пакетов: Для версии форемана 1.х:

# apt-get install foreman-addons

Настройка

Перед запуском службы smart-proxy-dynflow-core при необходимости делаем изменения в конфигурационном файле /etc/smart_proxy_dynflow_core/settings.yml такие, какие вам необходимы для правильной её работы в связке с dynflow и foreman-ом.

Для регистрации smart-proxy-dynflow-core как сервиса в smart-proxy необходимо создать файл /etc/smart-proxy/config/settings.d/dynflow.yml

---
:enabled: http
:database:
:core_url: http://127.0.0.1:8008

# If true, external core will be used even if the core gem is available
# If false, the feature will be disabled if the core gem is unavailable
# If unset, the process will fallback to autodetection, using external core if the core gem is unavailable
:external_core: true

Дополнительно требуется настроить работу плагина remote execution создав файл настроек /etc/smart-proxy/config/settings.d/remote_execution_ssh.yml

---
:enabled: true
:ssh_identity_key_file: /var/lib/smart-proxy/.ssh/id_rsa_foreman_proxy
#:ssh_user: root
:local_working_dir: /var/tmp
:remote_working_dir: /var/tmp
:kerberos_auth: false

# Whether to run remote execution jobs asynchronously
:async_ssh: false

и сгенерировав ключи SSH с помощью команд:

mkdir /var/lib/smart-proxy/.ssh
chmod 700 /var/lib/smart-proxy/.ssh
chown _smartforeman:_smartforeman /var/lib/smart-proxy/.ssh
ssh-keygen -t rsa -b 4096 -f /var/lib/smart-proxy/.ssh/id_rsa_foreman_proxy -N ''
chown _smartforeman:_smartforeman -R /var/lib/smart-proxy/.ssh

Запуск

Разрешаем самозапуск службы smart-proxy-dynflow-core, и перезапускаем её:

# systemctl enable smart-proxy-dynflow-core
# systemctl restart smart-proxy-dynflow-core