Skip to content

Commit

Permalink
Merge pull request #23 from ehelms/update-to-v1.2.0
Browse files Browse the repository at this point in the history
Update to v1.2.0
  • Loading branch information
ehelms authored May 16, 2022
2 parents e147656 + c5d5806 commit 8a4b3c8
Show file tree
Hide file tree
Showing 8 changed files with 50 additions and 2 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ redhat.satellite-operations Release Notes
.. contents:: Topics


v1.2.0
======

Minor Changes
-------------

- add HTTP proxy support for cloud connector

v1.1.1
======

Expand Down
7 changes: 6 additions & 1 deletion changelogs/changelog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,19 @@ releases:
- installer-checkmode-fix.yml
release_date: '2022-03-25'
1.1.0:
release_date: '2022-04-25'
changes:
minor_changes:
- cloud_connector - new role for installing Cloud Connector (https://github.com/theforeman/foreman-operations-collection/pull/85)
fragments:
- 85-fix-forwarder-url.yml
release_date: '2022-04-25'
1.1.1:
changes:
bugfixes:
- update FORWARDER_URL for cloud connector
release_date: '2022-05-09'
1.2.0:
changes:
minor_changes:
- add HTTP proxy support for cloud connector
release_date: '2022-05-16'
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ authors:
- "Kyle Williams <[email protected]>"
- "Matthias Dellweg <[email protected]>"
- "willtome <[email protected]>"
version: "1.1.1"
version: "1.2.0"
license:
- "GPL-3.0-or-later"
tags:
Expand Down
4 changes: 4 additions & 0 deletions roles/cloud_connector/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Required:
- `satellite_cloud_connector_user`: The username cloud connector will use to talk to Satellite API.
- `satellite_cloud_connector_password`: The password cloud connector will use to talk to Satellite API.

Optional:

- `satellite_cloud_connector_http_proxy`: HTTP proxy for RHC to use

Example Playbooks
-----------------

Expand Down
6 changes: 6 additions & 0 deletions roles/cloud_connector/handlers/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: Restart rhcd
ansible.builtin.service:
name: rhcd
state: restarted
daemon_reload: true
18 changes: 18 additions & 0 deletions roles/cloud_connector/tasks/http_proxy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
- name: Create systemd drop-in directory
ansible.builtin.file:
state: directory
path: /etc/systemd/system/rhcd.service.d
owner: root
group: root
mode: 0755

- name: Deploy HTTP proxy systemd drop-in file
ansible.builtin.template:
src: "proxy.conf.j2"
dest: /etc/systemd/system/rhcd.service.d/proxy.conf
owner: root
group: root
mode: 0640
notify:
- Restart rhcd
4 changes: 4 additions & 0 deletions roles/cloud_connector/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,9 @@
vars:
client_id: "{{ cert_output.stdout.replace('subject= /CN=', '') }}"

- name: Configure HTTP proxy
include: http_proxy.yml
when: satellite_cloud_connector_http_proxy is defined

- name: Cleanup receptor
include: cleanup_receptor.yml
3 changes: 3 additions & 0 deletions roles/cloud_connector/templates/proxy.conf.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[Service]
Environment=HTTPS_PROXY={{ satellite_cloud_connector_http_proxy }}
Environment=NO_PROXY={{ satellite_cloud_connector_url }}

0 comments on commit 8a4b3c8

Please sign in to comment.