Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions development/roles/foreman_development/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,16 @@
username: "{{ foreman_development_admin_user }}"
password: "{{ foreman_development_admin_password }}"
ca_path: "{{ foreman_development_ca_certificate }}"
register: _foreman_development_pulp_proxy_registration

- name: Warn about unrecognized Pulp Smart Proxy features
ansible.builtin.debug:
msg: >-
Proxy {{ ansible_facts['fqdn'] }}-pulp has features not recognized by Foreman:
{{ _foreman_development_pulp_proxy_registration.entity.smart_proxies[0].unrecognized_features | join(', ') }}.
If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.
when:
- _foreman_development_pulp_proxy_registration.entity.smart_proxies[0].unrecognized_features | default([]) | length > 0

- name: Configure smart-proxy for development
ansible.builtin.include_tasks: smart-proxy/main.yml
Expand Down
10 changes: 10 additions & 0 deletions development/roles/foreman_development/tasks/smart-proxy/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,16 @@
oauth1_consumer_secret: "{{ foreman_development_oauth_consumer_secret }}"
ca_path: "{{ foreman_development_ca_certificate }}"
validate_certs: false
register: _foreman_development_proxy_registration

- name: Warn about unrecognized Smart Proxy features
ansible.builtin.debug:
msg: >-
Proxy {{ ansible_facts['fqdn'] }}-dev has features not recognized by Foreman:
{{ _foreman_development_proxy_registration.entity.smart_proxies[0].unrecognized_features | join(', ') }}.
If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.
when:
- _foreman_development_proxy_registration.entity.smart_proxies[0].unrecognized_features | default([]) | length > 0

- name: Stop smart-proxy-development service
ansible.builtin.systemd:
Expand Down
10 changes: 10 additions & 0 deletions src/roles/foreman/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -321,3 +321,13 @@
oauth1_consumer_key: "{{ foreman_oauth_consumer_key }}"
oauth1_consumer_secret: "{{ foreman_oauth_consumer_secret }}"
ca_path: "{{ foreman_ca_certificate }}"
register: _foreman_pulp_proxy_registration

- name: Warn about unrecognized Pulp Smart Proxy features
ansible.builtin.debug:
msg: >-
Proxy {{ ansible_facts['fqdn'] }}-pulp has features not recognized by Foreman:
{{ _foreman_pulp_proxy_registration.entity.smart_proxies[0].unrecognized_features | join(', ') }}.
If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.
when:
- _foreman_pulp_proxy_registration.entity.smart_proxies[0].unrecognized_features | default([]) | length > 0
10 changes: 10 additions & 0 deletions src/roles/foreman_proxy/tasks/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,16 @@
oauth1_consumer_key: "{{ foreman_proxy_oauth_consumer_key }}"
oauth1_consumer_secret: "{{ foreman_proxy_oauth_consumer_secret }}"
ca_path: "{{ foreman_proxy_foreman_ca_certificate | default(omit) }}"
register: _foreman_proxy_registration

- name: Warn about unrecognized Smart Proxy features
ansible.builtin.debug:
msg: >-
Proxy {{ foreman_proxy_name }} has features not recognized by Foreman:
{{ _foreman_proxy_registration.entity.smart_proxies[0].unrecognized_features | join(', ') }}.
If these features come from a Smart Proxy plugin, make sure Foreman has the plugin installed too.
when:
- _foreman_proxy_registration.entity.smart_proxies[0].unrecognized_features | default([]) | length > 0

- name: Flush handlers to restart services
ansible.builtin.meta: flush_handlers