Smart proxy dynflow-core: различия между версиями

Материал из ALT Linux Wiki
Нет описания правки
Нет описания правки
Строка 21: Строка 21:
:enabled: http
:enabled: http
:database:
:database:
:core_url: http://sample.server.name:8008
:core_url: http://127.0.0.1:8008


# If true, external core will be used even if the core gem is available
# If true, external core will be used even if the core gem is available
Строка 27: Строка 27:
# If unset, the process will fallback to autodetection, using external core 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</pre>
:external_core: true</pre>
Дополнительно требуется настроить работу плагина remote execution создав файл настроек ''/etc/smart-proxy/config/settings.d/remote_execution_ssh.yml''
<pre>---
---
: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</pre>
и сгенерировав ключи SSH с помощью команд:
<pre>---
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</pre>


=== Запуск ===
=== Запуск ===

Версия от 05:10, 19 мая 2021

Stub.png
Данная страница находится в разработке.
Эта страница ещё не закончена. Информация, представленная здесь, может оказаться неполной или неверной.

Smart-proxy-dynflow-core

Установка

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

# apt-get install foreman-addons

Для версии форемана 2.х:

# apt-get install smart-proxy-dynflow-core

Настройка

Перед запуском службы 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