Skip to content

Commit

Permalink
Archive file on the controller can't be relocated
Browse files Browse the repository at this point in the history
  • Loading branch information
RanabirChakraborty committed Nov 5, 2024
1 parent 530bf56 commit 13166e6
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
push:
branches:
- main
- archivefile_location_issue
pull_request:
schedule:
- cron: '0 6 * * *'
Expand All @@ -15,4 +15,4 @@ jobs:
with:
fqcn: 'middleware_automation/wildfly'
molecule_tests: >-
[ "default", "prospero", "yaml_config_validation", "install_options", "colocated_cluster" ]
[ "default", "prospero", "yaml_config_validation", "install_options", "colocated_cluster", "custom_confifg_file" ]
2 changes: 1 addition & 1 deletion molecule/custom_config_file/molecule.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ provisioner:
ssh_connection:
pipelining: false
playbooks:
prepare: ../prepare.yml
prepare: prepare.yml
converge: converge.yml
verify: verify.yml
inventory:
Expand Down
20 changes: 20 additions & 0 deletions molecule/custom_config_file/prepare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Prepare
hosts: all
gather_facts: true
vars_files:
- vars.yml
tasks:
- name: "Download zipfile from {{ wildfly_install_download_url }} into {{ wildfly_install_download_controller_download_dir }}"
delegate_to: localhost
run_once: true
ansible.builtin.get_url:
url: "{{ wildfly_install_download_url }}"
dest: "{{ wildfly_install_download_controller_download_dir }}" # noqa risky-file-permissions delegated, uses controller host user
mode: '0644'
selevel: s0
serole: object_r
setype: usr_t
seuser: system_u

- import_playbook: ../prepare.yml
6 changes: 6 additions & 0 deletions molecule/custom_config_file/vars.yml
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
wildfly_config_custom_file: files/wildfly-custom.xml
wildfly_version: '34.0.0.Final'
wildfly_archive_filename: "wildfly-{{ wildfly_version }}.zip"
wildfly_download_baseurl: 'https://github.com/wildfly/wildfly/releases/download'
wildfly_install_download_url: "{{ wildfly_download_baseurl }}/{{ wildfly_version }}/{{ wildfly_archive_filename }}"
wildfly_install_download_controller_download_dir: "/tmp"
wildfly_offline_install: true

0 comments on commit 13166e6

Please sign in to comment.