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
602e1238
Commit
602e1238
authored
7 years ago
by
Jenkins
Committed by
Gerrit Code Review
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Add ssh-keyscan to unblock kolla-ansible gate"
parents
fdaee18e
029de18d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/setup_gate.sh
+5
-2
5 additions, 2 deletions
tools/setup_gate.sh
with
5 additions
and
2 deletions
tools/setup_gate.sh
+
5
−
2
View file @
602e1238
...
@@ -128,6 +128,7 @@ function setup_inventory {
...
@@ -128,6 +128,7 @@ function setup_inventory {
# wordround fix for the rabbitmq failed when deploy on CentOS in the CI
# 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.
# gate. the ideal fix should set the hostname in setup_gate.sh script.
# But it do not work as expect with unknown reason
# But it do not work as expect with unknown reason
ssh-keyscan
"
${
ip
}
"
>>
~/.ssh/known_hosts
echo
-e
"
${
ip
}
\t
node
${
counter
}
"
>>
/tmp/hosts
echo
-e
"
${
ip
}
\t
node
${
counter
}
"
>>
/tmp/hosts
echo
-e
"
${
ip
}
\t
$(
ssh
${
ip
}
hostname
)
"
>>
/tmp/hosts
echo
-e
"
${
ip
}
\t
$(
ssh
${
ip
}
hostname
)
"
>>
/tmp/hosts
echo
"node
${
counter
}
"
>>
${
RAW_INVENTORY
}
echo
"node
${
counter
}
"
>>
${
RAW_INVENTORY
}
...
@@ -148,14 +149,16 @@ function setup_ansible {
...
@@ -148,14 +149,16 @@ function setup_ansible {
setup_inventory
setup_inventory
# Record the running state of the environment as seen by the setup module
ansible all
-i
${
RAW_INVENTORY
}
-m
setup
>
/tmp/logs/ansible/initial-setup
sudo mkdir
/etc/ansible
sudo mkdir
/etc/ansible
sudo tee
/etc/ansible/ansible.cfg
<<
EOF
sudo tee
/etc/ansible/ansible.cfg
<<
EOF
[defaults]
[defaults]
callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:
\$
VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks
callback_plugins = /usr/lib/python2.7/site-packages/ara/plugins/callbacks:
\$
VIRTUAL_ENV/lib/python2.7/site-packages/ara/plugins/callbacks
host_key_checking = False
EOF
EOF
# Record the running state of the environment as seen by the setup module
ansible all
-i
${
RAW_INVENTORY
}
-m
setup
>
/tmp/logs/ansible/initial-setup
}
}
function
setup_node
{
function
setup_node
{
...
...
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