Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kolla Ansible
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Very Demiurge Very Mindful
Kolla Ansible
Commits
4b6a9136
Commit
4b6a9136
authored
6 years ago
by
Zuul
Committed by
Gerrit Code Review
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Allow passing forks to kolla-ansible script"
parents
57c91550
7321fe77
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
releasenotes/notes/add-forks-flag-faf0d27618265bd4.yaml
+5
-0
5 additions, 0 deletions
releasenotes/notes/add-forks-flag-faf0d27618265bd4.yaml
tools/kolla-ansible
+8
-1
8 additions, 1 deletion
tools/kolla-ansible
with
13 additions
and
1 deletion
releasenotes/notes/add-forks-flag-faf0d27618265bd4.yaml
0 → 100644
+
5
−
0
View file @
4b6a9136
---
features
:
-
|
Adds a new argument to the ``kolla-ansible`` command, ``--forks NUM``.
This argument is passed through directly to ``ansible-playbook``.
This diff is collapsed.
Click to expand it.
tools/kolla-ansible
+
8
−
1
View file @
4b6a9136
...
...
@@ -44,6 +44,7 @@ Options:
--extra, -e <ansible variables> Set additional variables as key=value or YAML/JSON passed to ansible-playbook
--passwords <passwords_path> Specify path to the passwords file
--limit <host> Specify host to run plays
--forks <forks> Number of forks to run Ansible with
--vault-id <@prompt or path> Specify @prompt or password file (Ansible >= 2.4)
--ask-vault-pass Ask for vault password
--vault-password-file <path> Specify password file for vault decrypt
...
...
@@ -82,6 +83,7 @@ cat <<EOF
--extra -e
--passwords
--limit
--forks
--vault-id
--ask-vault-pass
--vault-password-file
...
...
@@ -105,7 +107,7 @@ EOF
}
SHORT_OPTS
=
"hi:p:t:k:e:v"
LONG_OPTS
=
"help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,vault-id:,ask-vault-pass,vault-password-file:,yes-i-really-really-mean-it,include-images,include-dev"
LONG_OPTS
=
"help,inventory:,playbook:,skip-tags:,tags:,key:,extra:,verbose,configdir:,passwords:,limit:,
forks:,
vault-id:,ask-vault-pass,vault-password-file:,yes-i-really-really-mean-it,include-images,include-dev"
RAW_ARGS
=
"
$*
"
ARGS
=
$(
getopt
-o
"
${
SHORT_OPTS
}
"
-l
"
${
LONG_OPTS
}
"
--name
"
$0
"
--
"
$@
"
)
||
{
usage
>
&2
;
exit
2
;
}
...
...
@@ -199,6 +201,11 @@ while [ "$#" -gt 0 ]; do
shift
2
;;
(
--forks
)
EXTRA_OPTS
=
"
$EXTRA_OPTS
--forks
$2
"
shift
2
;;
(
--vault-id
)
EXTRA_OPTS
=
"
$EXTRA_OPTS
--vault-id
$2
"
shift
2
...
...
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