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
d91ed21f
Commit
d91ed21f
authored
8 years ago
by
Jenkins
Committed by
Gerrit Code Review
8 years ago
Browse files
Options
Downloads
Plain Diff
Merge "Optimize the code"
parents
e1e73ac5
49c0ca3a
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
ansible/roles/baremetal/tasks/post-install.yml
+7
-7
7 additions, 7 deletions
ansible/roles/baremetal/tasks/post-install.yml
ansible/roles/baremetal/tasks/pre-install.yml
+8
-8
8 additions, 8 deletions
ansible/roles/baremetal/tasks/pre-install.yml
with
15 additions
and
15 deletions
ansible/roles/baremetal/tasks/post-install.yml
+
7
−
7
View file @
d91ed21f
...
...
@@ -44,7 +44,7 @@
become
:
True
when
:
-
ansible_distribution == "Ubuntu"
-
apparmor_libvirtd_profile.stat.exists
== True
-
apparmor_libvirtd_profile.stat.exists
| bool
-
name
:
Create docker group
group
:
...
...
@@ -57,29 +57,29 @@
append
:
yes
groups
:
docker
become
:
True
when
:
create_kolla_user | bool
== True
when
:
create_kolla_user | bool
-
name
:
Start docker
service
:
name
:
docker
state
:
started
become
:
yes
become
:
True
-
name
:
Restart docker
service
:
name
:
docker
state
:
restarted
become
:
yes
become
:
True
-
name
:
Enable docker
service
:
name
:
docker
enabled
:
yes
become
:
yes
become
:
True
-
name
:
Reboot
command
:
reboot -f
become
:
yes
become
:
True
when
:
-
reboot_required is defined
-
reboot_required | bool
==
true
-
reboot_required | bool
This diff is collapsed.
Click to expand it.
ansible/roles/baremetal/tasks/pre-install.yml
+
8
−
8
View file @
d91ed21f
---
# NOTE: raw install is required to support cloud images which do not have python installed
-
name
:
"
Install
python2
and
python-simplejson"
become
:
t
rue
become
:
T
rue
raw
:
"
yum
install
-y
python
python-simplejson
||
(apt-get
update
&&
apt-get
install
-y
python2.7
python-simplejson)"
-
name
:
Gather facts
...
...
@@ -14,7 +14,7 @@
line
:
"
127.0.0.1
localhost"
state
:
present
become
:
True
when
:
customize_etc_hosts | bool
== True
when
:
customize_etc_hosts | bool
-
name
:
Generate /etc/hosts for all of the nodes
blockinfile
:
...
...
@@ -25,7 +25,7 @@
{{ hostvars[host]['ansible_' + hostvars[host]['api_interface']]['ipv4']['address'] }} {{ hostvars[host]['ansible_hostname'] }}
{% endfor %}
become
:
True
when
:
customize_etc_hosts | bool
== True
when
:
customize_etc_hosts | bool
-
name
:
Ensure sudo group is present
group
:
name=sudo state=present
...
...
@@ -34,7 +34,7 @@
-
name
:
Ensure kolla group is present
group
:
name=kolla state=present
become
:
True
when
:
create_kolla_user | bool
== True
when
:
create_kolla_user | bool
-
name
:
Create kolla user
user
:
...
...
@@ -43,7 +43,7 @@
group
:
kolla
groups
:
"
sudo"
become
:
True
when
:
create_kolla_user | bool
== True
when
:
create_kolla_user | bool
-
name
:
Grant kolla user passwordless sudo
lineinfile
:
...
...
@@ -52,14 +52,14 @@
regexp
:
'
^kolla'
line
:
'
kolla
ALL=(ALL)
NOPASSWD:
ALL'
become
:
True
when
:
create_kolla_user | bool
== True
when
:
create_kolla_user | bool
-
name
:
Add public key to kolla user authorized keys
authorized_key
:
user
:
kolla
key
:
"
{{
kolla_ssh_key.public_key
}}"
become
:
True
when
:
create_kolla_user | bool
== True
when
:
create_kolla_user | bool
-
name
:
Install apt packages
command
:
apt-get update
...
...
@@ -125,7 +125,7 @@
group
:
kolla
mode
:
0755
become
:
True
when
:
create_kolla_user | bool
== True
when
:
create_kolla_user | bool
-
name
:
Ensure /etc/kolla directory exists
file
:
...
...
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