diff --git a/templates/receptor.conf.j2 b/templates/receptor.conf.j2 index f0978ee..0c379bc 100644 --- a/templates/receptor.conf.j2 +++ b/templates/receptor.conf.j2 @@ -2,14 +2,14 @@ node_id={{ lookup('file', receptor_config_dir+'/rh_'+sat_account_id+'/uuid') }} [plugin_receptor_satellite] -username={{ satellite_user }} -password={{ satellite_password }} +username={{ satellite_user | regex_replace('%', '%%') }} +password={{ satellite_password | regex_replace('%', '%%') }} url={{ satellite_url }} -ca_file={{ satellite_ca_file }} +ca_file={{ satellite_ca_file | regex_replace('%', '%%') }} [auth] -client_cert={{ receptor_config_dir }}/rh_{{ sat_account_id }}/cert.pem -client_key={{ receptor_config_dir }}/rh_{{ sat_account_id }}/key.pem +client_cert={{ receptor_config_dir | regex_replace('%', '%%') }}/rh_{{ sat_account_id }}/cert.pem +client_key={{ receptor_config_dir | regex_replace('%', '%%') }}/rh_{{ sat_account_id }}/key.pem [node] peers=wss://{{ c_rh_c_host }}/wss/receptor-controller/gateway diff --git a/templates/receptor@.service.j2 b/templates/receptor@.service.j2 index 9488d0d..6969327 100644 --- a/templates/receptor@.service.j2 +++ b/templates/receptor@.service.j2 @@ -3,8 +3,8 @@ Description=Receptor Node for %i After=network.target [Service] -ExecStart=/usr/bin/receptor -c {{receptor_config_dir}}/%i/receptor.conf -d {{receptor_data_dir}}/%i node -EnvironmentFile=-{{ receptor_config_dir }}/%i/receptor.env +ExecStart=/usr/bin/receptor -c {{ receptor_config_dir | regex_replace('%', '%%') }}/%i/receptor.conf -d {{ receptor_data_dir | regex_replace('%', '%%') }}/%i node +EnvironmentFile=-{{ receptor_config_dir | regex_replace('%', '%%') }}/%i/receptor.env [Install] WantedBy=multi-user.target