-
Notifications
You must be signed in to change notification settings - Fork 200
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add posibility to use local modules for installer. This helps if we need to test change we dont want to push to git just yet. For various reasons like shame or more seriously security bugs testing.
- Loading branch information
1 parent
08492a8
commit ef0edf3
Showing
6 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
- name: find puppet module | ||
find: | ||
paths: /usr/share/foreman-installer/modules | ||
patterns: "{{ module.name }}" | ||
file_type: any | ||
register: foreman_module | ||
|
||
- name: find puppet module | ||
find: | ||
paths: /usr/share/katello-installer-base/modules | ||
patterns: "{{ module.name }}" | ||
file_type: any | ||
register: katello_module | ||
|
||
- name: define module_dir for foreman | ||
set_fact: | ||
module_dir: /usr/share/foreman-installer/modules | ||
when: foreman_module.matched > 0 | ||
|
||
- name: define module_dir for katello | ||
set_fact: | ||
module_dir: /usr/share/katello-installer-base/modules | ||
when: katello_module.matched > 0 | ||
|
||
- name: Delete old module | ||
file: | ||
state: absent | ||
path: "{{ module_dir }}/{{ module.name }}" | ||
|
||
- name: Create a symbolic link | ||
file: | ||
src: "{{ module.path }}" | ||
dest: "{{ module_dir }}/{{ module.name }}" | ||
state: link |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters