-
Notifications
You must be signed in to change notification settings - Fork 37
My stab at a proxy deployment #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| --- | ||
| - name: Fetch generated bundle from server | ||
| hosts: | ||
| - quadlet | ||
| become: true | ||
| vars_files: | ||
| - "../../../src/vars/base.yaml" | ||
| - "../../../src/vars/certificates.yml" | ||
| tasks: | ||
| - name: Fetch bundle | ||
| ansible.builtin.fetch: | ||
| src: "{{ certificates_ca_directory }}/bundles/{{ hostname }}.tar.gz" | ||
| dest: "{{ obsah_state_path }}/{{ hostname }}.tar.gz" | ||
| flat: true |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| --- | ||
| help: | | ||
| Fetch a certificate bundle | ||
| variables: | ||
| hostname: | ||
| parameter: hostname | ||
| help: Hostname to fetch the certificate bundle for. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| --- | ||
| - name: Setup proxy demo machine | ||
| hosts: | ||
| - proxy | ||
| become: true | ||
| vars_files: | ||
| - "../../vars/defaults.yml" | ||
| - "../../vars/flavors/{{ flavor }}.yml" | ||
| - "../../vars/certificates.yml" | ||
| - "../../vars/images.yml" | ||
| - "../../vars/tuning/{{ tuning }}.yml" | ||
| - "../../vars/database.yml" | ||
| - "../../vars/foreman.yml" | ||
| - "../../vars/base.yaml" | ||
| roles: | ||
| - role: pre_install | ||
| - role: checks | ||
| vars: | ||
| checks_databases: "{{ all_databases }}" | ||
| - role: certificates | ||
| - role: certificate_checks | ||
| vars: | ||
| certificate_checks_certificate: "{{ server_certificate }}" | ||
| certificate_checks_key: "{{ server_key }}" | ||
| certificate_checks_ca: "{{ server_ca_certificate }}" | ||
| - role: postgresql | ||
| when: | ||
| - database_mode == 'internal' | ||
| - redis | ||
| - httpd | ||
| - pulp | ||
| - role: systemd_target | ||
| - role: foreman_proxy | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| --- | ||
| help: | | ||
| Install infra node | ||
| variables: | ||
| certificates_bundle: | ||
| help: Path to the certificates bundle | ||
| type: AbsolutePath | ||
| parameter: --certificate-bundle | ||
| persist: false | ||
| foreman_name: | ||
| help: Hostname of the main Foreman instance | ||
| type: FQDN | ||
|
|
||
| include: | ||
| - _database_mode | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this would allow proxies with extdb, which we did not allow in the past -- I'd prefer dropping it, to make it less complex? |
||
| - _database_connection | ||
| - _tuning | ||
| - _flavor_features | ||
| - _pulp | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. do we need import/export on the proxy? |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,8 +30,8 @@ | |
| - redis | ||
| - candlepin | ||
| - httpd | ||
| - pulp | ||
| - foreman | ||
| - pulp | ||
| - role: systemd_target | ||
| - role: iop_core | ||
| when: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this one should probably gain a check "is the target foreman instance reachable"