Configure and install

Import default configuration

cd /apps/amf
bin/impwf -conf conf/impwf -import impwf-default-import.xlsx

Starting amf dashboard

Create configuration file for starting amf as follows:

[AMFUI_LOG]
log_file=logs/amfui.log
log_level=INFO
backup_count=5

[AMFMALIB_LOG]
log_file=logs/malib.log
log_level=INFO
backup_count=5

[AMFUILIB_LOG]
log_file=logs/amfuilib.log
log_level=INFO
backup_count=5

[CONTROLLER_LOG]
log_file=logs/controller.log
log_level=INFO
backup_count=5

[CIPHER_LOG]
log_file=logs/cipher.log
log_level=INFO
backup_count=5

[DATABASE]
db_url="postgres://root@localhost:26257/amf?sslmode=disable"

Create selfsigned certs to use with amf

bin/certsmgr 

Running amfc

nohup bin/amfc -conf runamfc.conf -settings amfui -init >> logs/amfc_init.log 2>&1 &
nohup bin/amfc -conf runamfc.conf -settings amfui -assigngroup >> logs/amfc_ag.log 2>&1 &
nohup bin/amfc -conf runamfc.conf -settings amfui -dev -runapp -env AMFCOMMUNITY >> logs/amfc_start 2>&1 &

Starting amf services

[DEFAULT]
node_id = 10
site_id = DC

# MQ information
# typical values for below: mq_manager = nats2, mq_host=localhost, mq_port=4222, mq_channel=nats://localhost:4222
mq_manager = "{{.QueueManager}}"
mq_host = "{{.QueueHost}}"
mq_port = "{{.QueuePort}}"
mq_channel = "{{.QueueChannel}}"

database_url = "{{.DbUrl}}"
temp_folder = {{.BasePath}}/amf/tmp
storage_root = {{.BasePath}}/amf/amfdata
default_receiver = AMFV2

#UFA Settings
ufa_dist_dir = {{.UfaDistFolder}}
ufa_server_url = {{.UfaServerUrl}}

kafka_queue=
kafka_environment=
kafka_subsystem=

kafka_host = 

kafka_port = 
kafka_topic = 
kafka_partition = 
kafka_username=
kafka_passwd=
kafka_security_protocol=
kafka_client_certpath=
kafka_client_keypath=

elastic_url =
elastic_username=
elastic_passwd=

sfg_inbox_url = {{.SfgHttpUrl}}
sfg_admin_user = {{.SfgHttpUsername}}
sfg_admin_passwd = {{.SfgHttpPassword}}
sfg_url_timeout =  30

[REGISTRATION]
service_type = amf_registration
registration_queue = amf_wf_registration_queue
backout_queue = amf_wf_backout_queue
error_queue = amf_wf_error_queue
workflow_queue = amf_wf_input_queue
retry_interval = 30
thread_count = 1
log_file = {{.BasePath}}/amf/logs/amfv2_registration.log
log_level = debug

[WORKFLOW]
service_type = amf_workflow
registration_queue = amf_wf_registration_queue
workflow_queue = amf_wf_input_queue
mailbox_queue = amf_sfg_input_queue
backout_queue = amf_wf_backout_queue
comms_queue = amf_wf_comms_queue
error_queue = amf_wf_error_queue
retry_interval = 5
thread_count = 1
log_file = {{.BasePath}}/amf/logs/amfv2_workflow.log
log_level = debug
status_log_file = {{.BasePath}}/amf/logs/workflow_status.log
status_log_level = debug

[SCHEDULER]
service_type=amf_scheduler
scheduler_queue = amf_wf_scheduler
registration_queue = amf_wf_registration_queue
log_file = {{.BasePath}}/amf/logs/DC10_SCHEDULER.log
log_level = debug
status_log_file = {{.BasePath}}/amf/logs/SCHDULER_SERVICE_STATUS.log
status_log_level = debug

http_url = http://localhost:41234/schedule-get
http_base_url = http://localhost:41234
http_user = admin
http_password = a_7t76XNVVVJy0vC8lcme-6jMizsdyKkM_6zpaVAfCE

[COMMS]
service_type = amf_comms
comm_service_queue = amf_wf_comms_queue
error_queue = amf_wf_error_queue
retry_interval = 30
thread_count = 1
log_file = {{.BasePath}}/amf/logs/amfv2_comms.log
log_level = debug
enable_sftp = false

Running amf services

cd /apps/amf
nohup bin/amfsvc -conf conf/service.conf >> logs/amf-services-output.log 2>&1 &

Last updated