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
072cec2f
Commit
072cec2f
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Fix the rabbitmq crash on CentOS binary and source deploy"
parents
931158b5
c98e9c44
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/setup_RedHat.sh
+1
-1
1 addition, 1 deletion
tools/setup_RedHat.sh
tools/setup_gate.sh
+7
-8
7 additions, 8 deletions
tools/setup_gate.sh
with
8 additions
and
9 deletions
tools/setup_RedHat.sh
+
1
−
1
View file @
072cec2f
...
@@ -31,7 +31,7 @@ function setup_disk {
...
@@ -31,7 +31,7 @@ function setup_disk {
# (SamYaple)TODO: Remove the path overriding
# (SamYaple)TODO: Remove the path overriding
export
PATH
=
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
export
PATH
=
"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
cat
|
sudo tee
/etc/yum.repos.d/docker.repo
<<
EOF
sudo tee
/etc/yum.repos.d/docker.repo
<<
EOF
[docker]
[docker]
name=Docker Main Repository
name=Docker Main Repository
baseurl=https://yum.dockerproject.org/repo/main/centos/7
baseurl=https://yum.dockerproject.org/repo/main/centos/7
...
...
This diff is collapsed.
Click to expand it.
tools/setup_gate.sh
+
7
−
8
View file @
072cec2f
...
@@ -76,17 +76,16 @@ function setup_ssh {
...
@@ -76,17 +76,16 @@ function setup_ssh {
function
setup_inventory
{
function
setup_inventory
{
local
counter
=
0
local
counter
=
0
if
[[
"
${
DISTRO
}
"
==
"Debian"
]]
;
then
ANSIBLE_CONNECTION_TYPE
=
ssh
else
ANSIBLE_CONNECTION_TYPE
=
local
fi
echo
-e
"127.0.0.1
\t
localhost"
>
/tmp/hosts
echo
-e
"127.0.0.1
\t
localhost"
>
/tmp/hosts
for
ip
in
$(
cat
/etc/nodepool/
{
node_private,sub_nodes_private
}
)
;
do
for
ip
in
$(
cat
/etc/nodepool/
{
node_private,sub_nodes_private
}
)
;
do
:
$((
counter++
))
:
$((
counter++
))
echo
-e
"
${
ip
}
\t
node
${
counter
}
$(
ssh
${
ip
}
hostname
)
"
>>
/tmp/hosts
# FIXME(jeffrey4l): do not set two hostnames in oneline. this is a
echo
"node
${
counter
}
ansible_connection=
${
ANSIBLE_CONNECTION_TYPE
}
"
>>
${
RAW_INVENTORY
}
# wordround fix for the rabbitmq failed when deploy on CentOS in the CI
# gate. the ideal fix should set the hostname in setup_gate.sh script.
# But it do not work as expect with unknown reason
echo
-e
"
${
ip
}
\t
node
${
counter
}
"
>>
/tmp/hosts
echo
-e
"
${
ip
}
\t
$(
ssh
${
ip
}
hostname
)
"
>>
/tmp/hosts
echo
"node
${
counter
}
"
>>
${
RAW_INVENTORY
}
done
done
sudo chown
root: /tmp/hosts
sudo chown
root: /tmp/hosts
...
...
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