Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Ansible FreeIPA
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Ansible FreeIPA
Commits
38b3e817
Unverified
Commit
38b3e817
authored
4 years ago
by
Thomas Woerner
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #499 from rjeffman/utils_fix_covscan_findings_lint_check
Fix build-galaxy.sh execution and add running info.
parents
6ffc51a7
a292645a
Branches
Branches containing commit
Tags
v0.3.4
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
utils/build-galaxy-release.sh
+21
-9
21 additions, 9 deletions
utils/build-galaxy-release.sh
with
21 additions
and
9 deletions
utils/build-galaxy-release.sh
+
21
−
9
View file @
38b3e817
...
...
@@ -15,49 +15,61 @@ find . -name "*~" -exec rm {} \;
sed
-i
-e
"s/ansible.module_utils.ansible_freeipa_module/ansible_collections.
${
collection_prefix
}
.plugins.module_utils.ansible_freeipa_module/"
plugins/modules/
*
.py
(
cd
plugins/module_utils
&&
{
ln
-s
../../roles/
*
/module_utils/
*
.py
.
ln
-s
f
../../roles/
*
/module_utils/
*
.py
.
})
(
cd
plugins/modules
&&
{
sed
-i
-e
"s/ansible.module_utils.ansible_ipa_/ansible_collections.
${
collection_prefix
}
.plugins.module_utils.ansible_ipa_/"
../../roles/
*
/library/
*
.py
ln
-s
../../roles/
*
/library/
*
.py
.
ln
-s
f
../../roles/
*
/library/
*
.py
.
})
[
!
-x
plugins/action_plugins
]
&&
mkdir
plugins/action_plugins
(
cd
plugins/action_plugins
&&
{
ln
-s
../../roles/
*
/action_plugins/
*
.py
.
ln
-s
f
../../roles/
*
/action_plugins/
*
.py
.
})
echo
"Fixing examples in plugins/modules..."
find plugins/modules
-name
"*.py"
-print0
|
while
IFS
=
read
-d
-r
''
line
;
do
while
IFS
=
read
-d
''
-r
line
;
do
python utils/galaxyfy-module-EXAMPLES.py
"
$line
"
\
"ipa"
"
$collection_prefix
"
done
echo
-e
"
\0
33[AFixing examples in plugins/modules...
\0
33[32;1mDONE
\0
33[0m"
echo
"Fixing examples in roles/*/library..."
find roles/
*
/library
-name
"*.py"
-print0
|
while
IFS
=
read
-d
-r
''
line
;
do
while
IFS
=
read
-d
''
-r
line
;
do
python utils/galaxyfy-module-EXAMPLES.py
"
$line
"
\
"ipa"
"
$collection_prefix
"
done
echo
-e
"
\0
33[AFixing examples in roles/*/library...
\0
33[32;1mDONE
\0
33[0m"
for
x
in
roles/
*
/tasks/
*
.yml
;
do
echo
"Fixing playbooks in roles/*/tasks..."
for
line
in
roles/
*
/tasks/
*
.yml
;
do
python utils/galaxyfy-playbook.py
"
$line
"
"ipa"
"
$collection_prefix
"
done
echo
-e
"
\0
33[AFixing playbooks in roles/*tasks...
\0
33[32;1mDONE
\0
33[0m"
echo
"Fixing playbooks in playbooks..."
find playbooks
-name
"*.yml"
-print0
|
while
IFS
=
read
-d
-r
''
line
;
do
while
IFS
=
read
-d
''
-r
line
;
do
python utils/galaxyfy-playbook.py
"
$line
"
"ipa"
"
$collection_prefix
"
done
echo
-e
"
\0
33[AFixing playbooks in playbooks...
\0
33[32;1mDONE
\0
33[0m"
echo
"Fixing README(s)..."
find
.
-name
"README*.md"
-print0
|
while
IFS
=
read
-d
-r
''
line
;
do
while
IFS
=
read
-d
''
-r
line
;
do
python utils/galaxyfy-README.py
"
$line
"
"ipa"
"
$collection_prefix
"
done
echo
-e
"
\0
33[AFixing examples in plugins/modules...
\0
33[32;1mDONE
\0
33[0m"
echo
"Fixing playbbooks in tests..."
find tests
-name
"*.yml"
-print0
|
while
IFS
=
read
-d
-r
''
line
;
do
while
IFS
=
read
-d
''
-r
line
;
do
python utils/galaxyfy-playbook.py
"
$line
"
"ipa"
"
$collection_prefix
"
done
echo
-e
"
\0
33[AFixing playbooks in tests...
\0
33[32;1mDONE
\0
33[0m"
#git diff
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment